9 #include "RobotPartInterface.h"
50 virtual void UpdateData();
58 #pragma region AccessorMutators
63 virtual CStdArray<RobotPartInterface *> *GetRobotPartInterfaces();
64 virtual void AddRobotPartInterface(RobotPartInterface *lpPart);
65 virtual void RemoveRobotPartInterface(RobotPartInterface *lpPart);
66 virtual int FindRobotPartListIndex(std::string strID,
bool bThrowError =
true);
68 virtual bool SynchWithRobot();
69 virtual void SynchWithRobot(
bool bVal);
71 virtual float SynchUpdateInterval();
72 virtual void SynchUpdateInterval(
float fltVal);
74 virtual void Resize();
78 #pragma region DataAccesMethods
80 virtual void SetSystemPointers(
Simulator *lpSim,
Structure *lpStructure, NeuralModule *lpModule,
Node *lpNode,
bool bVerify);
81 virtual float *GetDataPointer(
const std::string &strDataType);
82 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
83 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
84 virtual void UpdateExtraData();
85 virtual bool NeedsRobotSynch();
89 virtual void Initialize();
90 virtual void ResetSimulation();
91 virtual void TimeStepModified();
92 virtual void Selected(
bool bValue,
bool bSelectMultiple);
93 virtual void AddBodyClicked(
float fltPosX,
float fltPosY,
float fltPosZ,
float fltNormX,
float fltNormY,
float fltNormZ);
94 virtual void VisualSelectionModeChanged(
int iNewMode);
95 virtual void UpdatePhysicsPosFromGraphics();
96 virtual void WakeDynamics();
98 virtual void Load(CStdXml &oXml);
IPhysicsBody * m_lpPhysicsBody
Simulates the entire environment.
Root namespace for the base simulation library for AnimatLab.
float m_fltSynchUpdateInterval
This is how often we need to update this particular adapter.
int m_iSynchCount
Keeps track of the last time we did a synch for the robot.
CStdArray< RobotPartInterface * > m_aryRobotParts
Array of pointers to robot part interfaces connected to this body part.
Baes class for all items that can be moved/roated within the environment.
int m_iSynchUpdateInterval
The number of ticks between each call to update for this adapter till the next update time...
A "static" structure in the simulation.
Base class for all body parts and joints.
Base class for body parts and neural network nodes.