Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix delay on detecting a running rosmaster with use_sim_time set #532
rosbag record will wait for a full second before recording data if the use_sim_time is true. Since, the timer uses rostime, it will not begin executing until a clock is detected, then a full second will pass until the timer fires and checks for the master. This is an issue for scripts that run rosbag record. By checking first for the rosmaster, we can avoid the one second startup delay.
Yes. Here is the setup.
You can generate a bag file like this, running each command in a separate terminal:
You can tear down the setup and create a new setup, running each in a terminal in sequence:
rosbag record is waiting for a clock signal.
Then, we can
With the patch, the 10 messages are not missing.