pose of odom frame chainging in navigation
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?
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.
@gvdhoorn In your 2nd sentence, what is
It's
a reference to?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.