SteveMacenski / slam_toolbox

Slam Toolbox for lifelong mapping and localization in potentially massive maps with ROS
GNU Lesser General Public License v2.1
1.5k stars 497 forks source link

Is there a way to output the final poses optimization result? #679

Open WANGYINGYU opened 4 months ago

WANGYINGYU commented 4 months ago

Feature description

I can output poses using /tf in real-time, but I want to use final optimized poses to evaluate the performance of global localization. Is there a way to export this data?

SteveMacenski commented 4 months ago

Not currently, but I think that could be populated by the occupancy grid generation process, since that's iterating over the sensors at poses to generate the occupancy grid. We could populate a vector of those poses to publish out pretty easily!

WANGYINGYU commented 3 months ago

Not currently, but I think that could be populated by the occupancy grid generation process, since that's iterating over the sensors at poses to generate the occupancy grid. We could populate a vector of those poses to publish out pretty easily!

Thanks for your reply. Can you help me find in which file or more specifically in which function the occupancy grid map generation is defined?