Gazebo | Ignition | Community
Ask Your Question

Publish message from the command line

asked 2022-11-21 08:17:26 -0600

I am trying to send a cmd_pos message using the command line. The type of the message is igntion::msgs::Double. I am using the command

ign topic -t "world/empty/model/simple-robot/joint/the_joint/cmd_pos" -p "1.3" --msgtype ignition::msgs::Double`

instead of "1.3", I also tried 1.3, data: 1.3, {data: 1.3}, and more. But I keep getting the message

Unable to create message of type[ignition::msgs::Double] with data[...]

with my value for p on the ....

How can I send a Double message using the command line?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-11-22 02:20:42 -0600

I found out that the syntax should be ign topic -t "/the_topic" -m ignition.msgs.Double -p "data: 0.5" So using dots instead of double colons.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2022-11-21 08:17:26 -0600

Seen: 6 times

Last updated: Nov 22