-
Notifications
You must be signed in to change notification settings - Fork 0
Task/Simplify SDK wrapper: Add backend registry with auto-discovery #1067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
d16639a
6586774
39496f0
1b57160
41ad3d8
9e96632
485becf
3b2f237
a3c2dcd
b2d240d
4122354
4bfc2d6
79818d5
1c3137c
0ed3976
3c0bfb0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,13 +12,14 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """Hardware component schema for the ControlCoordnator.""" | ||
| """Hardware component schema for the ControlCoordinator.""" | ||
|
|
||
| from dataclasses import dataclass, field | ||
| from enum import Enum | ||
|
|
||
| HardwareId = str | ||
| JointName = str | ||
| TaskName = str | ||
|
|
||
|
|
||
| class HardwareType(Enum): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this used and what is difference between manipulator and gripper.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Grippers are parallel jaw grippers, dextrous hands etc. manipulators are just the 6-dof arms. I have kept the current xarm gripper integrated with the manipulator for now. Can be separated later. |
||
|
|
@@ -44,15 +45,15 @@ class HardwareComponent: | |
| hardware_id: Unique identifier, also used as joint name prefix | ||
| hardware_type: Type of hardware (MANIPULATOR, BASE, GRIPPER) | ||
| joints: List of joint names (e.g., ["arm_joint1", "arm_joint2", ...]) | ||
| backend_type: Backend type ("mock", "xarm", "piper") | ||
| adapter_type: Adapter type ("mock", "xarm", "piper") | ||
| address: Connection address - IP for TCP, port for CAN | ||
| auto_enable: Whether to auto-enable servos | ||
| """ | ||
|
|
||
| hardware_id: HardwareId | ||
| hardware_type: HardwareType | ||
| joints: list[JointName] = field(default_factory=list) | ||
| backend_type: str = "mock" | ||
| adapter_type: str = "mock" | ||
| address: str | None = None | ||
| auto_enable: bool = True | ||
|
|
||
|
|
@@ -76,5 +77,6 @@ def make_joints(hardware_id: HardwareId, dof: int) -> list[JointName]: | |
| "HardwareType", | ||
| "JointName", | ||
| "JointState", | ||
| "TaskName", | ||
| "make_joints", | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.