Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 52 and Version 53 of pps/tutorial


Ignore:
Timestamp:
Sep 30, 2013, 10:51:38 AM (11 years ago)
Author:
smerkli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • pps/tutorial

    v52 v53  
    8888
    8989 1. Open the file ''AutonomousDrone.cc'' and have a look at the code (the file can be found in ''src/orxonox/worldentities/'').
    90  2. In order to be able to create an AutonomousDrone object from the XML file just by using the class name, you need to add a call of ''CreateFactory(Classname)'' somewhere inside the ''.cc'' (global, inside the namespace). This is best done just above the constructor.
     90 2. In order to be able to create an AutonomousDrone object from the XML file just by using the class name, you need to add a call of ''RegisterClass(Classname)'' somewhere inside the ''.cc'' (global, inside the namespace). This is best done just above the constructor.
    9191{{{
    92 CreateFactory(ClassX);
     92RegisterClass(ClassX);
    9393}}}
    9494Note: You have to replace ''ClassX'' with the appropriate class.
     
    108108
    109109If you have been having '''problems''', consider the following suggestions, that might help you resolve them.
    110  * Is the classname that you specified for ''CreateFactory(Classname)'' and ''RegisterObject(Classname)'' correct? If it is either ''Classname'', ''ClassX'' or ''ClassXY'', then it is incorrect, try to think about what it should be. If you can't find the solution ask one of the assistants.
     110 * Is the classname that you specified for ''RegisterClass(Classname)'' and ''RegisterObject(Classname)'' correct? If it is either ''Classname'', ''ClassX'' or ''ClassXY'', then it is incorrect, try to think about what it should be. If you can't find the solution ask one of the assistants.
    111111 * Have you created 2 set-functions and 2 get-functions for the two variables ''auxiliaryThrust_'' and ''rotationThrust_''?
    112112