Publishing a message in an interrupt
Hi,
I don't want to publish messages in while(ros::ok) loop, but rather when an interrupt is called. How can I do that? I'm completely new to ROS, so please try to answer, so that I could understand it correctly.