Skip to content

Commit

Permalink
Populated header field before publishing obstacles.msg
Browse files Browse the repository at this point in the history
Signed-off-by: suchetanrs <suchetan.saravanan@gmail.com>
  • Loading branch information
suchetanrs committed Mar 24, 2024
1 parent 008df0c commit 279277f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rmf_obstacle_detector_laserscan/src/LaserscanDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ void LaserscanDetector::process()
return;

auto msg = std::make_unique<Obstacles>();
msg->header.frame_id = _latest_scan->header.frame_id;
msg->header.stamp = this->get_clock()->now();
std::size_t id = 0;
for (const auto& scan : scan_obstacles)
{
Expand Down

0 comments on commit 279277f

Please sign in to comment.