[Orxonox-commit 3325] r8014 - in code/branches/tutorial: data/levels src/orxonox/controllers src/orxonox/worldentities
dafrick at orxonox.net
dafrick at orxonox.net
Thu Mar 3 16:26:30 CET 2011
Author: dafrick
Date: 2011-03-03 16:26:30 +0100 (Thu, 03 Mar 2011)
New Revision: 8014
Modified:
code/branches/tutorial/data/levels/tutorial.oxw
code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc
code/branches/tutorial/src/orxonox/controllers/CMakeLists.txt
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h
code/branches/tutorial/src/orxonox/worldentities/CMakeLists.txt
Log:
Removing all the solution stuff.
Modified: code/branches/tutorial/data/levels/tutorial.oxw
===================================================================
--- code/branches/tutorial/data/levels/tutorial.oxw 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/data/levels/tutorial.oxw 2011-03-03 15:26:30 UTC (rev 8014)
@@ -33,14 +33,6 @@
<?lua end ?>
<!-- TODO: Insert drone here. -->
- <AutonomousDrone primaryThrust=100 auxilaryThrust=30 rotationThrust=25 collisionType="dynamic" mass = 50 linearDamping = 0.9 angularDamping = 0.7>
- <attached>
- <Model scale="10" mesh="drone.mesh"/>
- </attached>
- <collisionShapes>
- <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
- </collisionShapes>
- </AutonomousDrone>
</Scene>
</Level>
Modified: code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc
===================================================================
--- code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/src/orxonox/controllers/AutonomousDroneController.cc 2011-03-03 15:26:30 UTC (rev 8014)
@@ -34,8 +34,6 @@
namespace orxonox
{
- CreateFactory(AutonomousDroneController);
-
/**
@brief
Constructor.
@@ -47,7 +45,6 @@
//TODO: Place your code here:
// Make sure to register the object in the factory.
// Do some kind of initialisation.
- RegisterObject(AutonomousDroneController);
// This checks that our creator really is a drone
// and saves the pointer to the drone for the controlling commands
@@ -80,7 +77,6 @@
// - moveFrontBack, moveRightLeft, moveUpDown
// - rotatePitch, rotateYaw, rotateRoll
// Apply the to myDrone (e.g. myDrone->rotateYaw(..) )
- myDrone->rotateYaw(dt);
}
}
Modified: code/branches/tutorial/src/orxonox/controllers/CMakeLists.txt
===================================================================
--- code/branches/tutorial/src/orxonox/controllers/CMakeLists.txt 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/src/orxonox/controllers/CMakeLists.txt 2011-03-03 15:26:30 UTC (rev 8014)
@@ -1,5 +1,4 @@
ADD_SOURCE_FILES(ORXONOX_SRC_FILES
- AutonomousDroneController.cc
Controller.cc
HumanController.cc
NewHumanController.cc
Modified: code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.cc 2011-03-03 15:26:30 UTC (rev 8014)
@@ -35,7 +35,6 @@
{
//TODO: Put your code in here:
// Create the factory for the drone.
- CreateFactory(AutonomousDrone);
/**
@brief
@@ -47,7 +46,6 @@
{
//TODO: Put your code in here:
// Register the drone class to the core.
- RegisterObject(AutonomousDrone);
this->myController_ = NULL;
@@ -88,8 +86,6 @@
// Make sure that you also create the get- and set-functions. As you can see, the get- and set-functions for the variable primaryThrust_ has already been specified, so you can get your inspiration from there.
// Variables can be added by the following command
// XMLPortParam(Classname, "xml-attribute-name (i.e. variablename)", setFunction, getFunction, xmlelement, mode);
- XMLPortParam(AutonomousDrone, "auxiliaryThrust", setAuxiliaryThrust, getAuxiliaryThrust, xmlelement, mode);
- XMLPortParam(AutonomousDrone, "rotationThrust", setRotationThrust, getRotationThrust, xmlelement, mode);
}
Modified: code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/src/orxonox/worldentities/AutonomousDrone.h 2011-03-03 15:26:30 UTC (rev 8014)
@@ -108,18 +108,6 @@
{ this->primaryThrust_ = thrust; }
//TODO: Place your set-functions here.
// - hint: auxiliary thrust, rotation thrust.
- /**
- @brief Sets the auxiliary thrust to the input amount.
- @param thrust The amount of thrust.
- */
- inline void setAuxiliaryThrust( float thrust )
- { this->auxiliaryThrust_ = thrust; }
- /**
- @brief Sets the rotation thrust to the input amount.
- @param thrust The amount of thrust.
- */
- inline void setRotationThrust( float thrust )
- { this->rotationThrust_ = thrust; }
/**
@brief Gets the primary thrust to the input amount.
@@ -128,18 +116,6 @@
inline float getPrimaryThrust()
{ return this->primaryThrust_; }
//TODO: Place your get-functions here.
- /**
- @brief Gets the auxiliary thrust to the input amount.
- @return The amount of thrust.
- */
- inline float getAuxiliaryThrust()
- { return this->auxiliaryThrust_; }
- /**
- @brief Gets the rotation thrust to the input amount.
- @return The amount of thrust.
- */
- inline float getRotationThrust()
- { return this->auxiliaryThrust_; }
private:
AutonomousDroneController *myController_; //!< The controller of the AutonomousDrone.
Modified: code/branches/tutorial/src/orxonox/worldentities/CMakeLists.txt
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/CMakeLists.txt 2011-03-03 15:24:37 UTC (rev 8013)
+++ code/branches/tutorial/src/orxonox/worldentities/CMakeLists.txt 2011-03-03 15:26:30 UTC (rev 8014)
@@ -1,5 +1,4 @@
ADD_SOURCE_FILES(ORXONOX_SRC_FILES
- AutonomousDrone.cc
WorldEntity.cc
StaticEntity.cc
MovableEntity.cc
More information about the Orxonox-commit
mailing list