open-rmf / rmf_obstacle

Packages that infer the presence of obstacles from sensor inputs.
Apache License 2.0
6 stars 9 forks source link

Line 108 and 109 of HumanDetector.cpp were giving colcon build error #18

Closed Avisheet closed 8 months ago

Avisheet commented 8 months ago

After cloning the rmf_obstacle_detectors and then while building it , HumanDetector.cpp was giving the following errors:

error: ‘std::tuple_element<0, std::pair<rmf_obstacle_msgs::msg::Obstacles_<std::allocator<void> >, sensor_msgs::msg::Image_<std::allocator<void> > > >::type’ {aka ‘struct rmf_obstacle_msgs::msg::Obstacles_<std::allocator<void> >’} has no member named ‘header’
  108 |       rmf_obstacles.header.stamp = this->get_clock()->now();
      |                     ^~~~
/home/avisheet/opem-rmf_ws/src/rmf_obstacle_detectors/rmf_human_detector/src/HumanDetector.cpp:109:21: error: ‘std::tuple_element<0, std::pair<rmf_obstacle_msgs::msg::Obstacles_<std::allocator<void> >, sensor_msgs::msg::Image_<std::allocator<void> > > >::type’ {aka ‘struct rmf_obstacle_msgs::msg::Obstacles_<std::allocator<void> >’} has no member named ‘header’
  109 |       rmf_obstacles.header.frame_id = _data->_camera_name;
Yadunund commented 8 months ago

Please make sure to pull the latest main on rmf_internal_msgs and rebuild. See https://github.com/open-rmf/rmf_internal_msgs/pull/55