Hello,
I have the following issue. I am receiving the queue of positions from /rtabmap/mapGraph topic and I am printing the last position as msg->poses[msg->poses.size()-1].position.x where msg is rtabmap_ros::MapGraph::ConstPtr& msg. I also saw that the queue size is around 1168 or 1167 at every callback.
The problem is that after a few iterations I am receiving the same value (X: 3.2539, Y: 0.1011) and stays the same:
[ INFO] [1516450466.736030983]: X: 3.2539, Y: 0.1011
[ INFO] [1516450469.008419694]: X: 7.0402, Y: -1.8379
[ INFO] [1516450471.215271046]: X: 7.2952, Y: -1.9157
[ INFO] [1516450474.581330863]: X: 7.7645, Y: -2.1201
[ INFO] [1516450476.820938780]: X: 7.9940, Y: -2.2687
[ INFO] [1516450479.014667179]: X: 8.2806, Y: -2.4271
[ INFO] [1516450482.348890209]: X: 3.2539, Y: 0.1011
[ INFO] [1516450484.565644060]: X: 3.2539, Y: 0.1011
[ INFO] [1516450486.822069202]: X: 3.2539, Y: 0.1011
[ INFO] [1516450489.022773286]: X: 3.2539, Y: 0.1011
[ INFO] [1516450490.185171840]: X: 3.2539, Y: 0.1011
[ INFO] [1516450492.377422002]: X: 3.2539, Y: 0.1011
[ INFO] [1516450494.598734897]: X: 3.2539, Y: 0.1011
The map that I am testing is large and I think that it is feature-less. Also it takes some time to calibrate its positions when starting. I have to run keyboard_teleop.
Does anyone have any idea why this is happening?
Thank you