29#include <Eigen/Geometry>
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;
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()));
The periodic task executes one thread method repeatedly using the time period specified in the constr...
IceUtil::Handle< PeriodicTask< T > > pointer_type
Shared pointer type for convenience.
Brief description of class ReflexCombination.
Eigen::Vector3f quaternionToRPY(Eigen::Quaternionf q)
void setEnabled(bool enabled)
std::map< std::string, float > getJoints()
void setWeight(float weight)
virtual std::string getName() const =0
std::map< std::string, float > jointAngles
Quaternion< float, 0 > Quaternionf
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< Reflex > ReflexPtr