29 #ifndef _ScriptableControllerDrone_H__ 30 #define _ScriptableControllerDrone_H__ 55 virtual void tick(
float dt);
57 virtual void moveFrontBack(
const Vector2& value);
58 virtual void moveRightLeft(
const Vector2& value);
59 virtual void moveUpDown(
const Vector2& value);
61 virtual void rotateYaw(
const Vector2& value);
62 virtual void rotatePitch(
const Vector2& value);
63 virtual void rotateRoll(
const Vector2& value);
72 { this->moveFrontBack(Vector2(value, 0)); }
78 { this->moveRightLeft(Vector2(value, 0)); }
84 { this->moveUpDown(Vector2(value, 0)); }
91 { this->rotateYaw(Vector2(value, 0)); }
97 { this->rotatePitch(Vector2(value, 0)); }
103 { this->rotateRoll(Vector2(value, 0)); }
110 { this->primaryThrust_ = thrust; }
120 { this->auxiliaryThrust_ = thrust; }
127 { this->rotationThrust_ = thrust; }
134 { this->mass_ = mass; }
141 { this->linearDamping_ = damping; }
148 { this->angularDamping_ = damping; }
157 {
return this->primaryThrust_; }
165 {
return this->auxiliaryThrust_; }
172 {
return this->rotationThrust_; }
179 {
return this->mass_; }
186 {
return this->linearDamping_; }
193 {
return this->angularDamping_; }
212 #endif // _AutonomousDrone_H__ Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
float getAngularDamping()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:192
btVector3 localLinearAcceleration_
The linear acceleration that is used to move the AutonomousDrone the next tick.
Definition: ScriptableControllerDrone.h:200
void setLinearDamping(float damping)
Sets the rotation thrust to the input amount.
Definition: ScriptableControllerDrone.h:140
void setMass(float mass)
Sets the rotation thrust to the input amount.
Definition: ScriptableControllerDrone.h:133
float mass_
Definition: ScriptableControllerDrone.h:205
float getRotationThrust()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:171
Declaration of the XMLPort helper classes and macros.
float getLinearDamping()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:185
void rotateYaw(float value)
Rotates the Drone around the y-axis by the specifed amount.
Definition: ScriptableControllerDrone.h:90
float getAuxiliaryThrust()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:164
float primaryThrust_
The amount of primary thrust. This is just used, when moving forward.
Definition: ScriptableControllerDrone.h:202
xmlelement
Definition: Super.h:519
float auxiliaryThrust_
The amount of auxiliary thrust. Used for all other movements (except for rotations).
Definition: ScriptableControllerDrone.h:203
void rotateRoll(float value)
Rotates the Drone around the z-axis by the specifed amount.
Definition: ScriptableControllerDrone.h:102
float angularDamping_
Definition: ScriptableControllerDrone.h:207
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
float getPrimaryThrust()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:156
Shared library macros, enums, constants and forward declarations for the orxonox library ...
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
float linearDamping_
Definition: ScriptableControllerDrone.h:206
void setPrimaryThrust(float thrust)
Sets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:109
float getMass()
Gets the primary thrust to the input amount.
Definition: ScriptableControllerDrone.h:178
void setAuxiliaryThrust(float thrust)
Sets the auxiliary thrust to the input amount.
Definition: ScriptableControllerDrone.h:119
void setRotationThrust(float thrust)
Sets the rotation thrust to the input amount.
Definition: ScriptableControllerDrone.h:126
btVector3 localAngularAcceleration_
The linear angular acceleration that is used to move the AutonomousDrone the next tick...
Definition: ScriptableControllerDrone.h:201
Drone, that is made to move upon a specified pattern.
Definition: ScriptableControllerDrone.h:48
float rotationThrust_
The amount of rotation thrust. Used for rotations only.s.
Definition: ScriptableControllerDrone.h:204
void moveRightLeft(float value)
Moves the Drone in the Right/Left-direction by the specifed amount.
Definition: ScriptableControllerDrone.h:77
void setAngularDamping(float damping)
Sets the rotation thrust to the input amount.
Definition: ScriptableControllerDrone.h:147
void rotatePitch(float value)
Rotates the Drone around the x-axis by the specifed amount.
Definition: ScriptableControllerDrone.h:96
void moveUpDown(float value)
Moves the Drone in the Up/Down-direction by the specifed amount.
Definition: ScriptableControllerDrone.h:83
void moveFrontBack(float value)
Moves the Drone in the Front/Back-direction by the specifed amount.
Definition: ScriptableControllerDrone.h:71