Skip to content

Commit

Permalink
init arm desc
Browse files Browse the repository at this point in the history
  • Loading branch information
glannuzel committed Oct 10, 2024
1 parent 1c328dc commit 27b08f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/reachy2_sdk/parts/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,16 @@ def __init__(
grpc_channel: grpc.Channel,
goto_stub: GoToServiceStub,
) -> None:
"""Define an arm (left or right).
"""Initialize an Arm instance.
Connect to the arm's gRPC server stub and set up the arm's actuators.
This constructor sets up the arm's gRPC communication and initializes its actuators
(shoulder, elbow, and wrist). Optionally, a gripper can also be configured.
Args:
arm_msg: The protobuf message containing the arm's configuration details.
initial_state: The initial state of the arm's actuators.
grpc_channel: The gRPC channel used for communication with the arm's server.
goto_stub: The gRPC stub for controlling goto movements.
"""
JointsBasedPart.__init__(self, arm_msg, grpc_channel, ArmServiceStub(grpc_channel))
IGoToBasedPart.__init__(self, self, goto_stub)
Expand Down

0 comments on commit 27b08f6

Please sign in to comment.