Which frame is better : odom or base
Hello,
I am trying to understand which frame it is better to use in my specific case.
I have 3 frames :
- base_link
as defined in REP105
- laser_link
which is a static TF of the previous
- odom
as defined in REP105 and provided by fusing IMU and whell odom data (through EKF)
I am now playing with a leg tracker based on laserscan data (you can find it here. This package output a list of people (X, Y position and twist of persons) based on the laserscan input.
My understansing of odom versus base_link frame is that :
- if my robot is not moving, i can use any frame to compute X,Y coord and twist of people moving around the robot
- if my robot is moving, i have to use the odom frame so the computation of a people data will take into account the motion of my robot
It is pretty clear for me that I have to use odom frame if I am moving... But I can't explain it very clearly... can anyone explain it to me so that there is no more hesitation when I try to explain to someone why am I using the odom frame?
Edit : my goal is to get the coordinates and twist of the closest person and send cmd_vel to "follow" this person. Which frame would you use ?
thank you!