24 {
25 msg_converter_ = std::make_shared<MsgConverter>(
node_);
26
27 msg_converter_->Add(FLAGS_cameraframe_to_obstacles_in,
28 FLAGS_cameraframe_to_obstacles_out,
30 AINFO <<
"cameraframe_to_obstacles_in: "
31 << FLAGS_cameraframe_to_obstacles_in
32 << " cameraframe_to_obstacles_out: "
33 << FLAGS_cameraframe_to_obstacles_out;
34
35 msg_converter_->Add(FLAGS_sensorframe_message_to_obstacles_in,
36 FLAGS_sensorframe_message_to_obstacles_out,
38 AINFO <<
"sensorframe_message_to_obstacles_in: "
39 << FLAGS_sensorframe_message_to_obstacles_in
40 << " sensorframe_message_to_obstacles_out: "
41 << FLAGS_sensorframe_message_to_obstacles_out;
42
43 msg_converter_->Add(FLAGS_lidarframe_to_obstacles_in,
44 FLAGS_lidarframe_to_obstacles_out,
46 AINFO <<
"lidarframe_to_obstacles_in: "
47 << FLAGS_lidarframe_to_obstacles_in
48 << " lidarframe_to_obstacles_out: "
49 << FLAGS_lidarframe_to_obstacles_out;
50
51 return true;
52}
std::shared_ptr< Node > node_
bool ConvertCameraFrame2Obstacles(const std::shared_ptr< onboard::CameraFrame > &frame, PerceptionObstacles *obstacles)
bool ConvertLidarFrameMessage2Obstacles(const std::shared_ptr< onboard::LidarFrameMessage > &msg, PerceptionObstacles *obstacles)
bool ConvertSensorFrameMessage2Obstacles(const std::shared_ptr< onboard::SensorFrameMessage > &msg, PerceptionObstacles *obstacles)