-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix optimal plan frame id #5572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Ege Ugur Agus <[email protected]>
|
Please explain. Isn't the cmd_vel simply a single timestep of the broader trajectory? That would put these into the same frame of reference. |
|
Yes, cmd_vel is a body-relative instantaneous velocity command, so it's expressed in the base frame link of the robot. The optimal_trajectory is generated by integrating these instantaneous velocities starting from the robot’s current pose in the costmap's global frame. So the steps of the trajectory are computed at the costmap's global frame. For example, assume a robot is at (10, 0) wrt to odom and facing east while cmd_vel only has linear.x as non-zero with 1.0. If we simulate 3 secs constant cmd_vel, the poses of the trajectory should be [(11, 0), (12, 0), (13, 0)] wrt odom while [(1, 0), (2, 0), (3, 0)] wrt to base_link. |
Signed-off-by: Ege Ugur Agus <[email protected]>
SteveMacenski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after going through to track down frames. Thanks!
|
One linting error left: |
Signed-off-by: Ege Ugur Agus <[email protected]>
Codecov Report❌ Patch coverage is
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
* Fix optimal plan frame id Signed-off-by: Ege Ugur Agus <[email protected]> * Remove Whitespaces. Signed-off-by: Ege Ugur Agus <[email protected]> * Fix linting error Signed-off-by: Ege Ugur Agus <[email protected]> --------- Signed-off-by: Ege Ugur Agus <[email protected]>
* Fix optimal plan frame id Signed-off-by: Ege Ugur Agus <[email protected]> * Remove Whitespaces. Signed-off-by: Ege Ugur Agus <[email protected]> * Fix linting error Signed-off-by: Ege Ugur Agus <[email protected]> --------- Signed-off-by: Ege Ugur Agus <[email protected]>
* Fix optimal plan frame id Signed-off-by: Ege Ugur Agus <[email protected]> * Remove Whitespaces. Signed-off-by: Ege Ugur Agus <[email protected]> * Fix linting error Signed-off-by: Ege Ugur Agus <[email protected]> --------- Signed-off-by: Ege Ugur Agus <[email protected]>
* Fix optimal plan frame id Signed-off-by: Ege Ugur Agus <[email protected]> * Remove Whitespaces. Signed-off-by: Ege Ugur Agus <[email protected]> * Fix linting error Signed-off-by: Ege Ugur Agus <[email protected]> --------- Signed-off-by: Ege Ugur Agus <[email protected]>
* Fix optimal plan frame id Signed-off-by: Ege Ugur Agus <[email protected]> * Remove Whitespaces. Signed-off-by: Ege Ugur Agus <[email protected]> * Fix linting error Signed-off-by: Ege Ugur Agus <[email protected]> --------- Signed-off-by: Ege Ugur Agus <[email protected]>
The cmd is wrt to the base frame while the optimal_trajectory is wrt to global frame. Fix the frame id for the trajectory_msg.
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers:
backport-*.