9 namespace ExternalStimuli
15 std::string m_strTargetNodeID;
18 float *m_lpExternalCurrent;
20 std::string m_strMuscleID;
21 LinearHillMuscle *m_lpMuscle;
24 float m_fltPrevCurrent;
35 float m_fltRestPotential;
36 float m_fltConductance;
38 std::string m_strMuscleLengthData;
39 CStdArray<float> m_aryTime;
40 CStdArray<float> m_aryLength;
41 CStdArray<float> m_aryVelocity;
43 void LoadMuscleData(std::string strFilename);
51 virtual void RestPotential(
float fltV);
52 virtual float RestPotential();
54 virtual void Conductance(
float fltG);
55 virtual float Conductance();
57 virtual void TargetNodeID(std::string strID);
58 virtual std::string TargetNodeID();
59 virtual Node *TargetNode();
61 virtual void MuscleID(std::string strID);
62 virtual std::string MuscleID();
63 virtual LinearHillMuscle *Muscle();
65 virtual void MuscleLengthData(std::string strFilename);
66 virtual std::string MuscleLengthData();
68 virtual void Load(CStdXml &oXml);
70 virtual float *GetDataPointer(
const std::string &strDataType);
71 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
72 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
75 virtual std::string
Type() {
return "InverseMuscleCurrent";};
76 virtual void Initialize();
77 virtual void Activate();
78 virtual void ResetSimulation();
79 virtual void StepSimulation();
80 virtual void Deactivate();
Root namespace for the base simulation library for AnimatLab.
External stimulus base class.
Base class for body parts and neural network nodes.
virtual std::string Type()
returns the string type name of this object.