29 #ifndef _AutonomousDrone_H__ 30 #define _AutonomousDrone_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__ float getAuxiliaryThrust()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:164
void rotateRoll(float value)
Rotates the Drone around the z-axis by the specifed amount.
Definition: AutonomousDrone.h:102
float mass_
Definition: AutonomousDrone.h:205
float getMass()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:178
Drone, that is made to move upon a specified pattern.
Definition: AutonomousDrone.h:48
AutonomousDroneController * myController_
The controller of the AutonomousDrone.
Definition: AutonomousDrone.h:198
float getAngularDamping()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:192
void setMass(float mass)
Sets the rotation thrust to the input amount.
Definition: AutonomousDrone.h:133
float getLinearDamping()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:185
float getRotationThrust()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:171
Declaration of the XMLPort helper classes and macros.
float angularDamping_
Definition: AutonomousDrone.h:207
xmlelement
Definition: Super.h:519
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Shared library macros, enums, constants and forward declarations for the orxonox library ...
void setPrimaryThrust(float thrust)
Sets the primary thrust to the input amount.
Definition: AutonomousDrone.h:109
void moveFrontBack(float value)
Moves the Drone in the Front/Back-direction by the specifed amount.
Definition: AutonomousDrone.h:71
btVector3 localAngularAcceleration_
The linear angular acceleration that is used to move the AutonomousDrone the next tick...
Definition: AutonomousDrone.h:201
void setAuxiliaryThrust(float thrust)
Sets the auxiliary thrust to the input amount.
Definition: AutonomousDrone.h:119
#define _OrxonoxExport
Definition: OrxonoxPrereqs.h:60
float auxiliaryThrust_
The amount of auxiliary thrust. Used for all other movements (except for rotations).
Definition: AutonomousDrone.h:203
float primaryThrust_
The amount of primary thrust. This is just used, when moving forward.
Definition: AutonomousDrone.h:202
float rotationThrust_
The amount of rotation thrust. Used for rotations only.s.
Definition: AutonomousDrone.h:204
void moveRightLeft(float value)
Moves the Drone in the Right/Left-direction by the specifed amount.
Definition: AutonomousDrone.h:77
btVector3 localLinearAcceleration_
The linear acceleration that is used to move the AutonomousDrone the next tick.
Definition: AutonomousDrone.h:200
void rotatePitch(float value)
Rotates the Drone around the x-axis by the specifed amount.
Definition: AutonomousDrone.h:96
void setRotationThrust(float thrust)
Sets the rotation thrust to the input amount.
Definition: AutonomousDrone.h:126
void rotateYaw(float value)
Rotates the Drone around the y-axis by the specifed amount.
Definition: AutonomousDrone.h:90
float linearDamping_
Definition: AutonomousDrone.h:206
The ControllableEntity is derived from the orxonox::MobileEntity.
Definition: ControllableEntity.h:48
Controller for the AutonomousDrone of the PPS tutorial.
Definition: AutonomousDroneController.h:45
void moveUpDown(float value)
Moves the Drone in the Up/Down-direction by the specifed amount.
Definition: AutonomousDrone.h:83
void setLinearDamping(float damping)
Sets the rotation thrust to the input amount.
Definition: AutonomousDrone.h:140
void setAngularDamping(float damping)
Sets the rotation thrust to the input amount.
Definition: AutonomousDrone.h:147
float getPrimaryThrust()
Gets the primary thrust to the input amount.
Definition: AutonomousDrone.h:156