Franky 0.12.0
A High-Level Motion API for Franka
|
Cartesian motion with a single target. More...
#include <cartesian_motion.hpp>
Public Member Functions | |
CartesianMotion (const CartesianState &target, double state_estimate_weight=0.0, ReferenceType reference_type=ReferenceType::kAbsolute, const RelativeDynamicsFactor &relative_dynamics_factor=1.0, bool return_when_finished=true, const Affine &frame=Affine::Identity()) | |
Construct a Cartesian motion. | |
![]() | |
CartesianWaypointMotion (const std::vector< PositionWaypoint< CartesianState > > &waypoints, const RelativeDynamicsFactor &relative_dynamics_factor=1.0, bool return_when_finished=true, Affine ee_frame=Affine::Identity()) | |
![]() | |
PositionWaypointMotion (std::vector< PositionWaypoint< CartesianState > > waypoints, const RelativeDynamicsFactor &relative_dynamics_factor=1.0, bool return_when_finished=true) | |
![]() | |
WaypointMotion (std::vector< WaypointType > waypoints, bool return_when_finished=true) | |
![]() | |
virtual | ~Motion ()=default |
void | addReaction (std::shared_ptr< Reaction< ControlSignalType > > reaction) |
Add a reaction to the motion. | |
void | addReactionFront (std::shared_ptr< Reaction< ControlSignalType > > reaction) |
Add a reaction to the front of the reaction list. | |
std::vector< std::shared_ptr< Reaction< ControlSignalType > > > | 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< ControlSignalType > &previous_command) |
Initialize the motion. | |
ControlSignalType | nextCommand (const RobotState &robot_state, franka::Duration time_step, franka::Duration rel_time, franka::Duration abs_time, const std::optional< ControlSignalType > &previous_command) |
Get the next command of the motion. | |
std::shared_ptr< Motion< ControlSignalType > > | checkAndCallReactions (const RobotState &robot_state, franka::Duration rel_time, franka::Duration abs_time) |
Check and call reactions. | |
Cartesian motion with a single target.
|
explicit |
Construct a Cartesian motion.
target | The target Cartesian state. |
state_estimate_weight | Weighting of the robot state estimate vs the target when computing the current state to continue planning from. A value of 0 means that the planner always assumes it reached its last target perfectly (open loop control), while a value of 1 means that the planner always uses the robot state estimate (closed loop control). A value between 0 and 1 means that the planner uses a weighted average of the two. |
reference_type | The reference type (absolute or relative). An absolute target is defined in the robot's base frame, a relative target is defined in the current end-effector frame. |
relative_dynamics_factor | The relative dynamics factor for this motion. The factor will get multiplied with the robot's global dynamics factor to get the actual dynamics factor for this motion. |
return_when_finished | Whether to end the motion when the target is reached or keep holding the last target. |
frame | The end-effector frame for which the target is defined. This is a transformation from the configured end-effector frame to the end-effector frame the target is defined for. |