|
| | StopMotion (const TorqueStopParams ¶ms={}) |
| |
| virtual | ~Motion ()=default |
| |
| void | addReaction (std::shared_ptr< Reaction< franka::Torques > > reaction) |
| | Add a reaction to the motion.
|
| |
| void | addReactionFront (std::shared_ptr< Reaction< franka::Torques > > reaction) |
| | Add a reaction to the front of the reaction list.
|
| |
| std::vector< std::shared_ptr< Reaction< franka::Torques > > > | reactions () |
| | Currently registered reactions of the motion.
|
| |
| void | registerCallback (CallbackType callback) |
| | Register a callback that is called in every step of the motion.
|
| |
| void | init (Robot *robot, const RobotState &robot_state, const std::optional< franka::Torques > &previous_command) |
| | Initialize the motion. Motions can only be started once; this function throws a MotionReuseException on any subsequent call.
|
| |
| bool | has_started () const |
| | Whether this motion has already been started. Started motions cannot be started again.
|
| |
| franka::Torques | nextCommand (const RobotState &robot_state, franka::Duration time_step, franka::Duration rel_time, franka::Duration abs_time, const std::optional< franka::Torques > &previous_command) |
| | Get the next command of the motion.
|
| |
| std::shared_ptr< Motion< franka::Torques > > | checkAndCallReactions (const RobotState &robot_state, franka::Duration rel_time, franka::Duration abs_time) |
| | Check and call reactions.
|
| |
Graceful stop for torque-control (impedance) motions.
Torque motions never signal MotionFinished on their own, and franka::Robot::stop() preempts the control loop with a franka::ControlException rather than ramping down. This motion ramps the last commanded torque into a damping-only law and then returns franka::MotionFinished.