franky.JointVelocityReaction

class franky.JointVelocityReaction

Bases: JointVelocityReaction, Reaction

A reaction that replaces the current motion with a joint velocity motion.

__init__(self: franky._franky.JointVelocityReaction, condition: franky._franky.Condition, motion: franky._franky.BaseJointVelocityMotion = None) None
Parameters:
  • condition – The condition that must be met for the reaction to be executed.

  • new_motion – The motion that is executed if the condition is met.

register_callback(self: franky._franky.JointVelocityReaction, callback: collections.abc.Callable[[franky._franky.RobotState, franky._franky.Duration, franky._franky.Duration], None]) None

Register a callback that is called when the condition of this reaction is met.

Parameters:

callback – The callback to register. Callbacks are called with the robot state, the relative time [s] and the absolute time [s].