Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You are right. The LED will be a subscriber, the switch will publish the switches state, although both functionalities can go in the same node.

std_msgs/Bool might probably be the thing you'd want to use for that.