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

Performance impact of enabling topic statistics

asked 2018-02-27 14:06:08 -0600

IanCol gravatar image

ROS Topic Statistics are great for monitoring every topic on the system. Tools such as ARNI rely on topic statistics to be enabled at all times during normal operation.

Does anyone know what kind of performance impact there is to having enable_statistics set to True all the time?

Think of the following use case: I want to know the publish stats (frequency, data age) of a high-density Lidar driver output. I could subscribe to the pointcloud using a monitoring node, but this means the monitoring node would receive the entire pointcloud payload even though it doesn't need it. This seems rather inefficient, all it needs to know is if something was published or not and when.

Is that the purpose of topic statistics? a lightweight way to dump out all topic activity?

Just wondering if enable_statistics is something that was designed for debug only or something that could be left on at all times. I also couldn't find a REP that discusses topic statistics, if I missed something, please let me know.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-02-27 21:54:40 -0600

ahendrix gravatar image

topic statistics happen in the publisher, so they're a lot lower overhead than subscribing to the topic. Not quite zero overhead, but they shouldn't be too noticeable on the average system.

Of course, every system is different, and the only way to know is to profile your system with topic statistics enabled and disabled, and compare the results.

edit flag offensive delete link more

Comments

Thanks! just the clarification I was looking for. I'll try some profiling and see how it looks.

IanCol gravatar image IanCol  ( 2018-02-28 15:12:15 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-02-27 14:06:08 -0600

Seen: 565 times

Last updated: Feb 27 '18