5#include <franka/robot_state.h>
19 using MeasureFunc = std::function<double(
20 const RobotState &, franka::Duration, franka::Duration)>;
27 explicit Measure(MeasureFunc measure_func, std::string
repr =
"NULL");
46 franka::Duration rel_time,
47 franka::Duration abs_time)
const {
48 return measure_func_(robot_state, rel_time, abs_time);
54 [[nodiscard]]
inline std::string
repr()
const {
89 MeasureFunc measure_func_;
A condition on the robot state.
Definition condition.hpp:15
A measure on the robot state.
Definition measure.hpp:18
double operator()(const RobotState &robot_state, franka::Duration rel_time, franka::Duration abs_time) const
Get the value of the measure.
Definition measure.hpp:44
static Measure ForceY()
A measure that returns the linear force on the end-effector in Y direction as by the O_F_ext_hat_K co...
Definition measure.cpp:45
std::string repr() const
The string representation of the measure.
Definition measure.hpp:54
static Measure ForceX()
A measure that returns the linear force on the end-effector in X direction as by the O_F_ext_hat_K co...
Definition measure.cpp:37
static Measure AbsTime()
A measure that returns the absolute time since the start of the current chain of motions....
Definition measure.cpp:70
static Measure ForceZ()
A measure that returns the linear force on the end-effector in Z direction as by the O_F_ext_hat_K co...
Definition measure.cpp:53
static Measure RelTime()
A measure that returns the relative time since the start of the current motion.
Definition measure.cpp:61
Definition dynamics_limit.cpp:8
Measure measure_pow(const Measure &base, const Measure &exponent)
Definition measure.cpp:91
Condition operator==(const Condition &c1, const Condition &c2)
Definition condition.cpp:34
Measure operator+(const Measure &m1, const Measure &m2)
CartesianState operator*(const Affine &transform, const CartesianState &cartesian_state)
Definition cartesian_state.hpp:78
Condition operator<=(const Measure &m1, const Measure &m2)
Condition operator<(const Measure &m1, const Measure &m2)
Condition operator!=(const Condition &c1, const Condition &c2)
Definition condition.cpp:42
Condition operator>(const Measure &m1, const Measure &m2)
Condition operator>=(const Measure &m1, const Measure &m2)
Measure operator-(const Measure &m)
Definition measure.cpp:102
Measure operator/(const Measure &m1, const Measure &m2)
Full state of the robot.
Definition robot_state.hpp:20