43 virtual RobotInterface *AddRobotInterface(std::string strXml);
44 virtual void RemoveRobotInterface(std::string strID,
bool bThrowError =
true);
45 virtual RobotInterface *LoadRobotInterface(CStdXml &oXml);
53 virtual bool IsDead();
55 virtual RobotInterface *GetRobotInterface() {
return m_lpRobot;};
57 #pragma region SnapshotMethods
58 virtual long CalculateSnapshotByteSize();
59 virtual void SaveKeyFrameSnapshot(byte *aryBytes,
long &lIndex);
60 virtual void LoadKeyFrameSnapshot(byte *aryBytes,
long &lIndex);
63 #pragma region DataAccesMethods
64 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
65 virtual bool AddItem(
const std::string &strItemType,
const std::string &strXml,
bool bThrowError =
true,
bool bDoNotInit =
false);
66 virtual bool RemoveItem(
const std::string &strItemType,
const std::string &strID,
bool bThrowError =
true);
69 virtual void Initialize();
70 virtual void StepNeuralEngine();
71 virtual void StepPhysicsEngine();
72 virtual void ResetSimulation();
73 virtual void Kill(
bool bState =
true);
74 virtual void MinTimeStep(
float &fltMin);
76 virtual void Load(CStdXml &oXml);
NervousSystem * m_lpNervousSystem
The pointer to the nervous system.
Nervous system for an organism.
Root namespace for the base simulation library for AnimatLab.
RobotInterface * m_lpRobot
Pointer to a robot interface node to allow the organism to be hooked to a robot.
A "static" structure in the simulation.
bool m_bDead
Tells if the organism is dead or not.
A dynamic organism that is controlled by a neural network.