Frankx  0.2.0
A High-Level Motion API for Franka
Public Types | Public Member Functions | Public Attributes | List of all members
movex::Reaction Struct Reference

#include <reaction.hpp>

Public Types

using WaypointAction = std::function< WaypointMotion(const RobotState< 7 > &, double)>
 

Public Member Functions

 Reaction (Condition::CallbackType callback)
 
 Reaction (Condition::CallbackType callback, std::optional< std::shared_ptr< WaypointMotion >> waypoint_motion)
 
 Reaction (Condition::CallbackType callback, std::optional< WaypointAction > waypoint_action)
 
 Reaction (Condition condition)
 
 Reaction (Condition condition, std::optional< std::shared_ptr< WaypointMotion >> waypoint_motion)
 
 Reaction (Condition condition, std::optional< WaypointAction > waypoint_action)
 

Public Attributes

std::optional< WaypointActionwaypoint_action
 
std::optional< std::shared_ptr< WaypointMotion > > waypoint_motion
 
Condition condition
 
bool has_fired {false}
 

Member Typedef Documentation

◆ WaypointAction

using movex::Reaction::WaypointAction = std::function<WaypointMotion(const RobotState<7>&, double)>

Constructor & Destructor Documentation

◆ Reaction() [1/6]

movex::Reaction::Reaction ( Condition::CallbackType  callback)
inlineexplicit

◆ Reaction() [2/6]

movex::Reaction::Reaction ( Condition::CallbackType  callback,
std::optional< std::shared_ptr< WaypointMotion >>  waypoint_motion 
)
inlineexplicit

◆ Reaction() [3/6]

movex::Reaction::Reaction ( Condition::CallbackType  callback,
std::optional< WaypointAction waypoint_action 
)
inlineexplicit

◆ Reaction() [4/6]

movex::Reaction::Reaction ( Condition  condition)
inlineexplicit

◆ Reaction() [5/6]

movex::Reaction::Reaction ( Condition  condition,
std::optional< std::shared_ptr< WaypointMotion >>  waypoint_motion 
)
inlineexplicit

◆ Reaction() [6/6]

movex::Reaction::Reaction ( Condition  condition,
std::optional< WaypointAction waypoint_action 
)
inlineexplicit

Member Data Documentation

◆ condition

Condition movex::Reaction::condition

◆ has_fired

bool movex::Reaction::has_fired {false}

◆ waypoint_action

std::optional<WaypointAction> movex::Reaction::waypoint_action

◆ waypoint_motion

std::optional<std::shared_ptr<WaypointMotion> > movex::Reaction::waypoint_motion

The documentation for this struct was generated from the following file: