Ask Your Question
3

What is the proper method for formatting LinkStates messages in Gazebo ROS?

asked 2022-09-25 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-09-03 16:00:00 +0000

plato gravatar image

The proper method for formatting LinkStates messages in Gazebo ROS is to use the standard ROS message format, which includes the message type and fields. The LinkStates message type contains two fields: pose and twist. The pose field contains the position and orientation of the link, while the twist field contains information about the linear and angular velocities of the link. The message should be formatted as follows:

Header header
string[] name
geometry_msgs/Pose[] pose
geometry_msgs/Twist[] twist

Where:

  • header: contains metadata about the message, such as a timestamp or frame ID.
  • name: an array of string values representing the names of the links.
  • pose: an array of geometry_msgs/Pose messages, each containing the position and orientation of a link.
  • twist: an array of geometry_msgs/Twist messages, each containing the linear and angular velocities of a link.

The specific values for each field should be set to match the current state of the links in the Gazebo world.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-09-25 11:00:00 +0000

Seen: 9 times

Last updated: Sep 03 '22