Skip to content

Commit 10582b5

Browse files
committed
(fix) add frame ID to pose graph messages
1 parent 49bba82 commit 10582b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hydra_ros/src/backend/ros_backend_publisher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void RosBackendPublisher::publishPoseGraph(const DynamicSceneGraph& graph,
184184

185185
auto pose_graph = *dgraph.getPoseGraph(id_timestamps, false, true);
186186
pose_graph.stamp_ns = stamp;
187-
// pose_graph.frame_id = GlobalInfo::instance().getFrames().map;
187+
pose_graph.frame_id = GlobalInfo::instance().getFrames().map;
188188
pose_graph_pub_->publish(pose_graph);
189189
}
190190

@@ -194,7 +194,7 @@ void RosBackendPublisher::publishMeshGraph(const DynamicSceneGraph&,
194194
std::map<size_t, std::vector<size_t>> id_timestamps_temp;
195195
auto mesh_graph = *dgraph.getPoseGraph(id_timestamps_temp, true, false);
196196
mesh_graph.stamp_ns = stamp;
197-
// mesh_graph.frame_id = GlobalInfo::instance().getFrames().map;
197+
mesh_graph.frame_id = GlobalInfo::instance().getFrames().map;
198198
mesh_graph_pub_->publish(mesh_graph);
199199
}
200200

0 commit comments

Comments
 (0)