27#include <Eigen/Geometry>
29#include <VirtualRobot/IK/GazeIK.h>
30#include <VirtualRobot/Nodes/RobotNode.h>
31#include <VirtualRobot/Robot.h>
32#include <VirtualRobot/RobotNodeSet.h>
33#include <VirtualRobot/VirtualRobot.h>
54 forward_predictor = NULL;
69 if (forward_predictor)
71 delete forward_predictor;
75 void setRobot(std::string nodeSetName,
76 std::string headIKName,
78 void setBools(
bool armar4,
bool velocityBased);
83 reportJointAngles(
const NameValueMap& values,
bool valueChanged,
const Ice::Current&
c);
89 const FramedPositionBasePtr& targetPosition);
94 return "FeedforwardReflex";
106 void calc()
override;
110 std::vector<VirtualRobot::RobotNodePtr> allRobotNodeSet;
112 std::string headIKName;
114 std::mutex dataMutex;
119 std::vector<std::string> headJointNames;
122 IceUtil::Time startTime;
124 bool reportedJointAnglesBool, reportedJointVelocitiesBool;
125 bool armar4, velocityBased;
126 NameValueMap reportedJointAngles, reportedJointVelocities;
std::string getName() const override
void reportJointAngles(const NameValueMap &values, bool valueChanged, const Ice::Current &c)
void reportHeadTargetChanged(const NameValueMap &targetJointAngles, const FramedPositionBasePtr &targetPosition)
FeedforwardReflex(int interval)
std::vector< float > optFlow_pred
~FeedforwardReflex() override
bool update_input_fromArmarX(GazeStabInput *gs_input)
std::vector< float > gyroscopeRotation_pred
void update_output_toArmarX(GazeStabOutput *gs_output)
void reportPlatformVelocity(float x, float y, float a)
void reportJointVelocities(const NameValueMap &values, bool valueChanged, const Ice::Current &c)
void setBools(bool armar4, bool velocityBased)
void setRobot(std::string nodeSetName, std::string headIKName, RobotStateComponentInterfacePrx robotStateComponent)
Brief description of class ReflexCombination.
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< FramedPosition > FramedPositionPtr
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx