rby1_sdk.CommandHeaderBuilder#
- class CommandHeaderBuilder#
Bases:
pybind11_objectCommand header builder.
Builds command headers with control hold time settings.
Examples
>>> import numpy as np, rby1_sdk as rby >>> header = rby.CommandHeaderBuilder().set_control_hold_time(5.0) >>> # Use this header in any command builder: >>> jp = rby.JointPositionCommandBuilder().set_command_header(header) >>> # Control hold time keeps the command active for 5 seconds
- __init__(self: rby1_sdk.CommandHeaderBuilder) None#
Construct a CommandHeaderBuilder instance.
Methods
__init__(self)Construct a CommandHeaderBuilder instance.
set_control_hold_time(self, control_hold_time)Set the control hold time.
- set_control_hold_time(self: rby1_sdk.CommandHeaderBuilder, control_hold_time: float) rby1_sdk.CommandHeaderBuilder#
Set the control hold time.
- Parameters:
control_hold_time (float) – Control hold time in seconds.
- Returns:
Self reference for method chaining.
- Return type: