tu-darmstadt-ros-pkg / hector_navigation

hector_navigation provides packages related to navigation of unmanned vehicles in USAR environments.
125 stars 90 forks source link

Fix: Mismatching frame ids in the header & poses of exploration path #24

Open svdeepak99 opened 4 years ago

svdeepak99 commented 4 years ago

The code works only if the Global Frame id of the costmap is given as "map" and if any other global frame id is provided, there is a mismatch in the frame id string in the "header of path topic" and the "header of poses in the path topic". This creates error if we try to visualize the path in rviz window.

Hence I have modified the code to directly obtain the frame id from costmap_2dros object to fix the mismatch. Now the code works perfectly for me, for any given global frame id.

Link to Costmap2DROS Documentation: http://docs.ros.org/melodic/api/costmap_2d/html/classcostmap__2d_1_1Costmap2DROS.html

And thank you so much for providing this wonderful package as open source.