29 #include <Eigen/Geometry>
35 class ReflexCombination;
44 task->setDelayWarningTolerance(5);
55 if (!task->isRunning())
63 if (task->isRunning())
87 std::scoped_lock lock(
mutex);
107 this->weight = weight;
110 virtual std::string
getName()
const = 0;
117 Eigen::Vector3f euler;
119 euler(0) = -std::atan2(2.0 * (
q.w() *
q.x() -
q.y() *
q.z()), 1.0 - 2.0 * (
q.x() *
q.x() +
q.y() *
q.y()));
120 euler(1) = std::asin(2.0 * (
q.w() *
q.y() -
q.z() *
q.x()));
121 euler(2) = std::atan2(2.0 * (
q.w() *
q.z() +
q.x() *
q.y()), 1.0 - 2.0 * (
q.y() *
q.y() +
q.z() *
q.z()));
126 virtual void calc() = 0;
128 virtual void onStop() = 0;