demo/src/simple_node.cpp
/**
 * This tutorial demonstrates simple receipt of messages over the ROS system.
 */
This tutorial demonstrates simple receipt of messages over the ROS system.
This tutorial demonstrates simple receipt of messages over the ROS system .
void subscriberCallback1(const std_msgs::String::ConstPtr& msg)
{
    ROS_INFO_STREAM("First subscriber callback: "
                            << callback1_count
                            << ", in thread: " << boost::this_thread::get_id());
    callback1_count++;
    ros::Rate loop_rate(5);
    loop_rate.sleep();
}
void subscriberCallback1 ( const std_msgs :: String :: ConstPtr & msg ) { ROS_INFO_STREAM ( " " << callback1_count << " " << boost :: this_thread :: get_id ( ) ) ; callback1_count ++ ; ros :: Rate loop_rate ( 5 ) ; loop_rate . sleep ( ) ; }
This tutorial demonstrates simple receipt of messages over the ROS system.
This tutorial demonstrates simple receipt of messages over the ROS system .
// sleep for 200ms