Skip to content
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

Create new messages with all fields needed to define a velocity and transform it #233

Closed
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions geometry_msgs/msg/VelocityStamped
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This expresses the timestamped velocity of a frame 'body_frame_id' in the reference frame 'header.frame_id' expressed from arbitrary observation pose 'observation_pose'.
# The message is often used in simplified versions where:
# - observation pose is not defined, i.e., it is assumed that the observation pose is the origin of the 'header.frame_id';
destogl marked this conversation as resolved.
Show resolved Hide resolved
# - if the observation pose is an established frame, you may set its frame_id only in the pose (since the relative pose to that frame is Identity);
# - 'body_frame_id' and 'header.frame_id' are identical, i.e., the velocity is observed and defined in the local coordinates system of the body
# which is the usual use-case in mobile robotics.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this particular line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am with you on this, my only concern is not to confuse people that are moving from Twist as used currently in Nav2 and ros2_control.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# which is the usual use-case in mobile robotics.
# as common in mobile robotics.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little confused. if body_frame_id and header.frame_id are identical, shouldn't the velocity be always zero? i.e, we're asking the velocity of a body relative to itself. On the other hand, we could have body_frame_id and observation_pose (via its frame_id) be identical and header.frame_id be something different from the two. This makes sense to me since it's asking the velocity of the body relative to whatever header.frame_id is but expressed in the body frame.


std_msgs/Header header
string body_frame_id
PoseStamped observation_pose
Twist velocity