Changes between Version 15 and Version 16 of pps/tutorial
- Timestamp:
- Sep 13, 2010, 3:19:06 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pps/tutorial
v15 v16 41 41 {{{ 42 42 #!html 43 <p style="text-align: left; color: red">Note: Do not just copy & paste! Most commands / codelines need to be edited.</p> Otherwise you'll get tons of compiler errors ;)43 <p style="text-align: left; color: red">Note: Do not just copy & paste! Most commands / codelines need to be edited.</p> Otherwise you'll get tons of compiler errors. ;) 44 44 }}} 45 45 We created for you the skeleton of an autonomous drone. You can find the code in the files ''src/orxonox/worldentities/AutonomousDrone.{cc|h}'' and ''src/orxonox/controllers/AutonomousDroneController.{cc|h}''. … … 77 77 == The XML Part == 78 78 Now that you finished the classes you can recompile the project. Afterwards open the level file: 79 1. Open ''tutorial/data/levels/tutorial.oxw'' 80 2. We want to add a drone to the level now, so put in an entry for it (below the comment that tells you to do so). look at this example:79 1. Open ''tutorial/data/levels/tutorial.oxw''. 80 2. We want to add a drone to the level now, so put in an entry for it (below the comment that tells you to do so). Look at this example: 81 81 {{{ 82 82 <ClassX variable1="2" string1="blabla" coord1="1,0,0"> … … 99 99 }}} 100 100 this will tell the physics engine what dimensions our drone has (in this case its just a cube). 101 6. Now we define the mass and two damping parameters of our drone. Append definitions for the following variables as attributes to your drone (as in 3.)101 6. Now we define the mass and two damping parameters of our drone. Append definitions for the following variables as attributes to your drone. (as in 3.) 102 102 {{{ 103 103 mass = 50 … … 118 118 == Commit your code to the repository == 119 119 We may want to use your steering function later on, so commit it now: 120 1. Make sure you have a recent version of the branch 120 1. Make sure you have a recent version of the branch: 121 121 {{{ 122 122 ~/orxonox/tutorial$ svn up 123 123 }}} 124 2. In order to avoid conflicts copy your file (''AutonomousDroneController.cc'') 124 2. In order to avoid conflicts copy your file (''AutonomousDroneController.cc''): 125 125 {{{ 126 126 ~/orxonox/tutorial$ svn cp src/orxonox/objects/controllers/AutonomousDroneController.cc src/orxonox/objects/controllers/AutonomousDroneController_myUserName.cc … … 130 130 ~/orxonox/tutorial$ svn revert src/orxonox/objects/controllers/AutonomousDroneController.cc 131 131 }}} 132 4. Now commit .132 4. Now commit: 133 133 {{{ 134 134 ~/orxonox/tutorial$ svn ci -m "This is my version of the AutonomousDrone steering function" src/orxonox/controllers/AutonomousDroneController_myUserName.cc