How to publish custom topic from command line
Hi to all,
I have a ROS Node that uses custom messages:
//robo_io.msg
bool out_0
bool out_1
int64 var1
I publish them from my node in C++ in this way:
var_pub = n.advertise<robo_explorer::robo_io>("/robo_explorer/io_status, 1000);
and it works very well!
The problem is that I would like to send some messages by using the terminal, but I'm having problems with the syntax to use.
I tried with:
rostopic pub /robo_explorer/io_status std_msgs/Bool "out_1: true"
but it says that there is no field name out_1
.
Can you help, me?
Thank you!