AnimatLab  2
Test
RbDynamixelUSB.h
1 // RbDynamixelUSB.h: interface for the RbDynamixelUSB class.
2 //
4 
5 #pragma once
6 
7 namespace RoboticsAnimatSim
8 {
9  namespace Robotics
10  {
11  namespace RobotIOControls
12  {
13  namespace DynamixelUSB
14  {
15 
17 {
18 protected:
19  int m_iPortNumber;
20  int m_iBaudRate;
21 
22  virtual void ProcessIO();
23  virtual bool OpenIO();
24  virtual void CloseIO();
25 
26 public:
27  CStdPtrArray<RbDynamixelMotorUpdateData> m_aryMotorData;
28 
30  virtual ~RbDynamixelUSB();
31 
32  virtual void PortNumber(int iPort);
33  virtual int PortNumber();
34 
35  virtual void BaudRate(int iRate);
36  virtual int BaudRate();
37 
38  virtual bool SendSynchronousMoveCommand();
39 
40  virtual void SetRegister(unsigned char iServo, unsigned char reg, unsigned char length, unsigned int value);
41  virtual int GetRegister(unsigned char iServo, unsigned char reg, unsigned char length);
42 
43  virtual std::string GetErrorCode();
44  virtual std::string GetCommStatus(int CommStatus);
45 
46 #pragma region DataAccesMethods
47 
48  virtual float *GetDataPointer(const std::string &strDataType);
49  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
50  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
51 
52 #pragma endregion
53 
54  virtual void Load(StdUtils::CStdXml &oXml);
55 };
56 
57  } //DynamixelUSB
58  } //RobotIOControls
59  } // Robotics
60 } //RoboticsAnimatSim
61 
A Robot IO controller base class.
A standard xml manipulation class.
Definition: StdXml.h:19
Classes for implementing the cm-labs vortex physics engine for AnimatLab.