10 #ifndef __SOT_SOTGRIPPERCONTROL_H__
11 #define __SOT_SOTGRIPPERCONTROL_H__
18 #include <dynamic-graph/linear-algebra.h>
21 #include <dynamic-graph/all-signals.h>
22 #include <dynamic-graph/entity.h>
34 #if defined(gripper_control_EXPORTS)
35 #define SOTGRIPPERCONTROL_EXPORT __declspec(dllexport)
37 #define SOTGRIPPERCONTROL_EXPORT __declspec(dllimport)
40 #define SOTGRIPPERCONTROL_EXPORT
70 const dynamicgraph::Vector &torqueLimits,
71 const dynamicgraph::Vector ¤tNormVel);
75 const dynamicgraph::Vector ¤tPos,
76 const dynamicgraph::Vector &desiredPos,
77 const dynamicgraph::Vector &torques,
78 const dynamicgraph::Vector &torqueLimits,
79 dynamicgraph::Vector &referencePos);
85 static dynamicgraph::Vector &
selector(
const dynamicgraph::Vector &fullsize,
87 dynamicgraph::Vector &desPos);
95 :
public dynamicgraph::Entity,
97 DYNAMIC_GRAPH_ENTITY_DECL();
113 dynamicgraph::SignalPtr<dynamicgraph::Vector, int>
torqueSIN;
119 dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int>
124 dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int>
128 dynamicgraph::SignalTimeDependent<dynamicgraph::Vector, int>
Definition: gripper-control.hh:96
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > desiredPositionSOUT
Definition: gripper-control.hh:129
virtual std::string getDocString() const
virtual ~GripperControlPlugin(void)
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > torqueLimitReduceSOUT
Definition: gripper-control.hh:125
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > positionFullSizeSIN
Definition: gripper-control.hh:118
bool calibrationStarted
Definition: gripper-control.hh:100
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > torqueSIN
Definition: gripper-control.hh:113
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > positionSIN
Definition: gripper-control.hh:111
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > torqueReduceSOUT
Definition: gripper-control.hh:122
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > torqueLimitFullSizeSIN
Definition: gripper-control.hh:123
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, int > positionReduceSOUT
Definition: gripper-control.hh:120
void setOffset(const double &value)
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > positionDesSIN
Definition: gripper-control.hh:112
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > torqueLimitSIN
Definition: gripper-control.hh:114
dynamicgraph::SignalPtr< Flags, int > selectionSIN
Definition: gripper-control.hh:115
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > torqueFullSizeSIN
Definition: gripper-control.hh:121
GripperControlPlugin(const std::string &name)
The goal of this entity is to ensure that the maximal torque will not be exceeded during a grasping t...
Definition: gripper-control.hh:56
double offset
Definition: gripper-control.hh:58
static const double OFFSET_DEFAULT
Definition: gripper-control.hh:59
dynamicgraph::Vector factor
The multiplication.
Definition: gripper-control.hh:61
dynamicgraph::Vector & computeDesiredPosition(const dynamicgraph::Vector ¤tPos, const dynamicgraph::Vector &desiredPos, const dynamicgraph::Vector &torques, const dynamicgraph::Vector &torqueLimits, dynamicgraph::Vector &referencePos)
void computeIncrement(const dynamicgraph::Vector &torques, const dynamicgraph::Vector &torqueLimits, const dynamicgraph::Vector ¤tNormVel)
Computes the.
static dynamicgraph::Vector & selector(const dynamicgraph::Vector &fullsize, const Flags &selec, dynamicgraph::Vector &desPos)
select only some of the values of the vector fullsize, based on the Flags vector.
#define SOTGRIPPERCONTROL_EXPORT
Definition: gripper-control.hh:40
Definition: abstract-sot-external-interface.hh:17