robot_localization tf tree structure
I am having trouble getting robot_localization to work.
I have read through the robot_localization wiki, the tf wiki and the REP-105/103 doc but I still don't understand how to structure the tree for robot_localization.
I have 2 frames_ids from IMU and PTAM messages.
Concepts i don't understand:
- Where do these map, odom, base_link frames come from? Do I generate those using tf as a virtual representation of the real world sensors and their relative positions and orientations?
- If so how do I link the supplied frames to the tree I create? In the doc it says map -> odom -> base_link. Do I also link base_link -> imu and odom -> ptam?
- Finally do I supply robot_localization with the odom and base_link or imu and ptam frames?
The only way I have ever managed to get robot_localization to produce messages in the /odometry/filtered topic is to use the sensor frames directly but this doesn't seem the correct way to do it.
Any example code or step by step instructions would be great. Docs have not helped me with my confusion. I just don't understand how to piece it all together.
@K7 where you able to solve this problem? Im facing the exact same issue as you did but can not fix it.
Would be great if you could share your solution!