solarian-arm1 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.
- solarian_arm1-0.1.0/LICENSE +201 -0
- solarian_arm1-0.1.0/NOTICE +18 -0
- solarian_arm1-0.1.0/PKG-INFO +113 -0
- solarian_arm1-0.1.0/README.md +96 -0
- solarian_arm1-0.1.0/pyproject.toml +40 -0
- solarian_arm1-0.1.0/setup.cfg +4 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/PKG-INFO +113 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/SOURCES.txt +28 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/dependency_links.txt +1 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/entry_points.txt +2 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/requires.txt +5 -0
- solarian_arm1-0.1.0/solarian_arm1.egg-info/top_level.txt +1 -0
- solarian_arm1-0.1.0/solarian_arm_1/__init__.py +24 -0
- solarian_arm1-0.1.0/solarian_arm_1/arm.py +118 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1.xml +112 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/config.json +61 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/base_08q.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/base_08q__2.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/horn_separator.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/horn_spacer_7_mm.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/part_1.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/part_1__2.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/rotation_pitch_08i.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/servo_horn.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_116_square.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_asym_mirror_clip.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_mirror.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/sts3215_03a.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/sts3215_03a_wrist_roll.stl +0 -0
- solarian_arm1-0.1.0/solarian_arm_1/conf_arm.yaml +60 -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,18 @@
|
|
|
1
|
+
solarian-arm1
|
|
2
|
+
Copyright 2026 PrimaryKey Inc.
|
|
3
|
+
|
|
4
|
+
This product includes software developed by PrimaryKey Inc.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Third-party designs
|
|
8
|
+
===================
|
|
9
|
+
|
|
10
|
+
solarian_arm_1/assets/
|
|
11
|
+
The solarian-arm1 mechanical design, its meshes and its MuJoCo model are
|
|
12
|
+
derived from the SO-ARM100 (Standard Open Arm 100) by The Robot Studio
|
|
13
|
+
(https://github.com/TheRobotStudio/SO-ARM100), Apache License 2.0, and
|
|
14
|
+
modified, including an added wrist yaw joint and different servos.
|
|
15
|
+
Meshes named so_arm100_* and sts3215_* come from that design.
|
|
16
|
+
|
|
17
|
+
solarian-arm1 is not affiliated with, sponsored by, or endorsed by The Robot
|
|
18
|
+
Studio or Hugging Face.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: solarian-arm1
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: solarian-arm1, a mod of The Robot Studio SO-100 with an extra wrist degree of freedom
|
|
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.1.0
|
|
13
|
+
Requires-Dist: solarian-feetech>=0.1.0
|
|
14
|
+
Provides-Extra: hardware
|
|
15
|
+
Requires-Dist: solarian-feetech[hardware]>=0.1.0; extra == "hardware"
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# solarian-arm1
|
|
19
|
+
|
|
20
|
+
solarian-arm1 is a 6-DOF arm module for Solarian. It is a modification of an
|
|
21
|
+
existing open-source arm, the [SO-100 by The Robot Studio](https://github.com/TheRobotStudio/SO-ARM100).
|
|
22
|
+
The mod adds one degree of freedom in the wrist, a yaw joint the original design
|
|
23
|
+
does not have. Joints use Feetech STS servos
|
|
24
|
+
(`shoulder_pan`, `shoulder_lift`, `elbow_flex`, `wrist_flex`, `wrist_yaw`,
|
|
25
|
+
`wrist_roll`). The gripper is a separate module — typically
|
|
26
|
+
[`solarian-gripper1`](https://github.com/solarian-dev/solarian-gripper1),
|
|
27
|
+
mated flange-to-flange.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install -e plugins/solarian-feetech
|
|
33
|
+
pip install -e plugins/solarian-arm1
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Module
|
|
37
|
+
|
|
38
|
+
| Entry point | Class | Role |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `arm-1` | `Arm1Module` | 6 joints + Mink IK (`x..rz`) |
|
|
41
|
+
|
|
42
|
+
Default YAML lives at `solarian_arm_1/conf_arm.yaml`. Copy it into a project's
|
|
43
|
+
`conf/` (for example `right_arm.yaml`) and set the serial port / servo ids.
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from solarian.core.robot import Robot
|
|
47
|
+
from solarian.sim import SceneConfig, ModuleAttachment
|
|
48
|
+
from solarian_arm_1 import ARM_MJCF_PATH
|
|
49
|
+
from solarian_arm_1.arm import Arm1Module
|
|
50
|
+
from solarian_gripper_1 import MJCF_FEETECH_PATH as GRIPPER_MJCF
|
|
51
|
+
from solarian_gripper_1.gripper_feetech import Gripper1FeetechModule
|
|
52
|
+
|
|
53
|
+
class Arm1Robot(Robot):
|
|
54
|
+
right_arm = Arm1Module(ik_tcp=Gripper1FeetechModule.tcp_from_flange)
|
|
55
|
+
right_gripper = Gripper1FeetechModule()
|
|
56
|
+
scene = SceneConfig(
|
|
57
|
+
attachments=[
|
|
58
|
+
ModuleAttachment(
|
|
59
|
+
module="right_arm",
|
|
60
|
+
mjcf=ARM_MJCF_PATH,
|
|
61
|
+
prefix="right/",
|
|
62
|
+
),
|
|
63
|
+
ModuleAttachment(
|
|
64
|
+
module="right_gripper",
|
|
65
|
+
mjcf=GRIPPER_MJCF,
|
|
66
|
+
parent_site="right/flange",
|
|
67
|
+
child_site="flange",
|
|
68
|
+
prefix="right_gripper/",
|
|
69
|
+
),
|
|
70
|
+
],
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The arm MJCF exports a `flange` site (CAD Frame). Attach a gripper by aligning
|
|
75
|
+
both models' `flange` frames. IK tracks `flange` plus the tool's
|
|
76
|
+
`tcp_from_flange` offset (CAD `tcp` in the gripper's mate frame). The scene
|
|
77
|
+
still attaches the gripper MJCF for physics and cameras.
|
|
78
|
+
|
|
79
|
+
## Onshape export
|
|
80
|
+
|
|
81
|
+
Re-export after a CAD change (needs Onshape API credentials):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description
|
|
85
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description --clean-only
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
That writes `solarian_arm_1/assets/arm1.xml`. Use `--update-yaml` to sync
|
|
89
|
+
joint limits into a project's arm config:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description \
|
|
93
|
+
--update-yaml projects/arm1/conf/modules/right_arm.yaml
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
CAD mates should be named `shoulder_pan` … `wrist_roll`. Keep a Frame named
|
|
97
|
+
`flange` on the wrist for gripper attachment. Put the tool TCP Frame on the
|
|
98
|
+
gripper assembly (name it `tcp`), not on the arm.
|
|
99
|
+
|
|
100
|
+
`wrist_roll` is 0-centered (`±π`) in `arm1.xml` / `config.json` even though
|
|
101
|
+
CAD exports `[-2π, 0]`. `solarian.prefer_config_limits` keeps that override
|
|
102
|
+
on re-export so home can roll both ways.
|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
[Apache License 2.0](LICENSE). Copyright 2026 PrimaryKey Inc. The mechanical
|
|
107
|
+
design and meshes in `solarian_arm_1/assets/` are derived from the
|
|
108
|
+
[SO-ARM100](https://github.com/TheRobotStudio/SO-ARM100) by The Robot Studio
|
|
109
|
+
(Apache 2.0) and modified; see [NOTICE](NOTICE). solarian-arm1 is not
|
|
110
|
+
affiliated with, sponsored by, or endorsed by The Robot Studio or Hugging Face.
|
|
111
|
+
|
|
112
|
+
Solarian, Solarian Arm and the Solarian logo are trademarks of PrimaryKey Inc.
|
|
113
|
+
See the [trademark policy](https://github.com/solarian-dev/solarian/blob/main/TRADEMARKS.md).
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# solarian-arm1
|
|
2
|
+
|
|
3
|
+
solarian-arm1 is a 6-DOF arm module for Solarian. It is a modification of an
|
|
4
|
+
existing open-source arm, the [SO-100 by The Robot Studio](https://github.com/TheRobotStudio/SO-ARM100).
|
|
5
|
+
The mod adds one degree of freedom in the wrist, a yaw joint the original design
|
|
6
|
+
does not have. Joints use Feetech STS servos
|
|
7
|
+
(`shoulder_pan`, `shoulder_lift`, `elbow_flex`, `wrist_flex`, `wrist_yaw`,
|
|
8
|
+
`wrist_roll`). The gripper is a separate module — typically
|
|
9
|
+
[`solarian-gripper1`](https://github.com/solarian-dev/solarian-gripper1),
|
|
10
|
+
mated flange-to-flange.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install -e plugins/solarian-feetech
|
|
16
|
+
pip install -e plugins/solarian-arm1
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Module
|
|
20
|
+
|
|
21
|
+
| Entry point | Class | Role |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `arm-1` | `Arm1Module` | 6 joints + Mink IK (`x..rz`) |
|
|
24
|
+
|
|
25
|
+
Default YAML lives at `solarian_arm_1/conf_arm.yaml`. Copy it into a project's
|
|
26
|
+
`conf/` (for example `right_arm.yaml`) and set the serial port / servo ids.
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from solarian.core.robot import Robot
|
|
30
|
+
from solarian.sim import SceneConfig, ModuleAttachment
|
|
31
|
+
from solarian_arm_1 import ARM_MJCF_PATH
|
|
32
|
+
from solarian_arm_1.arm import Arm1Module
|
|
33
|
+
from solarian_gripper_1 import MJCF_FEETECH_PATH as GRIPPER_MJCF
|
|
34
|
+
from solarian_gripper_1.gripper_feetech import Gripper1FeetechModule
|
|
35
|
+
|
|
36
|
+
class Arm1Robot(Robot):
|
|
37
|
+
right_arm = Arm1Module(ik_tcp=Gripper1FeetechModule.tcp_from_flange)
|
|
38
|
+
right_gripper = Gripper1FeetechModule()
|
|
39
|
+
scene = SceneConfig(
|
|
40
|
+
attachments=[
|
|
41
|
+
ModuleAttachment(
|
|
42
|
+
module="right_arm",
|
|
43
|
+
mjcf=ARM_MJCF_PATH,
|
|
44
|
+
prefix="right/",
|
|
45
|
+
),
|
|
46
|
+
ModuleAttachment(
|
|
47
|
+
module="right_gripper",
|
|
48
|
+
mjcf=GRIPPER_MJCF,
|
|
49
|
+
parent_site="right/flange",
|
|
50
|
+
child_site="flange",
|
|
51
|
+
prefix="right_gripper/",
|
|
52
|
+
),
|
|
53
|
+
],
|
|
54
|
+
)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The arm MJCF exports a `flange` site (CAD Frame). Attach a gripper by aligning
|
|
58
|
+
both models' `flange` frames. IK tracks `flange` plus the tool's
|
|
59
|
+
`tcp_from_flange` offset (CAD `tcp` in the gripper's mate frame). The scene
|
|
60
|
+
still attaches the gripper MJCF for physics and cameras.
|
|
61
|
+
|
|
62
|
+
## Onshape export
|
|
63
|
+
|
|
64
|
+
Re-export after a CAD change (needs Onshape API credentials):
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description
|
|
68
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description --clean-only
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
That writes `solarian_arm_1/assets/arm1.xml`. Use `--update-yaml` to sync
|
|
72
|
+
joint limits into a project's arm config:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description \
|
|
76
|
+
--update-yaml projects/arm1/conf/modules/right_arm.yaml
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
CAD mates should be named `shoulder_pan` … `wrist_roll`. Keep a Frame named
|
|
80
|
+
`flange` on the wrist for gripper attachment. Put the tool TCP Frame on the
|
|
81
|
+
gripper assembly (name it `tcp`), not on the arm.
|
|
82
|
+
|
|
83
|
+
`wrist_roll` is 0-centered (`±π`) in `arm1.xml` / `config.json` even though
|
|
84
|
+
CAD exports `[-2π, 0]`. `solarian.prefer_config_limits` keeps that override
|
|
85
|
+
on re-export so home can roll both ways.
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
[Apache License 2.0](LICENSE). Copyright 2026 PrimaryKey Inc. The mechanical
|
|
90
|
+
design and meshes in `solarian_arm_1/assets/` are derived from the
|
|
91
|
+
[SO-ARM100](https://github.com/TheRobotStudio/SO-ARM100) by The Robot Studio
|
|
92
|
+
(Apache 2.0) and modified; see [NOTICE](NOTICE). solarian-arm1 is not
|
|
93
|
+
affiliated with, sponsored by, or endorsed by The Robot Studio or Hugging Face.
|
|
94
|
+
|
|
95
|
+
Solarian, Solarian Arm and the Solarian logo are trademarks of PrimaryKey Inc.
|
|
96
|
+
See the [trademark policy](https://github.com/solarian-dev/solarian/blob/main/TRADEMARKS.md).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "solarian-arm1"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "solarian-arm1, a mod of The Robot Studio SO-100 with an extra wrist degree of freedom"
|
|
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.1.0",
|
|
14
|
+
"solarian-feetech>=0.1.0",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[project.optional-dependencies]
|
|
18
|
+
# The servo SDKs, for the machine wired to the arm. Without them the module
|
|
19
|
+
# still imports, so a relay or controller can build the robot's schema.
|
|
20
|
+
hardware = [
|
|
21
|
+
"solarian-feetech[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_arm_1*"]
|
|
30
|
+
|
|
31
|
+
[tool.setuptools.package-data]
|
|
32
|
+
solarian_arm_1 = [
|
|
33
|
+
"conf_arm.yaml",
|
|
34
|
+
"assets/arm1.xml",
|
|
35
|
+
"assets/arm1_description/config.json",
|
|
36
|
+
"assets/arm1_description/meshes/*.stl",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.entry-points."solarian.modules"]
|
|
40
|
+
arm-1 = "solarian_arm_1.arm:Arm1Module"
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: solarian-arm1
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: solarian-arm1, a mod of The Robot Studio SO-100 with an extra wrist degree of freedom
|
|
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.1.0
|
|
13
|
+
Requires-Dist: solarian-feetech>=0.1.0
|
|
14
|
+
Provides-Extra: hardware
|
|
15
|
+
Requires-Dist: solarian-feetech[hardware]>=0.1.0; extra == "hardware"
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# solarian-arm1
|
|
19
|
+
|
|
20
|
+
solarian-arm1 is a 6-DOF arm module for Solarian. It is a modification of an
|
|
21
|
+
existing open-source arm, the [SO-100 by The Robot Studio](https://github.com/TheRobotStudio/SO-ARM100).
|
|
22
|
+
The mod adds one degree of freedom in the wrist, a yaw joint the original design
|
|
23
|
+
does not have. Joints use Feetech STS servos
|
|
24
|
+
(`shoulder_pan`, `shoulder_lift`, `elbow_flex`, `wrist_flex`, `wrist_yaw`,
|
|
25
|
+
`wrist_roll`). The gripper is a separate module — typically
|
|
26
|
+
[`solarian-gripper1`](https://github.com/solarian-dev/solarian-gripper1),
|
|
27
|
+
mated flange-to-flange.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install -e plugins/solarian-feetech
|
|
33
|
+
pip install -e plugins/solarian-arm1
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Module
|
|
37
|
+
|
|
38
|
+
| Entry point | Class | Role |
|
|
39
|
+
|---|---|---|
|
|
40
|
+
| `arm-1` | `Arm1Module` | 6 joints + Mink IK (`x..rz`) |
|
|
41
|
+
|
|
42
|
+
Default YAML lives at `solarian_arm_1/conf_arm.yaml`. Copy it into a project's
|
|
43
|
+
`conf/` (for example `right_arm.yaml`) and set the serial port / servo ids.
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
from solarian.core.robot import Robot
|
|
47
|
+
from solarian.sim import SceneConfig, ModuleAttachment
|
|
48
|
+
from solarian_arm_1 import ARM_MJCF_PATH
|
|
49
|
+
from solarian_arm_1.arm import Arm1Module
|
|
50
|
+
from solarian_gripper_1 import MJCF_FEETECH_PATH as GRIPPER_MJCF
|
|
51
|
+
from solarian_gripper_1.gripper_feetech import Gripper1FeetechModule
|
|
52
|
+
|
|
53
|
+
class Arm1Robot(Robot):
|
|
54
|
+
right_arm = Arm1Module(ik_tcp=Gripper1FeetechModule.tcp_from_flange)
|
|
55
|
+
right_gripper = Gripper1FeetechModule()
|
|
56
|
+
scene = SceneConfig(
|
|
57
|
+
attachments=[
|
|
58
|
+
ModuleAttachment(
|
|
59
|
+
module="right_arm",
|
|
60
|
+
mjcf=ARM_MJCF_PATH,
|
|
61
|
+
prefix="right/",
|
|
62
|
+
),
|
|
63
|
+
ModuleAttachment(
|
|
64
|
+
module="right_gripper",
|
|
65
|
+
mjcf=GRIPPER_MJCF,
|
|
66
|
+
parent_site="right/flange",
|
|
67
|
+
child_site="flange",
|
|
68
|
+
prefix="right_gripper/",
|
|
69
|
+
),
|
|
70
|
+
],
|
|
71
|
+
)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The arm MJCF exports a `flange` site (CAD Frame). Attach a gripper by aligning
|
|
75
|
+
both models' `flange` frames. IK tracks `flange` plus the tool's
|
|
76
|
+
`tcp_from_flange` offset (CAD `tcp` in the gripper's mate frame). The scene
|
|
77
|
+
still attaches the gripper MJCF for physics and cameras.
|
|
78
|
+
|
|
79
|
+
## Onshape export
|
|
80
|
+
|
|
81
|
+
Re-export after a CAD change (needs Onshape API credentials):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description
|
|
85
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description --clean-only
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
That writes `solarian_arm_1/assets/arm1.xml`. Use `--update-yaml` to sync
|
|
89
|
+
joint limits into a project's arm config:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
solarian onshape-export plugins/solarian-arm1/solarian_arm_1/assets/arm1_description \
|
|
93
|
+
--update-yaml projects/arm1/conf/modules/right_arm.yaml
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
CAD mates should be named `shoulder_pan` … `wrist_roll`. Keep a Frame named
|
|
97
|
+
`flange` on the wrist for gripper attachment. Put the tool TCP Frame on the
|
|
98
|
+
gripper assembly (name it `tcp`), not on the arm.
|
|
99
|
+
|
|
100
|
+
`wrist_roll` is 0-centered (`±π`) in `arm1.xml` / `config.json` even though
|
|
101
|
+
CAD exports `[-2π, 0]`. `solarian.prefer_config_limits` keeps that override
|
|
102
|
+
on re-export so home can roll both ways.
|
|
103
|
+
|
|
104
|
+
## License
|
|
105
|
+
|
|
106
|
+
[Apache License 2.0](LICENSE). Copyright 2026 PrimaryKey Inc. The mechanical
|
|
107
|
+
design and meshes in `solarian_arm_1/assets/` are derived from the
|
|
108
|
+
[SO-ARM100](https://github.com/TheRobotStudio/SO-ARM100) by The Robot Studio
|
|
109
|
+
(Apache 2.0) and modified; see [NOTICE](NOTICE). solarian-arm1 is not
|
|
110
|
+
affiliated with, sponsored by, or endorsed by The Robot Studio or Hugging Face.
|
|
111
|
+
|
|
112
|
+
Solarian, Solarian Arm and the Solarian logo are trademarks of PrimaryKey Inc.
|
|
113
|
+
See the [trademark policy](https://github.com/solarian-dev/solarian/blob/main/TRADEMARKS.md).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
NOTICE
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
solarian_arm1.egg-info/PKG-INFO
|
|
6
|
+
solarian_arm1.egg-info/SOURCES.txt
|
|
7
|
+
solarian_arm1.egg-info/dependency_links.txt
|
|
8
|
+
solarian_arm1.egg-info/entry_points.txt
|
|
9
|
+
solarian_arm1.egg-info/requires.txt
|
|
10
|
+
solarian_arm1.egg-info/top_level.txt
|
|
11
|
+
solarian_arm_1/__init__.py
|
|
12
|
+
solarian_arm_1/arm.py
|
|
13
|
+
solarian_arm_1/conf_arm.yaml
|
|
14
|
+
solarian_arm_1/assets/arm1.xml
|
|
15
|
+
solarian_arm_1/assets/arm1_description/config.json
|
|
16
|
+
solarian_arm_1/assets/arm1_description/meshes/base_08q.stl
|
|
17
|
+
solarian_arm_1/assets/arm1_description/meshes/base_08q__2.stl
|
|
18
|
+
solarian_arm_1/assets/arm1_description/meshes/horn_separator.stl
|
|
19
|
+
solarian_arm_1/assets/arm1_description/meshes/horn_spacer_7_mm.stl
|
|
20
|
+
solarian_arm_1/assets/arm1_description/meshes/part_1.stl
|
|
21
|
+
solarian_arm_1/assets/arm1_description/meshes/part_1__2.stl
|
|
22
|
+
solarian_arm_1/assets/arm1_description/meshes/rotation_pitch_08i.stl
|
|
23
|
+
solarian_arm_1/assets/arm1_description/meshes/servo_horn.stl
|
|
24
|
+
solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_116_square.stl
|
|
25
|
+
solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_asym_mirror_clip.stl
|
|
26
|
+
solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_mirror.stl
|
|
27
|
+
solarian_arm_1/assets/arm1_description/meshes/sts3215_03a.stl
|
|
28
|
+
solarian_arm_1/assets/arm1_description/meshes/sts3215_03a_wrist_roll.stl
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
solarian_arm_1
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""
|
|
2
|
+
solarian-arm1
|
|
3
|
+
|
|
4
|
+
A 6-DOF arm module for Solarian: a mod of The Robot Studio SO-100 that adds
|
|
5
|
+
one degree of freedom in the wrist. Joints are Feetech STS servos. A gripper
|
|
6
|
+
is a separate module; the project passes that tool's flange-relative TCP as
|
|
7
|
+
``Arm1Module(ik_tcp=...)``.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
__version__ = "0.1.0"
|
|
13
|
+
|
|
14
|
+
#: Directory holding this plugin's simulation assets (MJCF + onshape config).
|
|
15
|
+
ASSETS_DIR = Path(__file__).resolve().parent / "assets"
|
|
16
|
+
|
|
17
|
+
#: Absolute path to the arm MJCF used by MinkIK and scene attachments.
|
|
18
|
+
ARM_MJCF_PATH = str(ASSETS_DIR / "arm1.xml")
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"ASSETS_DIR",
|
|
22
|
+
"ARM_MJCF_PATH",
|
|
23
|
+
"__version__",
|
|
24
|
+
]
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
from solarian.core.arm_module import ArmModule
|
|
2
|
+
from solarian.core.ik import CartesianIKActuator, MinkIK
|
|
3
|
+
from solarian_feetech.actuator import FeetechServo
|
|
4
|
+
from solarian_arm_1 import ARM_MJCF_PATH
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Solarian Arm 1 is a full 6-DOF arm (the gripper is a separate module). IK
|
|
8
|
+
# controls all six joints, each mapped 1:1 onto the identically named joint of
|
|
9
|
+
# the arm's MuJoCo model. The TCP defaults to the wrist rail ``flange``; a project mates
|
|
10
|
+
# a tool by passing that tool's flange-relative pose as ``ik_tcp``.
|
|
11
|
+
IK_JOINT_ACTUATORS = [
|
|
12
|
+
"shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_yaw", "wrist_roll",
|
|
13
|
+
]
|
|
14
|
+
IK_JOINT_MODEL_NAMES = IK_JOINT_ACTUATORS
|
|
15
|
+
IK_MJCF = ARM_MJCF_PATH
|
|
16
|
+
|
|
17
|
+
# Named joint poses (``home``, ``ground``) belong to MoveSkill, in the
|
|
18
|
+
# project's conf/move.yaml: this module takes joint values, not pose names.
|
|
19
|
+
# They are in normalized joint space ([-100, 100]; 0 == mid-range), converted
|
|
20
|
+
# to radians via the IK joint limits for ArmModule.moveJ (SI API).
|
|
21
|
+
|
|
22
|
+
# Per-joint position PID. Gravity-loaded joints (lift, elbow, wrist_flex) get
|
|
23
|
+
# stiffer P/D so the arm holds against typical tool mass; distal yaw/roll
|
|
24
|
+
# stay closer to the soft SO-100 defaults (P=12/D=32).
|
|
25
|
+
#
|
|
26
|
+
# Gravity joints also get a small I (P-only cannot cancel constant gravity),
|
|
27
|
+
# zero dead zone, and relaxed overload so a legitimate hold does not trip the
|
|
28
|
+
# factory 80%/2s fuse and drop Protective_Torque to 20%. Over-temp / over-current
|
|
29
|
+
# stay at firmware defaults.
|
|
30
|
+
_GRAVITY_HOLD = {
|
|
31
|
+
"I_Coefficient": 3,
|
|
32
|
+
"CW_Dead_Zone": 0,
|
|
33
|
+
"CCW_Dead_Zone": 0,
|
|
34
|
+
"Overload_Torque": 95,
|
|
35
|
+
"Protective_Torque": 50,
|
|
36
|
+
"Protection_Time": 254,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
SERVO_GAINS = {
|
|
40
|
+
# shoulder_pan turns the whole arm's inertia with no gravity load to settle
|
|
41
|
+
# it against, so it is the one joint that must be able to sit still: with
|
|
42
|
+
# I > 0 and no dead zone the integrator winds up inside the gear backlash,
|
|
43
|
+
# breaks free, overshoots, and limit-cycles as a visible shake. Hence no I,
|
|
44
|
+
# a 1-tick dead zone (~0.09 deg at the joint), and less D than the gravity
|
|
45
|
+
# joints -- D differentiates encoder quantization into torque chatter.
|
|
46
|
+
"shoulder_pan": {
|
|
47
|
+
"P_Coefficient": 22,
|
|
48
|
+
"D_Coefficient": 24,
|
|
49
|
+
"I_Coefficient": 0,
|
|
50
|
+
"CW_Dead_Zone": 1,
|
|
51
|
+
"CCW_Dead_Zone": 1,
|
|
52
|
+
},
|
|
53
|
+
"shoulder_lift": {"P_Coefficient": 24, "D_Coefficient": 40, **_GRAVITY_HOLD},
|
|
54
|
+
"elbow_flex": {"P_Coefficient": 22, "D_Coefficient": 40, **_GRAVITY_HOLD},
|
|
55
|
+
"wrist_flex": {"P_Coefficient": 22, "D_Coefficient": 40, **_GRAVITY_HOLD},
|
|
56
|
+
"wrist_yaw": {
|
|
57
|
+
"P_Coefficient": 22,
|
|
58
|
+
"D_Coefficient": 24,
|
|
59
|
+
"I_Coefficient": 0,
|
|
60
|
+
"CW_Dead_Zone": 1,
|
|
61
|
+
"CCW_Dead_Zone": 1,
|
|
62
|
+
},
|
|
63
|
+
"wrist_roll": {"P_Coefficient": 22, "D_Coefficient": 40},
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class Arm1Module(ArmModule):
|
|
68
|
+
shoulder_pan = FeetechServo(model="sts3250")
|
|
69
|
+
shoulder_lift = FeetechServo(model="sts3250")
|
|
70
|
+
elbow_flex = FeetechServo(model="sts3250")
|
|
71
|
+
wrist_flex = FeetechServo(model="sts3250", is_continuous=True)
|
|
72
|
+
wrist_yaw = FeetechServo(model="sts3215", is_continuous=True)
|
|
73
|
+
wrist_roll = FeetechServo(model="sts3215", is_continuous=True)
|
|
74
|
+
|
|
75
|
+
# Cartesian-space actuators (end-effector pose). Present because this arm
|
|
76
|
+
# implements IK; ``cfg.id`` 0..5 selects the pose component x,y,z,rx,ry,rz.
|
|
77
|
+
x = CartesianIKActuator()
|
|
78
|
+
y = CartesianIKActuator()
|
|
79
|
+
z = CartesianIKActuator()
|
|
80
|
+
rx = CartesianIKActuator()
|
|
81
|
+
ry = CartesianIKActuator()
|
|
82
|
+
rz = CartesianIKActuator()
|
|
83
|
+
|
|
84
|
+
# Declarative IK backend: the core builds the mink (MuJoCo) backend from this
|
|
85
|
+
# spec automatically when connecting -- no build method needed.
|
|
86
|
+
# ``orientation_cost`` is raised to match ``position_cost`` (both 1.0) so the
|
|
87
|
+
# 6-DOF arm holds the commanded end-effector orientation firmly during pure
|
|
88
|
+
# translations (otherwise nudging x/y/z lets the tool visibly rotate).
|
|
89
|
+
ik_backend = MinkIK(
|
|
90
|
+
mjcf=IK_MJCF,
|
|
91
|
+
joints=dict(zip(IK_JOINT_ACTUATORS, IK_JOINT_MODEL_NAMES)),
|
|
92
|
+
frame="flange",
|
|
93
|
+
position_cost=1.0,
|
|
94
|
+
orientation_cost=1.0,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
def initialize(self):
|
|
98
|
+
super().initialize()
|
|
99
|
+
|
|
100
|
+
self.disable_torque()
|
|
101
|
+
|
|
102
|
+
self.configure_components(
|
|
103
|
+
{
|
|
104
|
+
"Return_Delay_Time": 0,
|
|
105
|
+
"Maximum_Acceleration": 254,
|
|
106
|
+
"Acceleration": 254,
|
|
107
|
+
"Operating_Mode": 0,
|
|
108
|
+
"I_Coefficient": 0,
|
|
109
|
+
},
|
|
110
|
+
component_names=IK_JOINT_ACTUATORS,
|
|
111
|
+
)
|
|
112
|
+
for name, gains in SERVO_GAINS.items():
|
|
113
|
+
self.configure_components(gains, component_names=[name])
|
|
114
|
+
|
|
115
|
+
# Servos keep the Goal_Position from the last session, so energising
|
|
116
|
+
# without latching first snaps the arm to wherever it was commanded
|
|
117
|
+
# before, from wherever it is now.
|
|
118
|
+
self.enable_torque_holding()
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
+
<mujoco model="arm1">
|
|
3
|
+
<compiler angle="radian" meshdir="arm1_description/meshes" autolimits="true" inertiafromgeom="auto" inertiagrouprange="3 3" />
|
|
4
|
+
<default>
|
|
5
|
+
<default class="arm1">
|
|
6
|
+
<joint frictionloss="0.1" armature="0.005" />
|
|
7
|
+
<position kp="50" dampratio="1" />
|
|
8
|
+
<default class="visual">
|
|
9
|
+
<geom type="mesh" contype="0" conaffinity="0" group="2" />
|
|
10
|
+
</default>
|
|
11
|
+
<default class="collision">
|
|
12
|
+
<geom group="3" density="1400" contype="2" conaffinity="1" />
|
|
13
|
+
</default>
|
|
14
|
+
</default>
|
|
15
|
+
</default>
|
|
16
|
+
<worldbody>
|
|
17
|
+
<body name="sts3215_03a" pos="0 0 0" quat="1 0 0 0" childclass="arm1">
|
|
18
|
+
<geom type="mesh" class="visual" pos="9.94325e-05 0.0336225 0" quat="0.707107 0.707107 -0 -0" mesh="base_08q" material="base_08q_material" />
|
|
19
|
+
<geom type="mesh" class="collision" pos="9.94325e-05 0.0336225 0" quat="0.707107 0.707107 -0 -0" mesh="base_08q" material="base_08q_material" />
|
|
20
|
+
<geom type="mesh" class="visual" pos="-0 0.0336225 -0" quat="0.707107 0.707107 0 -0" mesh="base_08q__2" material="base_08q__2_material" />
|
|
21
|
+
<geom type="mesh" class="collision" pos="-0 0.0336225 -0" quat="0.707107 0.707107 0 -0" mesh="base_08q__2" material="base_08q__2_material" />
|
|
22
|
+
<geom type="mesh" class="visual" pos="0.00025 0.00122252 0.0461" quat="0.707107 -0 -0 -0.707107" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
23
|
+
<geom type="mesh" class="collision" pos="0.00025 0.00122252 0.0461" quat="0.707107 -0 -0 -0.707107" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
24
|
+
<body name="sts3215_03a_2" pos="0.00025 -0.0112775 0.0648" quat="0 -0.732613 -0.680645 0">
|
|
25
|
+
<joint axis="0 0 1" name="shoulder_pan" type="hinge" range="-2.22899197815522 2.081971274270774" />
|
|
26
|
+
<geom type="mesh" class="visual" pos="-0.0675992 -0.000177759 0.0158499" quat="0.5 0.5 -0.5 0.5" mesh="so_arm100_08k_asym_mirror_clip" material="so_arm100_08k_asym_mirror_clip_material" />
|
|
27
|
+
<geom type="mesh" class="collision" pos="-0.0675992 -0.000177759 0.0158499" quat="0.5 0.5 -0.5 0.5" mesh="so_arm100_08k_asym_mirror_clip" material="so_arm100_08k_asym_mirror_clip_material" />
|
|
28
|
+
<geom type="mesh" class="visual" pos="-0.0303992 0.000422241 -0.0417" quat="0.5 0.5 0.5 -0.5" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
29
|
+
<geom type="mesh" class="collision" pos="-0.0303992 0.000422241 -0.0417" quat="0.5 0.5 0.5 -0.5" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
30
|
+
<geom type="mesh" class="visual" pos="0.0122008 2.22413e-05 0.0464" quat="0.707107 -0.707107 -0 0" mesh="rotation_pitch_08i" material="rotation_pitch_08i_material" />
|
|
31
|
+
<geom type="mesh" class="collision" pos="0.0122008 2.22413e-05 0.0464" quat="0.707107 -0.707107 -0 0" mesh="rotation_pitch_08i" material="rotation_pitch_08i_material" />
|
|
32
|
+
<body name="sts3215_03a_3" pos="-0.0303992 -0.0182778 -0.0542" quat="0.5 -0.5 0.5 0.5">
|
|
33
|
+
<joint axis="0 0 1" name="shoulder_lift" type="hinge" range="-1.7987712336903257 1.7802358370342863" />
|
|
34
|
+
<geom type="mesh" class="visual" pos="0.112485 0.0155 0.0187" quat="0 0.707107 0.707107 -0" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
35
|
+
<geom type="mesh" class="collision" pos="0.112485 0.0155 0.0187" quat="0 0.707107 0.707107 -0" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
36
|
+
<geom type="mesh" class="visual" pos="0.065085 -0.012 0.0182" quat="0 0 1 -0" mesh="so_arm100_08k_116_square" material="so_arm100_08k_116_square_material" />
|
|
37
|
+
<geom type="mesh" class="collision" pos="0.065085 -0.012 0.0182" quat="0 0 1 -0" mesh="so_arm100_08k_116_square" material="so_arm100_08k_116_square_material" />
|
|
38
|
+
<body name="sts3215_03a_4" pos="0.112485 0.028 0" quat="0.707107 -0 -0 -0.707107">
|
|
39
|
+
<joint axis="0 0 1" name="elbow_flex" type="hinge" range="-1.7802358370341442 1.5707963267949685" />
|
|
40
|
+
<geom type="mesh" class="visual" pos="-0.0648499 -0.032 0.0182" quat="0 1 0 0" mesh="so_arm100_08k_mirror" material="so_arm100_08k_mirror_material" />
|
|
41
|
+
<geom type="mesh" class="collision" pos="-0.0648499 -0.032 0.0182" quat="0 1 0 0" mesh="so_arm100_08k_mirror" material="so_arm100_08k_mirror_material" />
|
|
42
|
+
<geom type="mesh" class="visual" pos="-0.1224 0.0052 0.0187" quat="0 0 1 -0" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
43
|
+
<geom type="mesh" class="collision" pos="-0.1224 0.0052 0.0187" quat="0 0 1 -0" mesh="sts3215_03a" material="sts3215_03a_material" />
|
|
44
|
+
<geom type="mesh" class="visual" pos="-0.0648499 -0.032 0.018" quat="0 1 0 -0" mesh="so_arm100_08k_asym_mirror_clip" material="so_arm100_08k_asym_mirror_clip_material" />
|
|
45
|
+
<geom type="mesh" class="collision" pos="-0.0648499 -0.032 0.018" quat="0 1 0 -0" mesh="so_arm100_08k_asym_mirror_clip" material="so_arm100_08k_asym_mirror_clip_material" />
|
|
46
|
+
<geom type="mesh" class="visual" pos="-0.1041 -0.0428 -0.0178" quat="0.707107 -0 0 0.707107" mesh="horn_spacer_7_mm" material="horn_spacer_7_mm_material" />
|
|
47
|
+
<geom type="mesh" class="collision" pos="-0.1041 -0.0428 -0.0178" quat="0.707107 -0 0 0.707107" mesh="horn_spacer_7_mm" material="horn_spacer_7_mm_material" />
|
|
48
|
+
<body name="sts3215_03a_wrist_roll" pos="-0.1349 0.0052 -0.007" quat="1 -0 0 -0">
|
|
49
|
+
<joint axis="0 0 1" name="wrist_flex" type="hinge" range="-3.141592653589787 3.1415926535897993" />
|
|
50
|
+
<geom type="mesh" class="visual" pos="0.010225 0.03125 -0.01775" quat="0.5 0.5 -0.5 0.5" mesh="horn_separator" material="horn_separator_material" />
|
|
51
|
+
<geom type="mesh" class="collision" pos="0.010225 0.03125 -0.01775" quat="0.5 0.5 -0.5 0.5" mesh="horn_separator" material="horn_separator_material" />
|
|
52
|
+
<geom type="mesh" class="visual" pos="-0.008075 -0.00025 -0.01975" quat="0 -0 -0.707107 -0.707107" mesh="sts3215_03a_wrist_roll" material="sts3215_03a_wrist_roll_material" />
|
|
53
|
+
<geom type="mesh" class="collision" pos="-0.008075 -0.00025 -0.01975" quat="0 -0 -0.707107 -0.707107" mesh="sts3215_03a_wrist_roll" material="sts3215_03a_wrist_roll_material" />
|
|
54
|
+
<geom type="mesh" class="visual" pos="-0 0 -0" quat="0 1 0 0" mesh="part_1" material="part_1_material" />
|
|
55
|
+
<geom type="mesh" class="collision" pos="-0 0 -0" quat="0 1 0 0" mesh="part_1" material="part_1_material" />
|
|
56
|
+
<body name="sts3215_03a_wrist_roll_2" pos="-0.020575 0.02045 -0.01975" quat="0.5 0.5 0.5 -0.5">
|
|
57
|
+
<joint axis="0 0 1" name="wrist_yaw" type="hinge" range="-3.141592653589793 3.141592653589793" />
|
|
58
|
+
<geom type="mesh" class="visual" pos="0 0.00025 -0.0298" quat="0.5 0.5 0.5 -0.5" mesh="sts3215_03a_wrist_roll" material="sts3215_03a_wrist_roll_material" />
|
|
59
|
+
<geom type="mesh" class="collision" pos="0 0.00025 -0.0298" quat="0.5 0.5 0.5 -0.5" mesh="sts3215_03a_wrist_roll" material="sts3215_03a_wrist_roll_material" />
|
|
60
|
+
<geom type="mesh" class="visual" pos="0 0 0" quat="0 1 0 0" mesh="part_1__2" material="part_1__2_material" />
|
|
61
|
+
<geom type="mesh" class="collision" pos="0 0 0" quat="0 1 0 0" mesh="part_1__2" material="part_1__2_material" />
|
|
62
|
+
<body name="servo_horn" pos="0 -0.01845 -0.0423" quat="0.707107 0.707107 -0 -0">
|
|
63
|
+
<!-- 0-centered: CAD exports [-2π, 0], which parks home on a limit. -->
|
|
64
|
+
<joint axis="0 0 1" name="wrist_roll" type="hinge" range="-3.141592653589793 3.141592653589793" />
|
|
65
|
+
<geom type="mesh" class="visual" pos="0.002 -0.0308 -0.0108" quat="1 0 0 0" mesh="servo_horn" material="servo_horn_material" />
|
|
66
|
+
<geom type="mesh" class="collision" pos="0.002 -0.0308 -0.0108" quat="1 0 0 0" mesh="servo_horn" material="servo_horn_material" />
|
|
67
|
+
<site group="3" name="flange" pos="0 0 0" quat="1 -0 -0 0" />
|
|
68
|
+
</body>
|
|
69
|
+
</body>
|
|
70
|
+
</body>
|
|
71
|
+
</body>
|
|
72
|
+
</body>
|
|
73
|
+
</body>
|
|
74
|
+
</body>
|
|
75
|
+
</worldbody>
|
|
76
|
+
<asset>
|
|
77
|
+
<mesh file="base_08q__2.stl" />
|
|
78
|
+
<mesh file="sts3215_03a.stl" />
|
|
79
|
+
<mesh file="sts3215_03a_wrist_roll.stl" />
|
|
80
|
+
<mesh file="rotation_pitch_08i.stl" />
|
|
81
|
+
<mesh file="horn_spacer_7_mm.stl" />
|
|
82
|
+
<mesh file="so_arm100_08k_mirror.stl" />
|
|
83
|
+
<mesh file="servo_horn.stl" />
|
|
84
|
+
<mesh file="part_1.stl" />
|
|
85
|
+
<mesh file="so_arm100_08k_asym_mirror_clip.stl" />
|
|
86
|
+
<mesh file="part_1__2.stl" />
|
|
87
|
+
<mesh file="horn_separator.stl" />
|
|
88
|
+
<mesh file="base_08q.stl" />
|
|
89
|
+
<mesh file="so_arm100_08k_116_square.stl" />
|
|
90
|
+
<material name="base_08q_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
91
|
+
<material name="base_08q__2_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
92
|
+
<material name="sts3215_03a_material" rgba="0.4 0.4 0.4 1" />
|
|
93
|
+
<material name="so_arm100_08k_asym_mirror_clip_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
94
|
+
<material name="rotation_pitch_08i_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
95
|
+
<material name="so_arm100_08k_116_square_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
96
|
+
<material name="so_arm100_08k_mirror_material" rgba="0.372549 0.654902 0.239216 1" />
|
|
97
|
+
<material name="horn_spacer_7_mm_material" rgba="0.701961 0.701961 0.701961 1" />
|
|
98
|
+
<material name="horn_separator_material" rgba="0 0 0 1" />
|
|
99
|
+
<material name="sts3215_03a_wrist_roll_material" rgba="0.4 0.4 0.4 1" />
|
|
100
|
+
<material name="part_1_material" rgba="0.329412 0.329412 0.329412 1" />
|
|
101
|
+
<material name="part_1__2_material" rgba="0.329412 0.329412 0.329412 1" />
|
|
102
|
+
<material name="servo_horn_material" rgba="0.615686 0.811765 0.929412 1" />
|
|
103
|
+
</asset>
|
|
104
|
+
<actuator>
|
|
105
|
+
<position class="arm1" name="shoulder_pan" joint="shoulder_pan" inheritrange="1" />
|
|
106
|
+
<position class="arm1" name="shoulder_lift" joint="shoulder_lift" inheritrange="1" />
|
|
107
|
+
<position class="arm1" name="elbow_flex" joint="elbow_flex" inheritrange="1" />
|
|
108
|
+
<position class="arm1" name="wrist_flex" joint="wrist_flex" inheritrange="1" />
|
|
109
|
+
<position class="arm1" name="wrist_yaw" joint="wrist_yaw" inheritrange="1" />
|
|
110
|
+
<position class="arm1" name="wrist_roll" joint="wrist_roll" inheritrange="1" />
|
|
111
|
+
</actuator>
|
|
112
|
+
</mujoco>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"url": "https://cad.onshape.com/documents/d60e2cd05d40533c485d06e9/w/361314ab0f218f78e02b4966/e/cf4fff8f31934d4f2d96a1b1",
|
|
3
|
+
"output_format": "mujoco",
|
|
4
|
+
"output_filename": "arm1_raw",
|
|
5
|
+
"assets_directory": "meshes",
|
|
6
|
+
"robot_name": "arm1",
|
|
7
|
+
"draw_frames": false,
|
|
8
|
+
"no_dynamics": false,
|
|
9
|
+
"joint_properties": {
|
|
10
|
+
"shoulder_pan": {
|
|
11
|
+
"range": true,
|
|
12
|
+
"limits": [
|
|
13
|
+
-2.22899197815522,
|
|
14
|
+
2.081971274270774
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"shoulder_lift": {
|
|
18
|
+
"range": true,
|
|
19
|
+
"limits": [
|
|
20
|
+
-1.7987712336903257,
|
|
21
|
+
1.7802358370342863
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"elbow_flex": {
|
|
25
|
+
"range": true,
|
|
26
|
+
"limits": [
|
|
27
|
+
-1.7802358370341442,
|
|
28
|
+
1.5707963267949685
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"wrist_flex": {
|
|
32
|
+
"range": true,
|
|
33
|
+
"limits": [
|
|
34
|
+
-3.141592653589787,
|
|
35
|
+
3.1415926535897993
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"wrist_yaw": {
|
|
39
|
+
"range": true,
|
|
40
|
+
"limits": [
|
|
41
|
+
-3.141592653589793,
|
|
42
|
+
3.141592653589793
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"wrist_roll": {
|
|
46
|
+
"range": true,
|
|
47
|
+
"limits": [
|
|
48
|
+
-3.141592653589793,
|
|
49
|
+
3.141592653589793
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"solarian": {
|
|
54
|
+
"prefer_config_limits": true,
|
|
55
|
+
"dof_mates": [],
|
|
56
|
+
"base_dof": "shoulder_pan",
|
|
57
|
+
"output_xml": "../arm1.xml",
|
|
58
|
+
"meshdir": "arm1_description/meshes",
|
|
59
|
+
"density": 1400
|
|
60
|
+
}
|
|
61
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_116_square.stl
ADDED
|
Binary file
|
solarian_arm1-0.1.0/solarian_arm_1/assets/arm1_description/meshes/so_arm100_08k_asym_mirror_clip.stl
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Default configuration for Arm1Module.
|
|
2
|
+
#
|
|
3
|
+
# Copied into a project's conf/ directory (e.g. conf/right_arm.yaml).
|
|
4
|
+
# Set actuator_port / servo ids to match the installed hardware. sim_joint
|
|
5
|
+
# names must match the ModuleAttachment prefix used in the robot scene.
|
|
6
|
+
|
|
7
|
+
actuator_port: /dev/ttyACM0
|
|
8
|
+
frequency: 90
|
|
9
|
+
interpolator_type: pose
|
|
10
|
+
drive_waypoints: true
|
|
11
|
+
drive_horizon_multiplier: 2.5
|
|
12
|
+
max_speed: [0.25, 0.6]
|
|
13
|
+
|
|
14
|
+
# Simulated with the plugin MJCF (ARM_MJCF_PATH) attached under the `arm/`
|
|
15
|
+
# prefix, so joints become `arm/shoulder_pan` .. `arm/wrist_roll`.
|
|
16
|
+
# sim_range_* are the MJCF joint limits (radians).
|
|
17
|
+
# Optional per-joint ``model:`` (e.g. sts3215) overrides the module default.
|
|
18
|
+
actuators:
|
|
19
|
+
shoulder_pan:
|
|
20
|
+
id: 1
|
|
21
|
+
port: ${actuator_port}
|
|
22
|
+
mode: range_m100_100
|
|
23
|
+
sim_joint: "arm/shoulder_pan"
|
|
24
|
+
sim_range_min: -2.228991978
|
|
25
|
+
sim_range_max: 2.081971274
|
|
26
|
+
shoulder_lift:
|
|
27
|
+
id: 2
|
|
28
|
+
port: ${actuator_port}
|
|
29
|
+
mode: range_m100_100
|
|
30
|
+
sim_joint: "arm/shoulder_lift"
|
|
31
|
+
sim_range_min: -1.798771234
|
|
32
|
+
sim_range_max: 1.780235837
|
|
33
|
+
elbow_flex:
|
|
34
|
+
id: 3
|
|
35
|
+
port: ${actuator_port}
|
|
36
|
+
mode: range_m100_100
|
|
37
|
+
sim_joint: "arm/elbow_flex"
|
|
38
|
+
sim_range_min: -1.780235837
|
|
39
|
+
sim_range_max: 1.570796327
|
|
40
|
+
wrist_flex:
|
|
41
|
+
id: 4
|
|
42
|
+
port: ${actuator_port}
|
|
43
|
+
mode: range_m100_100
|
|
44
|
+
sim_joint: "arm/wrist_flex"
|
|
45
|
+
sim_range_min: -3.141592654
|
|
46
|
+
sim_range_max: 3.141592654
|
|
47
|
+
wrist_yaw:
|
|
48
|
+
id: 5
|
|
49
|
+
port: ${actuator_port}
|
|
50
|
+
mode: range_m100_100
|
|
51
|
+
sim_joint: "arm/wrist_yaw"
|
|
52
|
+
sim_range_min: -3.141592654
|
|
53
|
+
sim_range_max: 3.141592654
|
|
54
|
+
wrist_roll:
|
|
55
|
+
id: 6
|
|
56
|
+
port: ${actuator_port}
|
|
57
|
+
mode: range_m100_100
|
|
58
|
+
sim_joint: "arm/wrist_roll"
|
|
59
|
+
sim_range_min: -3.141592654
|
|
60
|
+
sim_range_max: 3.141592654
|