MasterArm¶
rb::upc::MasterArm is the SDK-side helper for the RB-Y1 master-arm device.
It wraps device initialization, torque management, and a local control loop
around the master-arm hardware.
Header
Header |
|
Declaration
Namespace |
|
Kind |
|
Primary role |
Manage master-arm initialization, torque, and callback-driven control. |
Public Member Functions
Method group |
Purpose |
Notes |
|---|---|---|
|
Construct and initialize the device. |
Initialization is the required bring-up step. |
|
Turn master-arm torque on or off. |
Common in startup and shutdown flow. |
|
Configure control timing and model constants. |
Use before entering control. |
|
Run or stop the master-arm control callback. |
|
Detailed Reference
-
class MasterArm¶
Public Functions
-
explicit MasterArm(const std::string &dev_name = kMasterArmDeviceName)¶
-
~MasterArm()¶
-
bool DisableTorque()¶
-
bool EnableTorque()¶
-
std::vector<int> Initialize(bool verbose = false)¶
-
void SetControlPeriod(double control_period)¶
-
void SetModelPath(const std::string &model_path)¶
-
bool StartControl(const std::function<ControlInput(const State &state)> &control = nullptr)¶
-
bool StopControl(bool torque_disable = false)¶
Public Static Attributes
-
static int kDOF = 14¶
-
static int kLeftToolId = 0x81¶
-
static double kMaximumTorque = 4.¶
-
static int kRightToolId = 0x80¶
-
static double kTorqueScaling = 0.5¶
-
struct ControlInput¶
-
struct State¶
Public Members
-
DynamixelBus::ButtonState button_left¶
-
DynamixelBus::ButtonState button_right¶
-
math::SE3::MatrixType T_left¶
-
math::SE3::MatrixType T_right¶
-
DynamixelBus::ButtonState button_left¶
-
explicit MasterArm(const std::string &dev_name = kMasterArmDeviceName)¶
Related Types
Examples
demo_motion_with_master_arm.cppmodule_test/master_arm.cppteleoperation_with_joint_mapping.cpp