Skip to main content

cpp_groupsyncwrite

CPP GroupSyncWrite

  • Description

    Base class for simultaneous dynamixel control on writing.

  • Members

    None

  • Methods

MethodsDescription
GroupSyncWriteInitializes groupSyncWrite instance
~GroupSyncWriteClears 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, UINT8_T *data)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
datadata for write
  • Detailed Description

    This function pushes id to the DYNAMIXEL ID list, and initializes the parameter storage by adding data. 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. It returns false when the target ID does not exists in the ID list, or returns true.

changeParam
  • Syntax
bool changeParam(UINT8_T id, UINT8_T *data)
  • Parameters
ParametersDescription
idDYNAMIXEL ID
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 syncWriteTxOnly() function. It returns COMM_NOT_AVAILABLE when there is no item on the DYNAMIXEL ID list, or returns communication result.