ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Position and Velocity

asked 2012-03-25 15:42:53 -0600

David Lu gravatar image

Is there a standard-ish message that represents an object's 3d position and 3d velocity?

[insert Heisenberg joke here]

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-03-26 01:04:32 -0600

Stephan gravatar image

updated 2012-03-26 01:13:04 -0600

geometry_msgs/Twist is for velocities, geometry_msgs/Pose is for position and orientation.

nav_msgs/Odometry contains both together with covariances (whereas designed for other purpose).

If you just need Twist and Pose together, you can easily design your own message.

edit flag offensive delete link more

answered 2012-03-25 16:12:04 -0600

Dustin gravatar image

updated 2012-03-25 16:20:01 -0600

There is a message called JointMessage under common_msgs/sensor_msgs. It is defined as follows:

Header header

string[] name
float64[] position
float64[] velocity
float64[] effort

I'm unclear as to what name means but the other parameters are defined as:

# The state of each joint (revolute or prismatic) is defined by:
#  * the position of the joint (rad or m),
#  * the velocity of the joint (rad/s or m/s) and 
#  * the effort that is applied in the joint (Nm or N).

Since these parameters are arrays they should suffice for your needs.

edit flag offensive delete link more


I would not recommend using JointState to describe object position an velocity, there are other msgs that are designed for that. (The name field in JointState contains the joint's names.)

Stephan gravatar image Stephan  ( 2012-03-26 01:06:09 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-25 15:42:53 -0600

Seen: 4,052 times

Last updated: Mar 26 '12