How to locate robot position on map using map -> base_link transform?
I'm running turtlebot in playground world and navigation
roslaunch turtlebot_gazebo turtlebot_playground.launch
roslaunch turtlebot_gazebo gmapping_demo.launch
In my program code I successfully subscribe to /map topic and process its data as 2D array[height][width] of wall coordinates, but I'm unable to interpret results of
listener_.lookupTransform( "map", "base_link", ros::Time( 0 ), transform );
How to compare results of map array and map->base_link transform?
Why we should compare the results? since it is giving relative robot position.....