I want to publish messages to my robot in order to get it to move in the command line but I can't figure out how to format the rostopic pub /topic /type . I'm having issue with the data and how to find the format for it. I'll include a specific example below. Command Line Input:
$ rosmsg show gazebo_msgs/ModelStates
string[] name
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
geometry_msgs/Twist[] twist
geometry_msgs/Vector3 linear
float64 x
float64 y
float64 z
geometry_msgs/Vector3 angular
float64 x
float64 y
float64 z
This is what I'm thinking. Someone please help!
rostopic pub -10 /gazebo/model_states gazebo_msgs/ModelStates '"Hello" [] [] [] []"
Originally posted by RichardVZ on ROS Answers with karma: 1 on 2023-06-16
Post score: 0