magazino / move_base_flex

Move Base Flex: a backwards-compatible replacement for move_base
https://uos.github.io/mbf_docs/
BSD 3-Clause "New" or "Revised" License
434 stars 154 forks source link

skip tf lookup if target frame matches input frame #313

Closed ChristofDubs closed 1 year ago

ChristofDubs commented 1 year ago

When comparing the get_path/goal/goal/target_pose and get_path/result/result/path/poses[-1] (both in the same coordinate frame map), I noticed that the poses were slightly different sometimes (in orientation). I traced it down to being caused by transformPose "transforming" the pose from map to map; skipping the transformation for matching frames and just returning the input pose fixed the above issue.