7 #include "HiC884Controller.h"
8 #include "HiM110Actuator.h"
19 HiM110Actuator::HiM110Actuator()
23 HiM110Actuator::~HiM110Actuator()
29 {
Std_TraceMsg(0,
"Caught Error in desctructor of HiM110Actuator\r\n",
"", -1,
false,
true);}
32 #pragma region DataAccesMethods
41 return RobotPartInterface::GetDataPointer(strDataType);
48 if(RobotPartInterface::SetData(strDataType, strValue,
false))
51 if(strType ==
"SERVOID")
59 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
64 void HiM110Actuator::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
66 RobotPartInterface::QueryProperties(aryProperties);
68 aryProperties.Add(
new TypeProperty(
"ReadParamTime", AnimatPropertyType::Float, AnimatPropertyDirection::Get));
70 aryProperties.Add(
new TypeProperty(
"ServoID", AnimatPropertyType::Integer, AnimatPropertyDirection::Set));
78 RobotPartInterface::Initialize();
101 RobotPartInterface::StepSimulation();
114 RobotPartInterface::Load(oXml);
virtual void StepIO(int iPartIdx)
This method is used to send/recieve the actual IO. This will often be in a seperate thread than the S...
virtual bool IntoElem()
Goes into the next element where the cursor is located.
virtual void ResetSimulation()
Resets the simulation back to time 0.
virtual void Initialize()
Initializes this object.
A standard xml manipulation class.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
virtual void ResetSimulation()
Resets the simulation back to time 0.
virtual void SetupIO()
This method is called after all connections to whatever control board have been made. It is meant to be used to setup connection information specific to this part. For example, We connect to a Firmata microcontroller like an Arduino, and then do a setup that could take some time. We should not attempt to setup any of the pins until after the board itself has been setup. After that we need to loop through and setup all the parts. That is what this method is for.
virtual bool OutOfElem()
Goes out of the element where the cursor is located.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
virtual void Load(StdUtils::CStdXml &oXml)
Loads the item using an XML data packet.
virtual void ShutdownIO()
This method is called just before the IO thread is closed down. It gives the IO objects a chance to d...
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
virtual void StepSimulation()
Step the simulation for this object.