Skip to content

Commit

Permalink
Add missing source value when publishing obstacles detected by oakd
Browse files Browse the repository at this point in the history
Signed-off-by: MikhailBertrand <[email protected]>
  • Loading branch information
MikhailBertrand committed Aug 23, 2024
1 parent 6efd0b8 commit 3e4b4a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rmf_human_detector_oakd/launch/human_detector.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<launch>
<arg name="blob_path" default="" description="The absolute filepath to the NN blob"/>
<arg name="sync_nn" default="True" description="Whether to sync the depth and preview frames before making inference"/>
<arg name="detector_name" default="rmf_human_detector_oakd" description="The name given to this detector"/>
<arg name="detector_name" default="rmf_human_detector_oakd" description="The name given to this detector, used for obstacle topic's source value"/>
<arg name="frame_id" default="oakd_camera_link" description="The frame ID for the camera"/>
<arg name="level_name" default="L1" description="The level or map on which the camera is located"/>
<arg name="obstacle_classification" default="human" description="The classification to be used to report human obstacles"/>
Expand Down
2 changes: 1 addition & 1 deletion rmf_human_detector_oakd/src/HumanDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ HumanDetector::HumanDetector(
obstacle.header.frame_id = data->frame_id;
// TODO(YV): Stamp
obstacle.id = obstacle_count;
obstacle.id = obstacle_count;
obstacle.source = data->detector_name;
obstacle.level_name = data->level_name;
obstacle.classification = data->obstacle_classification;
obstacle.bbox.center.position.x = spatial_x;
Expand Down

0 comments on commit 3e4b4a3

Please sign in to comment.