ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't know the details of your situation. However if you only care about the latest data measurement and you are fine if older, not yet sent values, get dropped, then try setting the publishers queue_size
to 1
. Like so:
self.marker_publisher = rospy.Publisher('visualization_marker', Marker, queue_size=1, latch=True)
With queue_size=100
you are avoiding having missing data and potentially accumulating visualization markers yet to be published.
Additionally, what is the rate of your incomming messages? You could consider if reducing the rate at which sensor_data
is being published is an valid option.
2 | No.2 Revision |
I don't know the details of your situation. However if you only care about the latest data measurement and you are fine if older, not yet sent values, get dropped, then try setting the publishers queue_size
to 1
. Like so:
self.marker_publisher = rospy.Publisher('visualization_marker', Marker, queue_size=1, latch=True)
With queue_size=100
you are avoiding having missing data and potentially accumulating visualization markers yet to be published.
Additionally, what is the rate of your incomming incoming messages? You could also consider if reducing the rate at which sensor_data
is being published is an valid option.