Skip to main content

python_groupbulkwrite

  • Description

    Base functions for simultaneous dynamixel control on writing to different length data on different control table address.

  • Members

    None

  • Methods

MethodsDescription
groupBulkWriteInitializes members of packet data pointer struct
addParamAdds parameter storage for read
removeParamRemoves parameter on the storage
changeParamChanges parameter on the storage
clearParamClears parameter storage
txPacketTransmits packet to the number of DYNAMIXEL's
  • Enumerator

    None

Method References

GroupBulkWrite
  • Syntax
GroupBulkWrite(port, ph)
  • Parameters
ParametersDescription
portPortHandler instance
phPacketHandler 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
ParametersDescription
dxl_idDYNAMIXEL ID
start_addressStart address
data_lengthData length
dataData for write
  • Detailed Description

    This function pushes dxl_id into the DYNAMIXEL ID list, and initializes parameter storage by setting start_address and param_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
ParametersDescription
dxl_idDYNAMIXEL 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
ParametersDescription
dxl_idDYNAMIXEL ID
start_addressStart address
data_lengthData length
datadata 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.