ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Rosbag is telling you that in 4 seconds after all the publishers are created, it will start to publish the data. This delay will allow all the XMLRPC handshake to be done by the subscribers. In pseudo code that look like this :

Nodehandle n
pub = n.advertise("topic")
sleep(4)
while(data to publish in bag file) {
 pub.publish(data);
 sleep(now-nextDataDate);
}

In the Talker / Listener sample here the takler "advertise" roscore that a topic exists...

When Node Talker Advertise that a topic exists, it is equivalent to say : "Hi roscore, I am Node "Talker", and I publish a data called "chatter", if some one is interested (subscribing) for this data, I am reachable on this URI "...

Rosbag is telling you that in 4 seconds after all the publishers are created, it will start to publish the data. This delay will allow all the XMLRPC handshake to be done by the subscribers. In pseudo code that look like this :

Nodehandle n
pub = n.advertise("topic")
sleep(4)
while(data to publish in bag file) {
 pub.publish(data);
 sleep(now-nextDataDate);
sleep(nextDataDate-now);
}

In the Talker / Listener sample here the takler "advertise" roscore that a topic exists...

When Node Talker Advertise that a topic exists, it is equivalent to say : "Hi roscore, I am Node "Talker", and I publish a data called "chatter", if some one is interested (subscribing) for this data, I am reachable on this URI "...