1 #ifndef HRK_URG_DRIVER_H
2 #define HRK_URG_DRIVER_H
19 Default_baudrate = 115200,
26 static std::vector<std::string> find_ports();
27 static bool is_urg_port(
const std::string& port);
29 const char*
what()
const;
31 bool open(
const std::string& device_name_or_ip_address,
32 long baudrate_or_port_number, connection_t type =
Serial);
42 void set_timeout_msec(
int msec);
50 int scan_times = Infinity_scan_times,
52 bool get_distance(std::vector<long>& data,
long *time_stamp = NULL);
53 bool get_distance_intensity(std::vector<long>& data,
54 std::vector<unsigned short>& intensity,
55 long *time_stamp = NULL);
56 bool get_multiecho(std::vector<long>& data_multiecho,
57 long* time_stamp = NULL);
58 bool get_multiecho_intensity(std::vector<long>& data_multiecho,
59 std::vector<unsigned short>&
61 long* time_stamp = NULL);
62 bool set_scanning_parameter(
int first_step,
int last_step,
64 void stop_measurement();
65 bool set_sensor_time_stamp(
long time_stamp);
67 double index2rad(
int index)
const;
68 double index2deg(
int index)
const;
69 int rad2index(
double radian)
const;
70 int deg2index(
double degree)
const;
72 double step2rad(
int step)
const;
73 double step2deg(
int step)
const;
74 int rad2step(
double radian)
const;
75 int deg2step(
double degree)
const;
79 int front_step()
const;
80 int total_steps()
const;
81 long min_distance()
const;
82 long max_distance()
const;
83 long scan_usec()
const;
84 int max_data_size()
const;
85 int max_echo_size()
const;
87 std::string sensor_series_name()
const;
88 std::string sensor_product_name()
const;
89 std::string sensor_product_version()
const;
90 std::string serial_id()
const;
91 static long decode_scip(
const char* data,
int data_byte);
98 std::auto_ptr<pImpl> pimpl;
bool is_booting()
センサが起動中かどうかを返す
Definition: Urg_driver.cpp:1219
bool is_open() const
接続しているかを返す
Definition: Urg_driver.cpp:1231
Lidar インターフェース
Definition: Lidar.h:18
const char * what() const
状態を示すメッセージを返す
Definition: Urg_driver.cpp:1196
Connection * connection()
接続オブジェクトを返す
Definition: Urg_driver.cpp:1244
void close()
接続を閉じる
Definition: Urg_driver.cpp:1225
シリアル接続クラス
Definition: Serial.h:18
距離
Definition: Lidar.h:31
接続のインターフェース
Definition: Connection.h:21
measurement_t
Definition: Lidar.h:30
Definition: Urg_driver.h:15
void set_connection(Connection *connection)
接続オブジェクトを設定する
Definition: Urg_driver.cpp:1237