Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes interpretation of a delayed initialpose message (see ros-planni…
…ng#424). The tf lookup as it was before this change was very likely to fail as ros::Time::now() was used to look up a tf without waiting on the tf's availability. Additionally, the computation of the "new pose" by multiplying the delta that the robot moved from the initialpose's timestamp to ros::Time::now() was wrong. That delta has to by multiplied from the right to the "old pose". This commit also changes the reference frame to look up this delta to be the odom frame as this one is supposed to be smooth and therefore the best reference to get relative robot motion in the robot (base link) frame.
- Loading branch information