franky.CRISPTracker¶
- franky.CRISPTracker(robot: Robot, **kwargs) CartesianImpedanceTracker¶
Create a
CartesianImpedanceTrackerpreconfigured like the CRISP controllers.The defaults follow CRISP’s default Cartesian impedance configuration for Franka robots (
default_cartesian_impedance.yamlof crisp_py) and the built-in defaults of crisp_controllers for everything it leaves unset:stiffness 600 N/m / 30 Nm/rad with damping 60 Ns/m / 10 Nms/rad,
error clipping at 0.1 m / 0.5 rad, expressed in the end-effector frame,
Coriolis compensation, no operational space control, kinematic nullspace projector,
a posture task holding the start configuration (stiffness 5, at most 5 Nm),
torque rate limit of 0.5 Nm per cycle and joint-limit repulsion within 0.1 rad of the limits read from
Robot.model_urdf,CRISP’s light exponential filters on the target pose, joint state, and output torque.
CRISP’s friction compensation uses a model franky does not implement, so friction compensation stays off. Any keyword argument of
CartesianImpedanceTrackeroverrides the corresponding default; passposture_task=Noneto disable the posture task. Passinggainsreplaces the default stiffness and damping. The default damping is fixed, so when changing the stiffness, also passdamping(orCRITICAL).Example:
with CRISPTracker(robot, period=0.05) as tracker: while tracker.tick(): tracker.set_target(policy_action())