franka_ros2: communication_constraints_violation

...

[ros2_control_node-6] [ERROR] [1739844272.283399633] [franka.franka_robot_state_broadcaster]: Failed to lock the realtime publisher after 10 attempts                                                                                                     
[ros2_control_node-6] [ERROR] [1739844272.283458191] [franka.controller_manager]: The update call of the following controller returned an error: 'franka_robot_state_broadcaster'                                                                         
[ros2_control_node-6] terminate called after throwing an instance of 'franka::ControlException'                                                                                                                                                           
[ros2_control_node-6]   what():  libfranka: Move command aborted: motion aborted by reflex! ["communication_constraints_violation"]                                                                                                                       
[ros2_control_node-6] Stack trace (most recent call last) in thread 1767:                                                                                                                                                                                 
[ros2_control_node-6] #18   Object "", at 0xffffffffffffffff, in              

...

Kernel: 6.8.2-rt11 #1 SMP PREEMPT_RT FCI: 5.7.2 libfranka: 0.15.0 ROS2: humble

Self ping test:

10000 packets transmitted, 10000 received, 0% packet loss, time 10089ms
rtt min/avg/max/mdev = 0.131/0.209/0.452/0.041 ms

communication_test:

#######################################################
Control command success rate of 10000 samples: 
Max: 1.00
Avg: 1.00
Min: 0.95
#######################################################

I am currently operating an FR3 robotic arm using ROS2. During operation, the communication_constraints_violation error occurs frequently. I would like to identify the cause and find a solution.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (4 by maintainers)

Most upvoted comments

This issue still persist. The RAI Institute met with Franka team (Dmitrij Forssilow, Jeremie Tardivon, Kamal Mohy El Dine) on 3/25 to discuss bugs.
During that meeting, RAI decided to wait until FW 5.8 before further debugging this issue. We choose to roll back to FW 5.6.0 until then, since the bug is not present in 5.6.0.

I may have wiped out the logs by installing FW 5.6.0 and doing a factory reset.

Hi @AndreasKuhner , we ran the communication test that you asked for. I changed the time in examples/communication_test.cpp from 10 seconds to 20 minutes.

This is on a real-time Ubuntu machine that is connected to two FR3s by ethernet. Arm 1: Control command success rate of 1200000 samples: Max: 1.00 Avg: 1.00 Min: 0.98

Arm 2: Control command success rate of 1200000 samples: Max: 1.00 Avg: 1.00 Min: 0.99

Separately, I ran tests with our Franka ROS driver. The first arm gets a communication_constraints_violation in 9 minutes. The second arm in 24 minutes. Running both Franka ROS drivers at once leads to a communication_constraints_violation in 9, 11 and 12 minutes in three tests. Hence, we need to restart our bimanual setup once every roughly 10 minutes, which makes working with the FR3s difficult.