Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is header.seq, header.stamp header.frame_id for mavros topics

I am not able to understand the following error (specially first three arguments of the header) with msg type Type: geometry_msgs/PoseStamped. It would be good if I get example for this command

rostopic pub -r 1 /mavros/setpoint_position/local  geometry_msgs/PoseStamped geometry_msgs/Pose '[0.0,0.0,3.0]' '[0.0,0.0,0.0]'
    ERROR: Too many arguments:
     * Given: ['geometry_msgs/Pose', [0.0, 0.0, 3.0], [0.0, 0.0, 0.0]]
     * Expected: ['header', 'pose']

Args are: [header.seq header.stamp header.frame_id pose.position.x pose.position.y pose.position.z pose.orientation.x pose.orientation.y pose.orientation.z pose.orientation.w]

Here is datatype of msg

rosmsg show geometry_msgs/PoseStamped
std_msgs/Header header
  uint32 seq
  time stamp
  string frame_id
geometry_msgs/Pose pose
  geometry_msgs/Point position
    float64 x
    float64 y
    float64 z
  geometry_msgs/Quaternion orientation
    float64 x
    float64 y
    float64 z
    float64 w