29 #include <Eigen/Geometry>
35 class ReflexCombination;
46 task->setDelayWarningTolerance(5);
57 if (!task->isRunning())
66 if (task->isRunning())
89 std::map<std::string, float>
92 std::scoped_lock lock(
mutex);
113 this->weight = weight;
116 virtual std::string
getName()
const = 0;
123 Eigen::Vector3f euler;
125 euler(0) = -std::atan2(2.0 * (
q.w() *
q.x() -
q.y() *
q.z()),
126 1.0 - 2.0 * (
q.x() *
q.x() +
q.y() *
q.y()));
127 euler(1) = std::asin(2.0 * (
q.w() *
q.y() -
q.z() *
q.x()));
128 euler(2) = std::atan2(2.0 * (
q.w() *
q.z() +
q.x() *
q.y()),
129 1.0 - 2.0 * (
q.y() *
q.y() +
q.z() *
q.z()));
134 virtual void calc() = 0;
136 virtual void onStop() = 0;