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

MagicMan's profile - activity

2020-12-18 16:42:09 -0500 marked best answer rosbag record is not recording topic at the same frequency that the topic is being published?

I have a very simple package with one only one node. This node reads data from an MC DAQ and publishes data to the topic /MC_AI. The node is working as intended, and using rostopic hz /MC_AI I can see that the publishing rate is around 1100Hz, which is what I need.

This node is meant to run in parallel with a second node that publishes image data to another topic at around 100Hz. I have verified that I can run both nodes simultaneously while still maintaining the 1100 & 100 Hz rates I require.

However, when I use rosbag record to save my data to a .bag file, I noticed that the /MC_AI topic is only being logged at around 200Hz. I should mention that recording just the /MC_AI topic allows the 1100Hz rate to be achieved. It seems that the addition of logging my image data is causing a slow down in record rate for /MC_AI.

I launch rosbag record in a launch file if that makes any difference.

Any ideas on what is causing this behavior? I have verified that the topic is still being published at 1100Hz when recording so I don't think rosbag record is slowing anything down. Have you heard of anything that will cause data to be recorded at a slower rate than it is published? Could this be a limitation of my disk write speed?

If anyone has any suggestions I would greatly appreciate it.

2019-08-14 05:23:40 -0500 received badge  Famous Question (source)
2019-08-01 13:02:57 -0500 received badge  Notable Question (source)
2019-07-29 17:03:34 -0500 received badge  Popular Question (source)
2019-07-29 12:24:38 -0500 edited answer rosbag record is not recording topic at the same frequency that the topic is being published?

Solved it myself. I had the use_sim_time parameter set to true; it should be false.

2019-07-29 12:24:38 -0500 received badge  Editor (source)
2019-07-29 12:24:28 -0500 edited answer rosbag record is not recording topic at the same frequency that the topic is being published?

Solved it myself. I has the use_sim_time parameter set to true; it should be false.

2019-07-29 12:24:13 -0500 answered a question rosbag record is not recording topic at the same frequency that the topic is being published?

Solved it myself. I has the use_sim_time set to true; it should be false.

2019-07-26 07:30:42 -0500 commented question rosbag record is not recording topic at the same frequency that the topic is being published?

I haven't seen any warnings, and the 200Hz rate I am seeing is too consistent for dropped messages. Considering my image

2019-07-25 22:13:45 -0500 asked a question rosbag record is not recording topic at the same frequency that the topic is being published?

rosbag record is not recording topic at the same frequency that the topic is being published? I have a very simple packa