10 #include <dynamic-graph/pool.h> 31 panRank(PAN_RANK_DEFAULT),
32 tiltRank(TILT_RANK_DEFAULT),
33 coeffLinearPan(COEFF_LINEAR_DEFAULT),
34 coeffAffinePan(COEFF_AFFINE_DEFAULT),
35 signTilt(SIGN_TILT_DEFAULT)
38 jointSIN(NULL,
"NeckLimitation(" + name +
")::input(vector)::joint"),
42 "NeckLimitation(" + name +
")::output(dummy)::jointLimited") {
68 const double &pan = joint(
panRank);
69 const double &tilt = joint(
tiltRank);
70 double &panLimited = jointLimited(
panRank);
71 double &tiltLimited = jointLimited(
tiltRank);
75 sotDEBUG(15) <<
"Pan = 0" << std::endl;
83 sotDEBUG(15) <<
"Pan > 0" << std::endl;
106 sotDEBUG(15) <<
"Pan < 0" << std::endl;
141 os <<
"NeckLimitation " <<
getName() <<
"." << std::endl;
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > jointSOUT
static const double SIGN_TILT_DEFAULT
NeckLimitation(const std::string &name)
void signalRegistration(const SignalArray< int > &signals)
#define sotDEBUGOUT(level)
static const unsigned int TILT_RANK_DEFAULT
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
#define sotDEBUGIN(level)
static const double COEFF_LINEAR_DEFAULT
virtual void display(std::ostream &os) const
static const double COEFF_AFFINE_DEFAULT
dynamicgraph::Vector & computeJointLimitation(dynamicgraph::Vector &jointLimited, const int &timeSpec)
const std::string & getName() const
static const unsigned int PAN_RANK_DEFAULT
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > jointSIN
virtual ~NeckLimitation(void)