Skip to content

Commit 77dcdca

Browse files
authored
fix: Add global frame ID to UTM path poses. (#90)
This fixes an issue with visualization of the UTM path in Foxglove Studio which requires that the path frame_id match all the pose frame_ids.
1 parent 1942505 commit 77dcdca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opennav_coverage/src/visualizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void Visualizer::visualize(
4444
auto utm_path = std::make_unique<nav_msgs::msg::Path>(nav_path);
4545
utm_path->header.frame_id = GLOBAL_FRAME;
4646
for (unsigned int i = 0; i != utm_path->poses.size(); i++) {
47+
utm_path->poses[i].header.frame_id = GLOBAL_FRAME;
4748
utm_path->poses[i].pose.position.x += ref_pt.getX();
4849
utm_path->poses[i].pose.position.y += ref_pt.getY();
4950
}

0 commit comments

Comments
 (0)