Frankx
0.2.0
A High-Level Motion API for Franka
|
Go to the documentation of this file.
18 callback = [
this, rhs](
const RobotState_& robot_state,
double time) {
19 return callback(robot_state, time) && rhs.callback(robot_state, time);
25 callback = [
this, rhs](
const RobotState_& robot_state,
double time) {
26 return callback(robot_state, time) || rhs.callback(robot_state, time);
33 return callback(robot_state, time);
43 using MeasureCallback = std::function<double(
const RobotState_&,
double)>;
45 MeasureCallback callback;
46 explicit Measure(MeasureCallback callback): callback(callback) { }
87 return callback(robot_state, time) == threshold;
93 return callback(robot_state, time) != threshold;
99 return callback(robot_state, time) < threshold;
105 return callback(robot_state, time) <= threshold;
111 return callback(robot_state, time) > threshold;
117 return callback(robot_state, time) >= threshold;
Condition & operator&&(const Condition &rhs)
Definition: measure.hpp:17
static Measure ForceXYZNorm()
Definition: measure.hpp:73
static Measure ForceZ()
Definition: measure.hpp:61
std::function< bool(const RobotState_ &, double)> CallbackType
Definition: measure.hpp:13
Definition: measure.hpp:10
Condition & operator||(const Condition &rhs)
Definition: measure.hpp:24
static Measure ForceXYNorm()
Definition: measure.hpp:67
Definition: measure.hpp:41
Condition operator>=(double threshold)
Definition: measure.hpp:115
Condition operator!=(double threshold)
Definition: measure.hpp:91
Condition operator==(double threshold)
Definition: measure.hpp:85
Condition operator<=(double threshold)
Definition: measure.hpp:103
bool operator()(const RobotState_ &robot_state, double time)
Check if the condition is fulfilled.
Definition: measure.hpp:32
The overall state of the robot.
Definition: robot_state.hpp:8
static Measure ForceY()
Definition: measure.hpp:55
std::array< double, 6 > O_F_ext_hat_K
Definition: robot_state.hpp:21
static Measure ForceX()
Definition: measure.hpp:49
Condition operator<(double threshold)
Definition: measure.hpp:97
Condition(CallbackType callback)
Definition: measure.hpp:15
Definition: motion_impedance.hpp:13
static Measure Time()
Definition: measure.hpp:79
Condition operator>(double threshold)
Definition: measure.hpp:109