Ask Your Question

Revision history [back]

To publish on a topic you need to use the topic type of that topic (just like you are doing in C++).

rostopic pub /robo_explorer/io_status robo_explorer/robo_io "{ out_1: true }"

Assuming that's the namespace and name of your custom message and you've sourced your workspace in the current shell (so that rostopic can find the custom message definition).