Skip to main content

python_groupbulkread

  • Description

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

  • Members

    None

  • Methods

MethodsDescription
GroupBulkReadInitializes members of packet data pointer struct
addParamAdds parameter storage for read
removeParamRemoves parameter on the storage
clearParamClears parameter storage
txPacketTransmits packet to the number of DYNAMIXEL's
rxPacketreceives packet from the number of DYNAMIXEL's
txRxPacketTransmits and receives packet on the number of DYNAMIXEL's
isAvailableChecks whether there is available data in the data storage
getDataGets data from received packet
  • Enumerator

    None

Method References

GroupBulkRead
  • Syntax
GroupBulkRead(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)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
start_addressStart address
data_lengthData length
  • Detailed Description

    This function pushes dxl_id to the DYNAMIXEL ID list, and initializes the parameter storage by setting start_address and data_length.

removeParam
  • Syntax
removeParam(dxl_id)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
  • Detailed Description

    This function removes target list of dxl_id from DYNAMIXEL ID list. It returns false when the class uses Protocol 1.0 .

clearParam
  • Syntax
clearParam()
  • Parameters

None

  • Detailed Description

    This function clears DYNAMIXEL ID list. It returns false when the class uses Protocol 1.0, or returns true.

txPacket
  • Syntax
txPacket()
  • Parameters

None

  • Detailed Description

    This function transmits the packet by using bulkReadTx The communication result and the hardware error are available when the function is terminated.

rxPacket
  • Syntax
rxPacket()
  • Parameters

None

  • Detailed Description

    This function receives the packet by using readRx function. The communication result and the hardware error are available when the function is terminated.

txRxPacket
  • Syntax
txRxPacket()
  • Parameters

None

  • Detailed Description

    This function transmits and receives the packet by using txPacket function and rxPacket function. The communication result and the hardware error are available when the function is terminated.

isAvailable
  • Syntax
isAvailable(dxl_id, address, data_length)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
addressAddress on the control table of DYNAMIXEL
data_lengthdata length
  • Detailed Description

    This function checks whether there is available data in the data storage. It returns false when there is no data from target address, or returns true.

getData
  • Syntax
getData(dxl_id, address, data_length)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
addressAddress on the control table of DYNAMIXEL
data_lengthdata length
  • Detailed Description

    This function gets specific data from received packet. It returns false when there is no data from target address, or returns true.