Ask Your Question
3

Position and Velocity

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

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
6

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

Stephan gravatar image

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

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
1

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

Dustin gravatar image

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

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

Comments

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 imageStephan ( 2012-03-26 01:06:09 -0500 )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

Stats

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

Seen: 2,717 times

Last updated: Mar 26 '12