Odom TF goes Wrong
I try to make a diferential drive robot. When i try to navigate it , i get something wrong. I guess odom tf goes wrong.
I drive my robot forward direction. However my odom tf goes backward? What should happen the odom tf, when i drive forward direction ? Should odom tf stick the robot (base_footprint ) , should it stay with with map tf on initial position.
What is responsible for that ?
Tf or odom calculation or odom tf publishing ? First picture shows initial condition. Basefootprin baselink and odom have same position. In second picture robot moves forward so baselink and basefootpring goes forward but odom goes backward
Asked by bfdmetu on 2020-08-11 04:04:20 UTC
Answers
The odom frame stays more or less put. The slight drift you're seeing should come from your robot localization, which publishes a correction between the odom and map frames.
Asked by pcoenen on 2020-08-11 04:15:41 UTC
Comments
Is there any error or everything is fine ? In navigation should we publish any static tf between frames? (odom base_footprint, map odom , or anything else? ) In my tf tree only base_link and base_foot print connected with static tf
My robot are being lost everytime in navigation. There is a mistake but i can not find where it is.
Asked by bfdmetu on 2020-08-11 05:57:03 UTC
Only use static tfs for stuff thats actually fixed, ie base_link and base_footprint. There is no error. Your robot will move continuous in relation to your odom frame. If your localization notices wheel slip by matching the robots surroundings to the map it will apply the correction the map->odom transform.
Asked by pcoenen on 2020-08-11 06:40:35 UTC
Comments