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

iasons's profile - activity

2023-05-07 02:53:54 -0500 received badge  Nice Question (source)
2020-12-16 22:18:11 -0500 received badge  Student (source)
2016-08-10 08:33:59 -0500 received badge  Famous Question (source)
2016-03-17 10:17:33 -0500 received badge  Notable Question (source)
2016-02-10 07:27:32 -0500 received badge  Popular Question (source)
2015-12-07 08:39:57 -0500 asked a question /joint_states topic and publish rate

I want to read the joint states of a robot from the /joint_states topic, preferably at 1kHz. The problem is that when I increase the publishing rate X of the joint controller above 100Hz, a subscriber to /joint_states receives messages at X Hz for 1-2 seconds and then the rate changes. The joint_states topic seems to give me packets of messages in a smaller frequency.

For instance, I have 1Khz publish rate. For the first half a second I have 1 msg every 1 ms. After that half a second I receive 20 msgs together every 20ms.

I have visualized this issue with rosbag and it seems to be repeatable in multiple machines. Also the timing and the behaviour is exactly the same every time.

I have tried to subscribe to /joint_states topic running the Shadow's robot hand and the KUKA LWR4+ ROS packages from here: https://github.com/CentroEPiaggio/kuk... either in real robots or simulated with gazebo, and the same issue is persistent, so I don't thing is something depended on the robot.

Has anyone else noticed this behaviour? It seems like a buffer is full or something locks a mutex during the real-time publishing of the joint state controller.