Skip to content

Commit

Permalink
Filled Obstacles header (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Mar 16, 2024
1 parent 91528cd commit 8992a8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rmf_human_detector/src/HumanDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ HumanDetector::HumanDetector(const rclcpp::NodeOptions& options)
// perform detections
auto [rmf_obstacles, image_detections] = _data->_detector->image_cb(msg);

rmf_obstacles.header.stamp = this->get_clock()->now();
rmf_obstacles.header.frame_id = _data->_camera_name;

// populate fields like time stamp, etc
for (auto& obstacle : rmf_obstacles.obstacles)
{
Expand Down

0 comments on commit 8992a8e

Please sign in to comment.