-
Notifications
You must be signed in to change notification settings - Fork 15
CreateSteerSuiteAIAlgorithm
Neo-X edited this page Sep 18, 2015
·
1 revision
- Copy the SimpleAI code
- create a new folder for your new algorithm.
- The easiest way to get started is to copy the SimpleAI code which is more of a shell for a steering algorithm to a new directory
- Two parts to the code integration
- The SteerSuiteAgent
- This is the real code you are adding to SteerSuite that will implement a new method for navigation.
- The SteerSuiteAgentModule
- This is needed by the SteerSuite software and is used to control the creation, deletion and any other initialiation or global processing updates that need to be done before or after a frame.
- Adding logging to the Agent
- Logging is important because it is needed by other tools in SteerSuite.
- Adding the code to the SteerSuiteAgentModule
- This include updating any of the code from the SimpleAI algorithm to perform an pre/post-processing steps needed for you algorithm
- Adding profilers to agent
- There are a number of profilers already created that can be used rather easily. The most basic one that is used is the one that covers the total computation done by each individule agent
Util::AutomaticFunctionProfiler profileThisFunction( &RVO2DGlobals::gPhaseProfilers->;aiProfiler );
- SteerStats database integration
- Creating a config file
- Creating a parameter file
- Stuff
- Notes:
- Always put the grdidatabase update right after the new location of the agent is calculated.