solarian-edulite-a3 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. solarian_edulite_a3-0.1.0/LICENSE +201 -0
  2. solarian_edulite_a3-0.1.0/NOTICE +12 -0
  3. solarian_edulite_a3-0.1.0/PKG-INFO +148 -0
  4. solarian_edulite_a3-0.1.0/README.md +131 -0
  5. solarian_edulite_a3-0.1.0/pyproject.toml +40 -0
  6. solarian_edulite_a3-0.1.0/setup.cfg +4 -0
  7. solarian_edulite_a3-0.1.0/solarian_edulite_a3/__init__.py +22 -0
  8. solarian_edulite_a3-0.1.0/solarian_edulite_a3/arm.py +232 -0
  9. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3.xml +123 -0
  10. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/config.json +60 -0
  11. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/el05_l4.stl +0 -0
  12. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/el05_l5.stl +0 -0
  13. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/el05_l6.stl +0 -0
  14. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l1_base.stl +0 -0
  15. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l2_base.stl +0 -0
  16. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l2_cover.stl +0 -0
  17. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l3_back.stl +0 -0
  18. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l3_motor.stl +0 -0
  19. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l4_left.stl +0 -0
  20. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l4_right.stl +0 -0
  21. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l5_back.stl +0 -0
  22. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l5_motor.stl +0 -0
  23. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l5_shake.stl +0 -0
  24. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/l6_link.stl +0 -0
  25. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/rs00_l1.stl +0 -0
  26. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/rs00_l2.stl +0 -0
  27. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/rs00_l3.stl +0 -0
  28. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/x_axis.stl +0 -0
  29. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/y_axis.stl +0 -0
  30. solarian_edulite_a3-0.1.0/solarian_edulite_a3/assets/edulite_a3_description/meshes/z_axis.stl +0 -0
  31. solarian_edulite_a3-0.1.0/solarian_edulite_a3/gravity.py +78 -0
  32. solarian_edulite_a3-0.1.0/solarian_edulite_a3/templates/modules/right_arm.yaml +81 -0
  33. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/PKG-INFO +148 -0
  34. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/SOURCES.txt +37 -0
  35. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/dependency_links.txt +1 -0
  36. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/entry_points.txt +2 -0
  37. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/requires.txt +5 -0
  38. solarian_edulite_a3-0.1.0/solarian_edulite_a3.egg-info/top_level.txt +1 -0
  39. solarian_edulite_a3-0.1.0/tests/test_gravity.py +84 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,12 @@
1
+ Solarian EDULITE A3 plugin
2
+ Copyright 2026 PrimaryKey Inc.
3
+
4
+ This product includes software developed by PrimaryKey Inc.
5
+
6
+
7
+ Third-party data
8
+ ================
9
+
10
+ solarian_edulite_a3/assets/edulite_a3.xml
11
+ Link masses and inertials taken from el_a3.urdf in the vendor's EL-A3 SDK,
12
+ moved into this model's frames.
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: solarian-edulite-a3
3
+ Version: 0.1.0
4
+ Summary: EDULITE A3 arm and gripper modules for the Solarian robotics framework
5
+ Author-email: Raul Garreta <raul@solarian.dev>
6
+ License: Apache-2.0
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Requires-Dist: solarian>=0.6.0
13
+ Requires-Dist: solarian-robstride>=0.1.0
14
+ Provides-Extra: hardware
15
+ Requires-Dist: solarian-robstride[hardware]>=0.1.0; extra == "hardware"
16
+ Dynamic: license-file
17
+
18
+ # solarian-edulite-a3
19
+
20
+ EDULITE A3 arm module for Solarian. Joints use the Solarian Arm 1 names
21
+ (`shoulder_pan`, `shoulder_lift`, `elbow_flex`, `wrist_flex`, `wrist_yaw`,
22
+ `wrist_roll`). Motors are Robstride RS00 (joints 1-3) and EL05 (joints 4-6) on
23
+ one CAN bus; this plugin imports `RobstrideServo` from `solarian-robstride`.
24
+ For a gripper, use `Gripper1RobstrideModule` from `solarian-gripper1[robstride]`
25
+ on the same adapter.
26
+
27
+ ## Installation
28
+
29
+ ```bash
30
+ pip install -e "plugins/solarian-robstride[hardware]"
31
+ pip install -e "plugins/solarian-edulite-a3[hardware]"
32
+ ```
33
+
34
+ ## Modules
35
+
36
+ | Entry point | Class | Role |
37
+ |---|---|---|
38
+ | `edulite-a3-arm` | `EduliteA3ArmModule` | 6 joints + Mink IK (`x..rz`) |
39
+
40
+ `solarian install edulite-a3` copies the arm's default config,
41
+ `templates/modules/right_arm.yaml`, to `conf/modules/right_arm.yaml`. Rename
42
+ it to match the attribute on your `Robot`, and give the gripper's
43
+ `conf/modules/<attribute>.yaml` the same `port` so the USB-CAN adapter is
44
+ shared.
45
+
46
+ Attach on a `Robot` the same way Solarian Arm 1 does:
47
+
48
+ ```python
49
+ from solarian.core.robot import Robot
50
+ from solarian.sim import SceneConfig, ModuleAttachment
51
+ from solarian_edulite_a3 import ARM_MJCF_PATH
52
+ from solarian_edulite_a3.arm import EduliteA3ArmModule
53
+ from solarian_gripper1 import MJCF_ROBSTRIDE_PATH
54
+ from solarian_gripper1.gripper_robstride import Gripper1RobstrideModule
55
+
56
+ class EduliteRobot(Robot):
57
+ right_arm = EduliteA3ArmModule(ik_tcp=Gripper1RobstrideModule.tcp_from_flange)
58
+ right_gripper = Gripper1RobstrideModule()
59
+ scene = SceneConfig(
60
+ attachments=[
61
+ ModuleAttachment(module="right_arm", mjcf=ARM_MJCF_PATH, prefix="arm/"),
62
+ ModuleAttachment(
63
+ module="right_gripper",
64
+ mjcf=MJCF_ROBSTRIDE_PATH,
65
+ parent_site="arm/flange",
66
+ child_site="flange",
67
+ prefix="gripper/",
68
+ ),
69
+ ],
70
+ )
71
+ ```
72
+
73
+ ## Safety limits
74
+
75
+ `max_speed`, `max_accel`, `max_joint_speed` and `max_joint_accel` are ceilings
76
+ on this arm: a skill that asks for more (teleop, a policy) gets the configured
77
+ value. `max_joint_speed` (rad/s, default 0.3) also holds Cartesian moves, which
78
+ slow down wherever they would need a faster joint, and it is the `moveJ` speed
79
+ when the caller names none. `solarian calibrate-arm` measures all three speeds.
80
+
81
+ Every joint also has a speed cap below the planner, whatever it is commanded:
82
+ 1.5 x `max_joint_speed`, set on start and again whenever calibration changes
83
+ the speed. In CSP the motor enforces it; in MIT mode the bus does, by bounding
84
+ how far each tick's target may move. No planned move reaches it; a bad target
85
+ or a wrong calibration does.
86
+
87
+ Enabling torque holds each joint where it is: in CSP the present position is
88
+ latched as the motor's target first, and in MIT mode the first command after
89
+ the enable is a hold at the present position.
90
+
91
+ ## Control mode
92
+
93
+ `control_mode: mit` (the default) drives the joints the way RobStride's own
94
+ EL-A3 SDK does. Every tick sends each motor a type 1 (MIT) frame: its target,
95
+ a velocity, a stiffness Kp, a damping Kd and a torque, and the motor applies
96
+ `Kp (target - position) + Kd (velocity - speed) + torque`. The torque is the
97
+ model's gravity load at the target pose, so the stiffness only has to correct
98
+ small errors, and the velocity is the target's own rate, so the damping does
99
+ not brake a planned move.
100
+
101
+ `control_mode: csp` uses the motors' own position loop instead. Its factory
102
+ gains oscillate inside the gear backlash under load, which is the buzz an
103
+ EduLite makes holding a pose in CSP. Keep it as a fallback.
104
+
105
+ The gripper stays in CSP either way: its motor carries no gravity load, and
106
+ the bus only sends MIT frames to the arm joints.
107
+
108
+ MIT fields (ignored in CSP):
109
+
110
+ - `mit_kp` (Nm/rad, default 80) and `mit_kd` (Nm·s/rad, default 4): one value
111
+ for every joint, or a map by joint name. These are the vendor's defaults.
112
+ Raise Kp for a stiffer hold; raise Kd if it overshoots.
113
+ - `gravity_feedforward` (default 1.0): the share of the model's gravity torque
114
+ sent. 0 leaves gravity to Kp, and the arm sags until the error pays for it.
115
+ - `tool_mass_kg` (default 0) and `tool_com` (m, flange frame, +z out of the
116
+ flange): whatever is bolted to the flange, which the arm's model does not
117
+ contain. Without it the arm droops by the tool's weight over Kp.
118
+
119
+ The link masses in the MJCF are the vendor's (`el_a3.urdf` in the EL-A3 SDK),
120
+ moved into this model's frames, about 1.8 kg for the moving links. The last
121
+ link keeps its own small mass: the vendor's includes their gripper, which is
122
+ what `tool_mass_kg` describes here.
123
+
124
+ CSP field (ignored in MIT):
125
+
126
+ - `motor_current_limit` (A, default unset): the CSP current limit. Lower pushes
127
+ less hard into an obstacle; too low cannot hold the arm up.
128
+
129
+ ## Calibration
130
+
131
+ The joints report multi-turn absolute position, so there is no range sweep.
132
+ `solarian calibrate` asks for the arm folded at rest (upper arm lowered onto
133
+ its stop, forearm folded back over it, wrist straight, pan and roll centred),
134
+ which is every model joint at 0. That pose sets each joint's offset, and the MJCF limits set the window
135
+ around it. The sign check that follows confirms each joint's direction against
136
+ the live sim; the template's `drive_mode` values are first guesses from the
137
+ vendor SDK.
138
+
139
+ Torque is off while calibrating and the arm is limp: support it.
140
+
141
+ ## Hardware
142
+
143
+ - Robstride USB-CAN adapter (CH340): see `solarian-robstride` README.
144
+ - CAN IDs 1-6 on the arm, ID 7 on the gripper.
145
+ - Joint models are declared in `arm.py` (`rs00` for 1-3, `el05` for 4-6);
146
+ change them there if your arm has different motors.
147
+ - The MJCF's `wrist_flex` range (-0.67 to 2.35 rad) is wider than the vendor
148
+ SDK's ±1.57 rad. Check the real wrist's stops before trusting the upper end.
@@ -0,0 +1,131 @@
1
+ # solarian-edulite-a3
2
+
3
+ EDULITE A3 arm module for Solarian. Joints use the Solarian Arm 1 names
4
+ (`shoulder_pan`, `shoulder_lift`, `elbow_flex`, `wrist_flex`, `wrist_yaw`,
5
+ `wrist_roll`). Motors are Robstride RS00 (joints 1-3) and EL05 (joints 4-6) on
6
+ one CAN bus; this plugin imports `RobstrideServo` from `solarian-robstride`.
7
+ For a gripper, use `Gripper1RobstrideModule` from `solarian-gripper1[robstride]`
8
+ on the same adapter.
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ pip install -e "plugins/solarian-robstride[hardware]"
14
+ pip install -e "plugins/solarian-edulite-a3[hardware]"
15
+ ```
16
+
17
+ ## Modules
18
+
19
+ | Entry point | Class | Role |
20
+ |---|---|---|
21
+ | `edulite-a3-arm` | `EduliteA3ArmModule` | 6 joints + Mink IK (`x..rz`) |
22
+
23
+ `solarian install edulite-a3` copies the arm's default config,
24
+ `templates/modules/right_arm.yaml`, to `conf/modules/right_arm.yaml`. Rename
25
+ it to match the attribute on your `Robot`, and give the gripper's
26
+ `conf/modules/<attribute>.yaml` the same `port` so the USB-CAN adapter is
27
+ shared.
28
+
29
+ Attach on a `Robot` the same way Solarian Arm 1 does:
30
+
31
+ ```python
32
+ from solarian.core.robot import Robot
33
+ from solarian.sim import SceneConfig, ModuleAttachment
34
+ from solarian_edulite_a3 import ARM_MJCF_PATH
35
+ from solarian_edulite_a3.arm import EduliteA3ArmModule
36
+ from solarian_gripper1 import MJCF_ROBSTRIDE_PATH
37
+ from solarian_gripper1.gripper_robstride import Gripper1RobstrideModule
38
+
39
+ class EduliteRobot(Robot):
40
+ right_arm = EduliteA3ArmModule(ik_tcp=Gripper1RobstrideModule.tcp_from_flange)
41
+ right_gripper = Gripper1RobstrideModule()
42
+ scene = SceneConfig(
43
+ attachments=[
44
+ ModuleAttachment(module="right_arm", mjcf=ARM_MJCF_PATH, prefix="arm/"),
45
+ ModuleAttachment(
46
+ module="right_gripper",
47
+ mjcf=MJCF_ROBSTRIDE_PATH,
48
+ parent_site="arm/flange",
49
+ child_site="flange",
50
+ prefix="gripper/",
51
+ ),
52
+ ],
53
+ )
54
+ ```
55
+
56
+ ## Safety limits
57
+
58
+ `max_speed`, `max_accel`, `max_joint_speed` and `max_joint_accel` are ceilings
59
+ on this arm: a skill that asks for more (teleop, a policy) gets the configured
60
+ value. `max_joint_speed` (rad/s, default 0.3) also holds Cartesian moves, which
61
+ slow down wherever they would need a faster joint, and it is the `moveJ` speed
62
+ when the caller names none. `solarian calibrate-arm` measures all three speeds.
63
+
64
+ Every joint also has a speed cap below the planner, whatever it is commanded:
65
+ 1.5 x `max_joint_speed`, set on start and again whenever calibration changes
66
+ the speed. In CSP the motor enforces it; in MIT mode the bus does, by bounding
67
+ how far each tick's target may move. No planned move reaches it; a bad target
68
+ or a wrong calibration does.
69
+
70
+ Enabling torque holds each joint where it is: in CSP the present position is
71
+ latched as the motor's target first, and in MIT mode the first command after
72
+ the enable is a hold at the present position.
73
+
74
+ ## Control mode
75
+
76
+ `control_mode: mit` (the default) drives the joints the way RobStride's own
77
+ EL-A3 SDK does. Every tick sends each motor a type 1 (MIT) frame: its target,
78
+ a velocity, a stiffness Kp, a damping Kd and a torque, and the motor applies
79
+ `Kp (target - position) + Kd (velocity - speed) + torque`. The torque is the
80
+ model's gravity load at the target pose, so the stiffness only has to correct
81
+ small errors, and the velocity is the target's own rate, so the damping does
82
+ not brake a planned move.
83
+
84
+ `control_mode: csp` uses the motors' own position loop instead. Its factory
85
+ gains oscillate inside the gear backlash under load, which is the buzz an
86
+ EduLite makes holding a pose in CSP. Keep it as a fallback.
87
+
88
+ The gripper stays in CSP either way: its motor carries no gravity load, and
89
+ the bus only sends MIT frames to the arm joints.
90
+
91
+ MIT fields (ignored in CSP):
92
+
93
+ - `mit_kp` (Nm/rad, default 80) and `mit_kd` (Nm·s/rad, default 4): one value
94
+ for every joint, or a map by joint name. These are the vendor's defaults.
95
+ Raise Kp for a stiffer hold; raise Kd if it overshoots.
96
+ - `gravity_feedforward` (default 1.0): the share of the model's gravity torque
97
+ sent. 0 leaves gravity to Kp, and the arm sags until the error pays for it.
98
+ - `tool_mass_kg` (default 0) and `tool_com` (m, flange frame, +z out of the
99
+ flange): whatever is bolted to the flange, which the arm's model does not
100
+ contain. Without it the arm droops by the tool's weight over Kp.
101
+
102
+ The link masses in the MJCF are the vendor's (`el_a3.urdf` in the EL-A3 SDK),
103
+ moved into this model's frames, about 1.8 kg for the moving links. The last
104
+ link keeps its own small mass: the vendor's includes their gripper, which is
105
+ what `tool_mass_kg` describes here.
106
+
107
+ CSP field (ignored in MIT):
108
+
109
+ - `motor_current_limit` (A, default unset): the CSP current limit. Lower pushes
110
+ less hard into an obstacle; too low cannot hold the arm up.
111
+
112
+ ## Calibration
113
+
114
+ The joints report multi-turn absolute position, so there is no range sweep.
115
+ `solarian calibrate` asks for the arm folded at rest (upper arm lowered onto
116
+ its stop, forearm folded back over it, wrist straight, pan and roll centred),
117
+ which is every model joint at 0. That pose sets each joint's offset, and the MJCF limits set the window
118
+ around it. The sign check that follows confirms each joint's direction against
119
+ the live sim; the template's `drive_mode` values are first guesses from the
120
+ vendor SDK.
121
+
122
+ Torque is off while calibrating and the arm is limp: support it.
123
+
124
+ ## Hardware
125
+
126
+ - Robstride USB-CAN adapter (CH340): see `solarian-robstride` README.
127
+ - CAN IDs 1-6 on the arm, ID 7 on the gripper.
128
+ - Joint models are declared in `arm.py` (`rs00` for 1-3, `el05` for 4-6);
129
+ change them there if your arm has different motors.
130
+ - The MJCF's `wrist_flex` range (-0.67 to 2.35 rad) is wider than the vendor
131
+ SDK's ±1.57 rad. Check the real wrist's stops before trusting the upper end.
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "solarian-edulite-a3"
3
+ version = "0.1.0"
4
+ description = "EDULITE A3 arm and gripper modules for the Solarian robotics framework"
5
+ authors = [
6
+ {name = "Raul Garreta", email = "raul@solarian.dev"}
7
+ ]
8
+ readme = "README.md"
9
+ license = {text = "Apache-2.0"}
10
+ classifiers = ["License :: OSI Approved :: Apache Software License"]
11
+ requires-python = ">=3.10"
12
+ dependencies = [
13
+ "solarian>=0.6.0",
14
+ "solarian-robstride>=0.1.0",
15
+ ]
16
+
17
+ [project.optional-dependencies]
18
+ # The servo SDKs, for the machine wired to the arm. Without them the modules
19
+ # still import, so a relay or controller can build the robot's schema.
20
+ hardware = [
21
+ "solarian-robstride[hardware]>=0.1.0",
22
+ ]
23
+
24
+ [build-system]
25
+ requires = ["setuptools>=61.0"]
26
+ build-backend = "setuptools.build_meta"
27
+
28
+ [tool.setuptools.packages.find]
29
+ include = ["solarian_edulite_a3*"]
30
+
31
+ [tool.setuptools.package-data]
32
+ solarian_edulite_a3 = [
33
+ "templates/modules/*.yaml",
34
+ "assets/edulite_a3.xml",
35
+ "assets/edulite_a3_description/config.json",
36
+ "assets/edulite_a3_description/meshes/*.stl",
37
+ ]
38
+
39
+ [project.entry-points."solarian.modules"]
40
+ edulite-a3-arm = "solarian_edulite_a3.arm:EduliteA3ArmModule"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,22 @@
1
+ """
2
+ solarian-edulite-a3
3
+
4
+ EDULITE A3 arm and gripper modules for the Solarian robotics framework.
5
+ """
6
+
7
+ from pathlib import Path
8
+
9
+ __version__ = "0.1.0"
10
+
11
+ #: Directory holding this plugin's simulation assets (MJCF + onshape config).
12
+ ASSETS_DIR = Path(__file__).resolve().parent / "assets"
13
+
14
+ #: Absolute path to the arm MJCF used by MinkIK and scene attachments.
15
+ #: Replace this file with the OnShape export when the CAD assembly is ready.
16
+ ARM_MJCF_PATH = str(ASSETS_DIR / "edulite_a3.xml")
17
+
18
+ __all__ = [
19
+ "ASSETS_DIR",
20
+ "ARM_MJCF_PATH",
21
+ "__version__",
22
+ ]