41 :
Operator(
"LimitOrientationOperator",
"1.0"),
42 robotAxis(robotAxis), globalAxis(globalAxis),
131 double minDist = 0,
double damp = 0,
bool confPos =
false)
133 :
Operator(
"PullToPointOperator",
"1.0"),
134 point(point), force(force), showPoint(showPoint),
dim(
dim),
137 addParameter(
"force", &this->force, 0, 100,
"pull to point force");
141 addParameterDef(
"point_x", &
px, point.x(), -100, 100,
"pull to point x position");
143 addParameterDef(
"point_y", &
py, point.y(), -100, 100,
"pull to point y position");
145 addParameterDef(
"point_z", &
pz, point.z(), -100, 100,
"pull to point z position");
176 :
Operator(
"BoxRingOperator",
"1.0"),
177 center(center), size(size), offset(offset), force(force),
sphere(
sphere)
180 "force of the boxring to keep robots inside");
182 "size of boxring/spherical arena (in radius or half-length)");
virtual ManipType observe(OdeAgent *agent, GlobalData &global, ManipDescr &descr)
called every simulation step
Definition: operators.cpp:59
double force
initial force
Definition: operators.h:70
double minDist
Definition: operators.h:158
double visualHeight
height above the robot main object for the visual sphere
Definition: operators.h:71
virtual void notifyOnChange(const paramkey &key)
Is called when a parameter was changes via setParam().
Definition: operators.cpp:134
ManipType
type of manipulation of the robot (for display) and or operation RemoveOperator means that the operat...
Definition: operator.h:47
Definition: operators.h:119
bool active
Definition: operators.h:56
An Operator for lifting up a robot from time to time.
Definition: operators.h:77
Axis globalAxis
Definition: operators.h:51
double pz
Definition: operators.h:160
charArray paramkey
Definition: avrtypes.h:36
double minAngle
Definition: operators.h:54
Definition: operators.h:60
double py
Definition: operators.h:160
double force
Definition: operators.h:155
double maxAngle
Definition: operators.h:52
double interval
interval between restart of operation ( > duration)
Definition: operators.h:67
double height
height to which it is lifted
Definition: operators.h:69
Definition: operators.h:120
Definition: operators.h:119
virtual ManipType observe(OdeAgent *agent, GlobalData &global, ManipDescr &descr)
called every simulation step
Definition: operators.cpp:145
virtual ManipType observe(OdeAgent *agent, GlobalData &global, ManipDescr &descr)
called every simulation step
Definition: operators.cpp:104
double currentforce
Definition: operators.h:109
bool propControl
if true then applied force is scaled with distance
Definition: operators.h:63
An Operator for keeping robots within a sphere / box.
Definition: operators.h:166
bool showPoint
Definition: operators.h:156
Definition: operators.h:119
Axis robotAxis
Definition: operators.h:50
static LiftUpOperatorConf getDefaultConf()
Definition: operators.h:91
double damp
Definition: operators.h:159
virtual ManipType observe(OdeAgent *agent, GlobalData &global, ManipDescr &descr)
called every simulation step
Definition: operators.cpp:30
Data structure holding all essential global information.
Definition: globaldata.h:57
Specialised agent for ode robots.
Definition: odeagent.h:62
Pos point
Definition: operators.h:154
double size
Definition: operators.h:190
virtual void addParameter(const paramkey &key, paramval *val, paramval minBound, paramval maxBound, const paramdescr &descr=paramdescr())
This is the new style for adding configurable parameters.
Definition: configurable.h:172
LiftUpOperatorConf conf
Definition: operators.h:107
PullToPointOperator(const Pos &point, double force, bool showPoint, Dimensions dim=XYZ, double minDist=0, double damp=0, bool confPos=false)
Definition: operators.h:129
Definition: operator.h:42
virtual void addParameterDef(const paramkey &key, paramval *val, paramval def, paramval minBound, paramval maxBound, const paramdescr &descr=paramdescr())
This function is only provided for convenience.
Definition: configurable.h:220
An Operator for pulling the main primitive of a robot towards a point.
Definition: operators.h:116
bool sphere
Definition: operators.h:193
double offset
Definition: operators.h:191
double px
Definition: operators.h:160
BoxRingOperator(const Pos ¢er, double size, double offset, double force, bool sphere=false)
a box ring (cube with edges 2*size or sphere with radius size)
Definition: operators.h:174
bool intervalMode
if true then the operator works only in intervals
Definition: operators.h:65
double force
Definition: operators.h:53
LimitOrientationOperator(const Axis &robotAxis, const Axis &globalAxis, double maxAngle, double force, double minAngle=-1)
Definition: operators.h:39
Dimensions
defines which dimensions should be effected
Definition: operators.h:119
bool increaseForce
increase force (until robot has reached height)
Definition: operators.h:62
Definition: operators.h:119
An Operator for limiting the orientation of the main primitive of a robot.
Definition: operators.h:37
double currentforce
Definition: operators.h:55
Dimensions dim
Definition: operators.h:157
double duration
duration of operation in interval-mode
Definition: operators.h:66
bool resetForceIfLifted
force is reseted as soon as robot has reached height
Definition: operators.h:61
Definition: operators.h:119
Pos center
Definition: operators.h:189
LiftUpOperator(const LiftUpOperatorConf conf=getDefaultConf())
Definition: operators.h:79
Definition: operators.h:119
int c
Definition: hexapod.cpp:56
double force
Definition: operators.h:192