Skip to main content

python_groupsyncwrite

  • Description

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

  • Members

    None

  • Methods

MethodsDescription
GroupSyncWriteInitializes 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

GroupSyncWrite
  • Syntax
GroupSyncWrite(port, ph, start_address, data_length)
  • Parameters
ParametersDescription
port_numPortHandler instance
phPacketHandler instance
start_addressControl table address to start writing data
data_lengthTotal data length
  • Detailed Description

    This function initializes the parameters for packet construction. The function resizes groupData struct and initialzes struct members.

addParam
  • Syntax
addParam(dxl_id, data)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
dataData for write
  • Detailed Description

    This function pushes dxl_id to the DYNAMIXEL ID list, and initializes parameter storage by adding input_length bytes data. 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, data)
  • Parameters
ParametersDescription
dxl_idDYNAMIXEL ID
dataData for write
  • Detailed Description

    This function pushes new data_length bytes data into parameter storage of same dxl_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 syncWriteTxOnly function. The communication result and the hardware error are available when the function is terminated.