franky.BaseCartesianVelocityMotionยถ

class franky.BaseCartesianVelocityMotionยถ

Bases: pybind11_object

Base class for motions.

Template Args:
ControlSignalType: Control signal type of the motion. Either franka::Torques,

franka::JointVelocities, franka::CartesianVelocities, franka::JointPositions or franka::CartesianPose.

__init__(*args, **kwargs)ยถ
add_reaction(self: franky._franky.BaseCartesianVelocityMotion, reaction: franky._franky.CartesianVelocityReaction) Noneยถ

Add a reaction to the motion.

Reactions are evaluated in every step of the motion and can replace the current motion with a new motion.

Parameters:

reaction โ€“ The reaction to add.

Warning

Do not call this function synchronously from a condition, motion function, or reaction callback while this motionโ€™s reactions are being evaluated. Reaction evaluation holds the reaction-list mutex, so doing so would deadlock.

register_callback(self: franky._franky.BaseCartesianVelocityMotion, callback: collections.abc.Callable[[franky._franky.RobotState, franky._franky.Duration, franky._franky.Duration, franky._franky.Duration, franky._franky.CartesianVelocities], None]) Noneยถ

Register a callback that is called in every step of the motion.

Parameters:

callback โ€“ The callback to register. Callbacks are called with the robot state, the time step [s], the relative time [s], the absolute time [s] and the control signal computed in this step.

property reactionsยถ

Currently registered reactions of the motion.