Changes between Version 52 and Version 53 of pps/tutorial
- Timestamp:
- Sep 30, 2013, 10:51:38 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pps/tutorial
v52 v53 88 88 89 89 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. 91 91 {{{ 92 CreateFactory(ClassX);92 RegisterClass(ClassX); 93 93 }}} 94 94 Note: You have to replace ''ClassX'' with the appropriate class. … … 108 108 109 109 If 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. 111 111 * Have you created 2 set-functions and 2 get-functions for the two variables ''auxiliaryThrust_'' and ''rotationThrust_''? 112 112