16 #include <pinocchio/fwd.hpp>
19 #include <dynamic-graph/linear-algebra.h>
22 #include <dynamic-graph/all-signals.h>
23 #include <dynamic-graph/entity.h>
50 virtual const std::string &
getClassName(
void)
const {
return CLASS_NAME; }
65 bool withForceSignals[4];
86 virtual void setState(
const dynamicgraph::Vector &st);
115 dynamicgraph::SignalPtr<dynamicgraph::Vector, int>
controlSIN;
117 dynamicgraph::SignalPtr<dynamicgraph::Vector, int>
zmpSIN;
121 dynamicgraph::Signal<dynamicgraph::Vector, int>
stateSOUT;
141 dynamicgraph::Signal<dynamicgraph::Vector, int> *forcesSOUT[4];
150 const dynamicgraph::Vector &control,
double dt);
172 virtual void setRoot(
const dynamicgraph::Matrix &root);
178 dynamicgraph::Vector forceZero6;
#define SOT_CORE_EXPORT
Definition: api.hh:20
virtual void integrate(const double &dt)
dynamicgraph::Vector vel_control_
Definition: device.hh:63
PeriodicCall & periodicCallBefore()
Definition: device.hh:102
virtual void setNoIntegration()
virtual void increment(const double &dt=5e-2)
dynamicgraph::Signal< dynamicgraph::Vector, int > pseudoTorqueSOUT
Definition: device.hh:144
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > zmpSIN
Definition: device.hh:117
dynamicgraph::Signal< dynamicgraph::Vector, int > motorcontrolSOUT
The current state of the robot from the command viewpoint.
Definition: device.hh:125
virtual void cmdDisplay()
virtual void setSecondOrderIntegration()
virtual void display(std::ostream &os) const
Vector upperPosition_
Definition: device.hh:72
Vector upperTorque_
Definition: device.hh:74
const MatrixHomogeneous & freeFlyerPose() const
Get freeflyer pose.
Device(const std::string &name)
ControlInput controlInputType_
Definition: device.hh:64
virtual void setRoot(const dynamicgraph::Matrix &root)
dynamicgraph::Signal< dynamicgraph::Vector, int > robotState_
Definition: device.hh:137
static const std::string CLASS_NAME
Definition: device.hh:49
MatrixHomogeneous ffPose_
Store Position of free flyer joint.
Definition: device.hh:152
void integrateRollPitchYaw(dynamicgraph::Vector &state, const dynamicgraph::Vector &control, double dt)
Compute roll pitch yaw angles of freeflyer joint.
virtual void setStateSize(const unsigned int &size)
void setSanityCheck(const bool &enableCheck)
virtual void setVelocity(const dynamicgraph::Vector &vel)
PeriodicCall periodicCallAfter_
Definition: device.hh:67
Vector lowerPosition_
Definition: device.hh:75
bool sanityCheck_
Definition: device.hh:62
void setVelocityBounds(const Vector &lower, const Vector &upper)
virtual void setState(const dynamicgraph::Vector &st)
virtual void setControlInputType(const std::string &cit)
dynamicgraph::Signal< dynamicgraph::Vector, int > robotVelocity_
Motor velocities.
Definition: device.hh:139
virtual void setRoot(const MatrixHomogeneous &worldMwaist)
void setTorqueBounds(const Vector &lower, const Vector &upper)
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > attitudeSIN
Definition: device.hh:116
dynamicgraph::Signal< dynamicgraph::Vector, int > ZMPPreviousControllerSOUT
The ZMP reference send by the previous controller.
Definition: device.hh:128
dynamicgraph::Vector velocity_
Definition: device.hh:61
dynamicgraph::Signal< dynamicgraph::Vector, int > previousControlSOUT
Definition: device.hh:126
Vector upperVelocity_
Definition: device.hh:73
SOT_CORE_EXPORT friend std::ostream & operator<<(std::ostream &os, const Device &r)
Definition: device.hh:108
dynamicgraph::Signal< MatrixRotation, int > attitudeSOUT
Definition: device.hh:123
virtual const std::string & getClassName(void) const
Definition: device.hh:50
void setVelocitySize(const unsigned int &size)
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > controlSIN
Definition: device.hh:115
dynamicgraph::Vector state_
Definition: device.hh:60
PeriodicCall periodicCallBefore_
Definition: device.hh:66
PeriodicCall & periodicCallAfter()
Definition: device.hh:103
dynamicgraph::Signal< dynamicgraph::Vector, int > stateSOUT
Definition: device.hh:121
double timestep_
Definition: device.hh:68
void setPositionBounds(const Vector &lower, const Vector &upper)
Vector lowerTorque_
Definition: device.hh:77
dynamicgraph::Signal< dynamicgraph::Vector, int > velocitySOUT
Definition: device.hh:122
ForceSignalSource
Definition: device.hh:52
@ FORCE_SIGNAL_RARM
Definition: device.hh:55
@ FORCE_SIGNAL_RLEG
Definition: device.hh:53
@ FORCE_SIGNAL_LLEG
Definition: device.hh:54
Vector lowerVelocity_
Definition: device.hh:76
Definition: periodic-call.hh:37
Eigen::Transform< double, 3, Eigen::Affine > SOT_CORE_EXPORT MatrixHomogeneous
Definition: matrix-geometry.hh:75
ControlInput
Define the type of input expected by the robot.
Definition: device.hh:34
@ CONTROL_INPUT_NO_INTEGRATION
Definition: device.hh:35
@ CONTROL_INPUT_ONE_INTEGRATION
Definition: device.hh:36
@ CONTROL_INPUT_TWO_INTEGRATION
Definition: device.hh:37
@ CONTROL_INPUT_SIZE
Definition: device.hh:38
const std::string ControlInput_s[]
Definition: device.hh:41
Definition: abstract-sot-external-interface.hh:17