-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joint Trajectory Controller misses subscriber callback #1414
Comments
Please add which RMW you are using. If we can't reproduce it, this is very hard to debug. |
The RMW used for testing is the default one, Based on your response, I conducted additional tests. At this point, I believe the issue is related to the In conclusion, |
Even though not declared so upstream We made the experience in our system that with an increasing number of participants and topics it seemed to perform worse. For simple demo setups I never ran into any issues with it. With cyclone we never had issues also with an increasing amount of endpoints. If you want or need to stay with fastrtps you might want to try working on Jazzy instead of Humble. I can imagine that there are some patches which might improve the behavior. You might also want to play around with the configuration a bit: https://github.com/ros2/rmw_fastrtps?tab=readme-ov-file |
I tested the Joint Trajectory Controller (JTC) on the UR10 robot in simulation and encountered a rare bug with the controller subscriber (
joint_command_subscriber_
) associated with the\joint_trajectory
topic. Occasionally, the callback bound to the subscriber is not triggered, despite there being no apparent reason for this behavior.After further testing, I confirmed that the issue lies with the callback not being called. I suspect the ROS 2 middleware might not be triggering the callback for unknown reasons. Since all nodes are running on the same machine, I don't believe the issue is related to packet loss or network problems.
This bug is difficult to replicate as it occurs very infrequently. Do you have any insights into why this might be happening? Could it be related to a configuration issue in the controller manager that’s causing this bug?
To reproduce, load and activate the Joint Trajectory Controller on any simulated robot. Then, in another terminal, publish a valid message on the
\joint_trajectory
topic. After many successful executions, you may notice that occasionally a message will be lost for unknown reasons.My environment is as follows:
OS: Ubuntu 22.04
ROS 2 Version: Humble
The text was updated successfully, but these errors were encountered: