1 #ifndef HRK_URG_LOG_READER_H
2 #define HRK_URG_LOG_READER_H
21 bool load(
const std::string& log_file);
23 void log_range(
int& first_step,
int& last_step,
int& group_steps);
24 void log_scans(
int& scan_times,
int& scan_skips);
26 size_t total_sec()
const;
27 size_t total_scans()
const;
28 bool scan_data(
size_t scan_index,
29 long& total_play_second,
long& msec_to_next_scan);
32 bool set_next_scans(
int scan_index);
34 const char*
what()
const;
38 int write(
const char* data,
size_t data_size);
39 int read(
char* data,
size_t max_data_size,
int timeout);
47 std::auto_ptr<pImpl> pimpl;
int read(char *data, size_t max_data_size, int timeout)
データの受信
Definition: Urg_log_reader.cpp:382
Definition: Urg_log_reader.h:15
const char * what() const
状態を示すメッセージを返す
Definition: Urg_log_reader.cpp:342
void ungetc(int ch)
1文字だけ受信バッファに書き戻す
Definition: Urg_log_reader.cpp:395
bool change_baudrate(long baudrate)
ボーレートの変更
Definition: Urg_log_reader.cpp:348
bool is_open() const
受信
Definition: Urg_log_reader.cpp:358
measurement_t
Definition: Lidar.h:30
int write(const char *data, size_t data_size)
データの送信
Definition: Urg_log_reader.cpp:370
Definition: Lidar_log_reader.h:16
void close()
接続を閉じる
Definition: Urg_log_reader.cpp:364