Skip to content

Commit

Permalink
small fixes in pose publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski committed Feb 18, 2024
1 parent 1adfab0 commit e2dd294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nova_carter_dock/launch/demo_setup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generate_launch_description():
PythonLaunchDescriptionSource(os.path.join(
carter_navigation_launch_dir, 'teleop.launch.py')),
launch_arguments={
'launch_hawks': True,
'launch_hawks': 'True',
}.items(),
)

Expand Down
4 changes: 2 additions & 2 deletions nova_carter_dock/src/dock_pose_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class DockPosePublisher : public rclcpp::Node
for (unsigned int i = 0; i != msg->detections.size(); i++) {
if (!use_first_detection_) {
if (msg->detections[i].family == dock_tag_family_ && msg->detections[i].id == dock_tag_id_) {
p.header = msg->detections[i].pose.header;
p.header = msg->header;
p.pose = msg->detections[i].pose.pose.pose;
publisher_->publish(p);
return;
}
} else {
// Use the first detection found
p.header = msg->detections[0].pose.header;
p.header = msg->header;
p.pose = msg->detections[0].pose.pose.pose;
publisher_->publish(p);
return;
Expand Down

0 comments on commit e2dd294

Please sign in to comment.