When i run the navigation stack i saw that map link is fixed on given map but the odom frame is changing dynamically when robot moves. Considering that odom frame is the initial position from which robot started to move, shouldn't this be also fixed w.r.t given map frame?
Originally posted by dinesh on ROS Answers with karma: 932 on 2021-09-07
Post score: 0
Original comments
Comment by gvdhoorn on 2021-09-07:\
Considering that odom frame is the initial position from which robot started to move
no, that's not entirely correct.
It's the current estimate of your robot's pose in the map frame.
So only at the very beginning will it correspond to "the initial position". Soon, due to drift, and inaccuracies in pose estimation, it will start to diverge from that position.
Comment by Mike Scheutzow on 2021-09-07:
@gvdhoorn In your 2nd sentence, what is It's
a reference to?
Comment by gvdhoorn on 2021-09-08:
The odom frame (and that sentence is a bit of an interpretation of course, but I believe it's correct in the context the OP described (ie: right at the start)).
Related Q&As: #q222567, #q237295, #q37029 and #q260930.