Skip to main content

cpp_groupbulkwrite

CPP GroupBulkWrite

  • Description

    Base class for simultaneous dynamixel control on writing.

  • Members

    None

  • Methods

MethodsDescription
GroupBulkWriteInitializes groupBulkWrite instance
~GroupBulkWriteClears parameter storage
getPortHandlerReturns PortHandler instance
getPacketHandlerReturns PacketHandler instance
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

addParam
  • Syntax
bool addParam(UINT8_T id, UINT16_T start_address, UINT16_T data_length, UINT8_T *data)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
start_addressStart address
data_lengthData length
dataData for write
  • Detailed Description

    This function pushes id to the DYNAMIXEL ID list, and initializes the parameter storage by setting start_address and data_length. It returns false when the target ID exists already in the ID list, or returns true.

removeParam
  • Syntax
void removeParam(UINT8_T id)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
  • Detailed Description

    This function removes target id in the DYNAMIXEL ID list.

changeParam
  • Syntax
bool changeParam(UINT8_T id, UINT16_T start_address, UINT16_T data_length, UINT8_T *data)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
start_addressStart address
data_lengthData length
datadata 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 bulkWriteTxOnly() function. It returns COMM_NOT_AVAILABLE when the class uses Protocol 1.0 or there is no item on the DYNAMIXEL ID list, or returns communication result.