CPP GroupSyncWrite
-
Description
Base class for simultaneous dynamixel control on writing.
-
Members
None
-
Methods
Methods | Description |
---|---|
GroupSyncWrite | Initializes groupSyncWrite instance |
~GroupSyncWrite | Clears parameter storage |
getPortHandler | Returns PortHandler instance |
getPacketHandler | Returns PacketHandler instance |
addParam | Adds parameter storage for read |
removeParam | Removes parameter on the storage |
changeParam | Changes parameter on the storage |
clearParam | Clears parameter storage |
txPacket | Transmits packet to the number of DYNAMIXEL’s |
-
Enumerator
None
Method References
addParam
- Syntax
bool addParam(UINT8_T id, UINT8_T *data)
- Parameters
Parameters | Description |
---|---|
id | DYNAMIXEL ID |
data | data for write |
-
Detailed Description
This function pushes id to the DYNAMIXEL ID list, and initializes the parameter storage by adding data. It returns false when the target ID exists already in the ID list, or returns true.
removeParam
- Syntax
void removeParam(UINT8_T id)
- Parameters
Parameters | Description |
---|---|
id | DYNAMIXEL ID |
-
Detailed Description
This function removes target id in the DYNAMIXEL ID list. It returns false when the target ID does not exists in the ID list, or returns true.
changeParam
- Syntax
bool changeParam(UINT8_T id, UINT8_T *data)
- Parameters
Parameters | Description |
---|---|
id | DYNAMIXEL ID |
data | data for write |
-
Detailed Description
This function pushes new data to the parameter storage of same ID. It returns false when the target ID doesn’t exists in the ID list, or returns true.
clearParam
- Syntax
void clearParam()
-
Parameters
None
-
Detailed Description
This function clears the DYNAMIXEL ID list.
txPacket
- Syntax
int txPacket()
-
Parameters
None
-
Detailed Description
This function transmits the packet by using
syncWriteTxOnly()
function. It returnsCOMM_NOT_AVAILABLE
when there is no item on the DYNAMIXEL ID list, or returns communication result.