frankaemika / libfranka

C++ library for Franka research robots
https://frankaemika.github.io
Apache License 2.0
221 stars 147 forks source link

Motion finished commanded, but the robot is still moving! #137

Closed yetian0 closed 11 months ago

yetian0 commented 1 year ago

Hi, I met this question "Motion finished commanded, but the robot is still moving! " between franka finished one movement and restart for another movement. I can not even find which kind of exception this is, can anyone help with it? Thanks.

marcbone commented 1 year ago

This should be a franka::ControlException. Usually this happens when you commanded too high velocities at some point in your trajectory with the rate limiter enabled. The rate limiter will limit your commanded velocity, but when you are now send your last command the robot is still moving since it tries to catch up. To fix this you should disable the rate_limiter in the control method:

robot.control(your_control_callback_function, false);

When you use an FR3 this is probably already enough to make it work. If you are using a Panda you probably also have to make your trajectory slower.

104H commented 7 months ago

Hi. I am using the Franka Production 3 and I face this error. I am using the JointPosition based controller.

The rate limiter is false by default. The cutoff frequency is set to 100.0 (by default).

The exactly error statement is:

Motion finished commanded, but the robot is still moving! ["joint_motion_generator_velocity_discontinuity", "joint_motion_generator_acceleration_discontinuity"]