Edit on GitHub
GroupExecutor Class Reference
- GroupExecutor class manages Sync/Bulk operations for multiple DYNAMIXEL motors, allowing efficient communication by staging commands and executing them in groups.
GroupExecutor Class
| Method | Return Type | Description |
|---|---|---|
| GroupExecutor(connector: Connector) | - | Initializes the GroupExecutor. |
| addCmd(self, command: StagedCommand) | - | Adds a command to the execution queue. |
| clearStagedWriteCommands() | - | Clears all staged write commands. |
| clearStagedReadCommands() | - | Clears all staged read commands. |
| executeWrite() | - | Executes the write commands in the queue. |
| executeRead() | - | Executes the read commands in the queue. |
Variables
| Variable | Type | Attribute | Description |
|---|---|---|---|
| connector | Connector | instance | Connector instance. |
| port_handler | PortHandler | instance | PortHandler instance. |
| packet_handler | PacketHandler | instance | PacketHandler instance. |
| group_bulk_write | GroupBulkWrite | instance | GroupBulkWrite instance. |
| group_bulk_read | GroupBulkRead | instance | GroupBulkRead instance. |
| _staged_write_commands | List[StagedCommand] | instance | List of staged write commands. |
| _staged_read_commands | List[StagedCommand] | instance | List of staged read commands. |
GroupExecutor Class
| Method | Return Type | Description |
|---|---|---|
| GroupExecutor(Connector * connector) | - | Initializes the GroupExecutor. |
| addCmd(StagedCommand command) | - | Adds a command to the execution queue. |
| getStagedWriteCommands() | vector |
Returns the list of staged write commands. |
| getStagedReadCommands() | vector |
Returns the list of staged read commands. |
| clearStagedWriteCommands() | - | Clears all staged write commands. |
| clearStagedReadCommands() | - | Clears all staged read commands. |
| executeWrite() | - | Executes the write commands in the queue. |
| executeRead() | - | Executes the read commands in the queue. |
Variables
| Variable | Type | Attribute | Description |
|---|---|---|---|
| connector_ | Connector | Private | Connector instance. |
| port_handler_ | PortHandler | Private | PortHandler instance. |
| packet_handler_ | PacketHandler | Private | PacketHandler instance. |
| group_bulk_write_ | GroupBulkWrite | Private | GroupBulkWrite instance. |
| group_bulk_read_ | GroupBulkRead | Private | GroupBulkRead instance. |
| staged_write_commands_ | vector |
Private | List of staged write commands. |
| staged_read_commands_ | vector |
Private | List of staged read commands. |

