Ask Your Question

Revision history [back]

In your code, you are advertising the messages on the topic "chatter". From your description, it appears you want to publish on the topic "visualisation_kit":

ros::Publisher chatter_pub = n.advertise<std_msgs::ColorRGBA>("visualisation_kit", 1000);

A good tool to debug the input and output topics of your nodes is rosnode. In your case, for example, type this in a console window after executing your "talker" node:

rosnode info talker