Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 15 and Version 16 of pps/tutorial


Ignore:
Timestamp:
Sep 13, 2010, 3:19:06 PM (14 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • pps/tutorial

    v15 v16  
    4141{{{
    4242#!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. ;)
    4444}}}
    4545We 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}''.
     
    7777== The XML Part ==
    7878Now 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:
    8181{{{
    8282<ClassX variable1="2" string1="blabla" coord1="1,0,0">
     
    9999}}}
    100100 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.)
    102102{{{
    103103mass = 50
     
    118118== Commit your code to the repository ==
    119119We 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:
    121121{{{
    122122~/orxonox/tutorial$ svn up
    123123}}}
    124  2. In order to avoid conflicts copy your file (''AutonomousDroneController.cc'')
     124 2. In order to avoid conflicts copy your file (''AutonomousDroneController.cc''):
    125125{{{
    126126~/orxonox/tutorial$ svn cp src/orxonox/objects/controllers/AutonomousDroneController.cc src/orxonox/objects/controllers/AutonomousDroneController_myUserName.cc
     
    130130~/orxonox/tutorial$ svn revert src/orxonox/objects/controllers/AutonomousDroneController.cc
    131131}}}
    132  4. Now commit.
     132 4. Now commit:
    133133{{{
    134134~/orxonox/tutorial$ svn ci -m "This is my version of the AutonomousDrone steering function" src/orxonox/controllers/AutonomousDroneController_myUserName.cc