1 #ifndef HRK_LMS_LOG_READER_H
2 #define HRK_LMS_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;
bool is_open() const
受信
Definition: Lms_log_reader.cpp:323
int read(char *data, size_t max_data_size, int timeout)
データの受信
Definition: Lms_log_reader.cpp:347
const char * what() const
状態を示すメッセージを返す
Definition: Lms_log_reader.cpp:307
void close()
接続を閉じる
Definition: Lms_log_reader.cpp:329
measurement_t
Definition: Lidar.h:30
void ungetc(int ch)
1文字だけ受信バッファに書き戻す
Definition: Lms_log_reader.cpp:360
int write(const char *data, size_t data_size)
データの送信
Definition: Lms_log_reader.cpp:335
bool change_baudrate(long baudrate)
ボーレートの変更
Definition: Lms_log_reader.cpp:313
Definition: Lidar_log_reader.h:16
Definition: Lms_log_reader.h:15