tu-darmstadt-ros-pkg / hector_slam

hector_slam contains ROS packages related to performing SLAM in unstructed environments like those encountered in the Urban Search and Rescue (USAR) scenarios of the RoboCup Rescue competition.
http://wiki.ros.org/hector_slam
653 stars 454 forks source link

map origin unit issue #107

Open mildsky opened 2 years ago

mildsky commented 2 years ago

https://github.com/tu-darmstadt-ros-pkg/hector_slam/blob/b7d19bfee3c2848d611e8da142445b896790d7fb/hector_mapping/src/HectorMappingRos.cpp#L547

if you check this line, it uses gridMap.getCellLength() function that returns cell length in millimeter. but, according to message definition, it should be meter, not millimeter. So I think it should be corrected as below

    mapOrigin.array() -= gridMap.getCellLength()/1000*0.5f;

I created pull request, so check it please.