7 #include "RbMovableItem.h"
10 #include "RbRigidBody.h"
12 #include "RbLANWirelessInterface.h"
15 #define DEFAULT_PORTNUM 3 // COM3
16 #define DEFAULT_BAUDNUM 1 // 1Mbps
23 namespace RobotInterfaces
30 RbLANWirelessInterface::RbLANWirelessInterface()
34 RbLANWirelessInterface::~RbLANWirelessInterface()
40 {
Std_TraceMsg(0,
"Caught Error in desctructor of RbLANWirelessInterface\r\n",
"", -1,
false,
true);}
43 #pragma region DataAccesMethods
52 THROW_TEXT_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Robot Interface ID: " + STR(
m_strName) +
" DataType: " + strDataType);
61 if(RobotInterface::SetData(strDataType, strValue,
false))
77 THROW_PARAM_ERROR(Al_Err_lInvalidDataType, Al_Err_strInvalidDataType,
"Data Type", strDataType);
82 void RbLANWirelessInterface::QueryProperties(CStdPtrArray<TypeProperty> &aryProperties)
84 RobotInterface::QueryProperties(aryProperties);
98 RobotInterface::Initialize();
103 RobotInterface::StepSimulation();
108 RobotInterface::Load(oXml);
virtual void Load(StdUtils::CStdXml &oXml)
Loads the item using an XML data packet.
virtual void StepSimulation()
Step the simulation for this object.
virtual void Initialize()
Initializes this object.
Declares the vortex structure class.
virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError=true)
Set a variable based on a string data type name.
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.
std::string Std_CheckString(std::string strVal)
Converts a string to upper case and trims it.
virtual float * GetDataPointer(const std::string &strDataType)
Returns a float pointer to a data item of interest in this object.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
std::string m_strName
The name for this object.