frankaemika / libfranka

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

Controlling franka gripper in real time #151

Open sdfzz opened 4 months ago

sdfzz commented 4 months ago

Hi all,

I'm trying to use a franka research 3 robot as a follower robot of a teleoperation system.

I want the operator to be able to freely open/close the gripper and grasp objects with various shapes; thus, I figured that "grasp()" function provided by libfranka may not be the best choice.

So, I tried to use "move()" function instead, but got following problems:

  1. using "move()" function inside realtime loop caused "communication_constraints_violation" error
  2. when I placed "move()" in other loop, I can control the gripper, but it seems that the function freezes when the gripper grasped the object (ie. it cannot move to the desired position). Upon grasping an object, the gripper control loop freezed.

What is the best way to control the franka gripper in realtime to grasp and move objects with various size without ROS?

Any help would be appreciated

Regards,

Steve