Python GroupBulkWrite
-
Description
Base functions for simultaneous dynamixel control on writing to different length data on different control table address.
-
Members
None
-
Methods
Methods | Description |
---|---|
groupBulkWrite | Initializes members of packet data pointer struct |
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
GroupBulkWrite
- Syntax
GroupBulkWrite(port, ph)
- Parameters
Parameters | Description |
---|---|
port | PortHandler instance |
ph | PacketHandler instance |
-
Detailed Description
This function initializes the parameters for packet construction. The function resizes groupData struct and initialzes struct members.
addParam
- Syntax
addParam(dxl_id, start_address, data_length, data)
- Parameters
Parameters | Description |
---|---|
dxl_id | DYNAMIXEL ID |
start_address | Start address |
data_length | Data length |
data | Data for write |
-
Detailed Description
This function pushes
dxl_id
into the DYNAMIXEL ID list, and initializes parameter storage by settingstart_address
andparam_length
. The function deals with 1, 2 or 4 byte data only. The function returns false when the length of input data exceeds parameter or wrong length, or returns true.
removeParam
- Syntax
removeParam(dxl_id)
- Parameters
Parameters | Description |
---|---|
dxl_id | DYNAMIXEL ID |
-
Detailed Description
This function removes
dxl_id
and its data for write in the DYNAMIXEL ID list. The function returns false when no data is in the parameter storage, or returns true.
changeParam
- Syntax
changeParam(dxl_id, start_address, data_length, data)
- Parameters
Parameters | Description |
---|---|
dxl_id | DYNAMIXEL ID |
start_address | Start address |
data_length | Data length |
data | data for write |
-
Detailed Description
This function pushes new
data_length
bytes data into parameter storage of same id. The function returns false when the target ID doesn’t exists in the ID list, or returns true.
clearParam
- Syntax
clearParam()
- Parameters
None
-
Detailed Description
This function clears DYNAMIXEL ID list.
txPacket
- Syntax
txPacket()
- Parameters
None
-
Detailed Description
This function transmits the packet by using
bulkWriteTxOnly
function. The communication result and the hardware error are available when the function is terminated.