@tteja/node-red-dashboard-2-robot-arm 0.3.0
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.
- package/LICENSE +21 -0
- package/README.md +142 -0
- package/docs/ARCHITECTURE.md +51 -0
- package/examples/01-inject-demo.json +133 -0
- package/examples/02-controller-to-robot.json +72 -0
- package/examples/03-rosbridge-live.json +54 -0
- package/examples/04-controller-and-ros2.json +72 -0
- package/examples/05-dashboard2.json +143 -0
- package/lib/normalize.js +146 -0
- package/lib/robot-runtime.js +144 -0
- package/lib/rosbridge.js +210 -0
- package/models/ur5e/LICENSE +33 -0
- package/models/ur5e/README.md +15 -0
- package/models/ur5e/joints.json +12 -0
- package/models/ur5e/meshes/base.stl +0 -0
- package/models/ur5e/meshes/forearm.stl +0 -0
- package/models/ur5e/meshes/shoulder.stl +0 -0
- package/models/ur5e/meshes/upperarm.stl +0 -0
- package/models/ur5e/meshes/wrist1.stl +0 -0
- package/models/ur5e/meshes/wrist2.stl +0 -0
- package/models/ur5e/meshes/wrist3.stl +0 -0
- package/models/ur5e/ur5e.urdf +138 -0
- package/models/ur5e-gripper/LICENSE +33 -0
- package/models/ur5e-gripper/README-ur5e.md +15 -0
- package/models/ur5e-gripper/README.md +6 -0
- package/models/ur5e-gripper/joints.json +13 -0
- package/models/ur5e-gripper/meshes/base.stl +0 -0
- package/models/ur5e-gripper/meshes/forearm.stl +0 -0
- package/models/ur5e-gripper/meshes/shoulder.stl +0 -0
- package/models/ur5e-gripper/meshes/upperarm.stl +0 -0
- package/models/ur5e-gripper/meshes/wrist1.stl +0 -0
- package/models/ur5e-gripper/meshes/wrist2.stl +0 -0
- package/models/ur5e-gripper/meshes/wrist3.stl +0 -0
- package/models/ur5e-gripper/ur5e_gripper.urdf +182 -0
- package/nodes/controller.html +76 -0
- package/nodes/controller.js +237 -0
- package/nodes/robot.html +109 -0
- package/nodes/robot.js +347 -0
- package/nodes/ui-robot-arm.html +82 -0
- package/nodes/ui-robot-arm.js +25 -0
- package/nodes/ui-robot-controller.html +81 -0
- package/nodes/ui-robot-controller.js +25 -0
- package/package.json +97 -0
- package/resources/controller.html +64 -0
- package/resources/controller.js +114 -0
- package/resources/pendant.html +66 -0
- package/resources/pendant.js +129 -0
- package/resources/robot-arm-widgets.umd.js +2 -0
- package/resources/viewer.html +54 -0
- package/resources/viewer.js +195 -0
- package/ui/components/UIRobotArm.vue +63 -0
- package/ui/components/UIRobotController.vue +62 -0
- package/ui/index.js +2 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!--
|
|
3
|
+
UR5e for Electronics Playground (browser).
|
|
4
|
+
Joint origins: UniversalRobots/Universal_Robots_ROS2_Description default_kinematics.yaml
|
|
5
|
+
Mesh offsets: visual_parameters.yaml (official visual DAE to binary STL)
|
|
6
|
+
License: BSD-3-Clause. See LICENSE.
|
|
7
|
+
-->
|
|
8
|
+
<robot name="ur5e">
|
|
9
|
+
<material name="ur_grey"><color rgba="0.7 0.7 0.7 1"/></material>
|
|
10
|
+
<material name="ur_blue"><color rgba="0.25 0.45 0.7 1"/></material>
|
|
11
|
+
|
|
12
|
+
<link name="base_link"/>
|
|
13
|
+
|
|
14
|
+
<link name="base_link_inertia">
|
|
15
|
+
<visual>
|
|
16
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
17
|
+
<geometry><mesh filename="meshes/base.stl"/></geometry>
|
|
18
|
+
<material name="ur_grey"/>
|
|
19
|
+
</visual>
|
|
20
|
+
</link>
|
|
21
|
+
|
|
22
|
+
<joint name="base_link-base_link_inertia" type="fixed">
|
|
23
|
+
<parent link="base_link"/>
|
|
24
|
+
<child link="base_link_inertia"/>
|
|
25
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
26
|
+
</joint>
|
|
27
|
+
|
|
28
|
+
<link name="shoulder_link">
|
|
29
|
+
<visual>
|
|
30
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
31
|
+
<geometry><mesh filename="meshes/shoulder.stl"/></geometry>
|
|
32
|
+
<material name="ur_grey"/>
|
|
33
|
+
</visual>
|
|
34
|
+
</link>
|
|
35
|
+
|
|
36
|
+
<link name="upper_arm_link">
|
|
37
|
+
<visual>
|
|
38
|
+
<origin xyz="0 0 0.138" rpy="1.5707963267948966 0 -1.5707963267948966"/>
|
|
39
|
+
<geometry><mesh filename="meshes/upperarm.stl"/></geometry>
|
|
40
|
+
<material name="ur_blue"/>
|
|
41
|
+
</visual>
|
|
42
|
+
</link>
|
|
43
|
+
|
|
44
|
+
<link name="forearm_link">
|
|
45
|
+
<visual>
|
|
46
|
+
<origin xyz="0 0 0.007" rpy="1.5707963267948966 0 -1.5707963267948966"/>
|
|
47
|
+
<geometry><mesh filename="meshes/forearm.stl"/></geometry>
|
|
48
|
+
<material name="ur_blue"/>
|
|
49
|
+
</visual>
|
|
50
|
+
</link>
|
|
51
|
+
|
|
52
|
+
<link name="wrist_1_link">
|
|
53
|
+
<visual>
|
|
54
|
+
<origin xyz="0 0 -0.127" rpy="1.5707963267948966 0 0"/>
|
|
55
|
+
<geometry><mesh filename="meshes/wrist1.stl"/></geometry>
|
|
56
|
+
<material name="ur_grey"/>
|
|
57
|
+
</visual>
|
|
58
|
+
</link>
|
|
59
|
+
|
|
60
|
+
<link name="wrist_2_link">
|
|
61
|
+
<visual>
|
|
62
|
+
<origin xyz="0 0 -0.0997" rpy="0 0 0"/>
|
|
63
|
+
<geometry><mesh filename="meshes/wrist2.stl"/></geometry>
|
|
64
|
+
<material name="ur_grey"/>
|
|
65
|
+
</visual>
|
|
66
|
+
</link>
|
|
67
|
+
|
|
68
|
+
<link name="wrist_3_link">
|
|
69
|
+
<visual>
|
|
70
|
+
<origin xyz="0 -0.0005 -0.0989" rpy="1.5707963267948966 0 0"/>
|
|
71
|
+
<geometry><mesh filename="meshes/wrist3.stl"/></geometry>
|
|
72
|
+
<material name="ur_blue"/>
|
|
73
|
+
</visual>
|
|
74
|
+
</link>
|
|
75
|
+
|
|
76
|
+
<link name="flange"/>
|
|
77
|
+
<link name="tool0"/>
|
|
78
|
+
|
|
79
|
+
<joint name="shoulder_pan_joint" type="revolute">
|
|
80
|
+
<parent link="base_link_inertia"/>
|
|
81
|
+
<child link="shoulder_link"/>
|
|
82
|
+
<origin xyz="0 0 0.1625" rpy="0 0 0"/>
|
|
83
|
+
<axis xyz="0 0 1"/>
|
|
84
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="150" velocity="3.14"/>
|
|
85
|
+
</joint>
|
|
86
|
+
|
|
87
|
+
<joint name="shoulder_lift_joint" type="revolute">
|
|
88
|
+
<parent link="shoulder_link"/>
|
|
89
|
+
<child link="upper_arm_link"/>
|
|
90
|
+
<origin xyz="0 0 0" rpy="1.570796327 0 0"/>
|
|
91
|
+
<axis xyz="0 0 1"/>
|
|
92
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="150" velocity="3.14"/>
|
|
93
|
+
</joint>
|
|
94
|
+
|
|
95
|
+
<joint name="elbow_joint" type="revolute">
|
|
96
|
+
<parent link="upper_arm_link"/>
|
|
97
|
+
<child link="forearm_link"/>
|
|
98
|
+
<origin xyz="-0.425 0 0" rpy="0 0 0"/>
|
|
99
|
+
<axis xyz="0 0 1"/>
|
|
100
|
+
<limit lower="-3.14159265359" upper="3.14159265359" effort="150" velocity="3.14"/>
|
|
101
|
+
</joint>
|
|
102
|
+
|
|
103
|
+
<joint name="wrist_1_joint" type="revolute">
|
|
104
|
+
<parent link="forearm_link"/>
|
|
105
|
+
<child link="wrist_1_link"/>
|
|
106
|
+
<origin xyz="-0.3922 0 0.1333" rpy="0 0 0"/>
|
|
107
|
+
<axis xyz="0 0 1"/>
|
|
108
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
109
|
+
</joint>
|
|
110
|
+
|
|
111
|
+
<joint name="wrist_2_joint" type="revolute">
|
|
112
|
+
<parent link="wrist_1_link"/>
|
|
113
|
+
<child link="wrist_2_link"/>
|
|
114
|
+
<origin xyz="0 -0.0997 0" rpy="1.570796327 0 0"/>
|
|
115
|
+
<axis xyz="0 0 1"/>
|
|
116
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
117
|
+
</joint>
|
|
118
|
+
|
|
119
|
+
<joint name="wrist_3_joint" type="revolute">
|
|
120
|
+
<parent link="wrist_2_link"/>
|
|
121
|
+
<child link="wrist_3_link"/>
|
|
122
|
+
<origin xyz="0 0.0996 0" rpy="1.570796326589793 3.141592653589793 3.141592653589793"/>
|
|
123
|
+
<axis xyz="0 0 1"/>
|
|
124
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
125
|
+
</joint>
|
|
126
|
+
|
|
127
|
+
<joint name="wrist_3_link-flange" type="fixed">
|
|
128
|
+
<parent link="wrist_3_link"/>
|
|
129
|
+
<child link="flange"/>
|
|
130
|
+
<origin xyz="0 0 0" rpy="0 -1.5707963267948966 -1.5707963267948966"/>
|
|
131
|
+
</joint>
|
|
132
|
+
|
|
133
|
+
<joint name="flange-tool0" type="fixed">
|
|
134
|
+
<parent link="flange"/>
|
|
135
|
+
<child link="tool0"/>
|
|
136
|
+
<origin xyz="0 0 0" rpy="1.5707963267948966 0 1.5707963267948966"/>
|
|
137
|
+
</joint>
|
|
138
|
+
</robot>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Copyright (c) Universal Robots A/S and contributors.
|
|
2
|
+
Source: UniversalRobots/Universal_Robots_ROS2_Description (rolling)
|
|
3
|
+
meshes/ur5e/collision/*.stl — converted to ASCII STL for GitHub Pages.
|
|
4
|
+
|
|
5
|
+
BSD 3-Clause License
|
|
6
|
+
|
|
7
|
+
Redistribution and use in source and binary forms, with or without
|
|
8
|
+
modification, are permitted provided that the following conditions are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
11
|
+
list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
14
|
+
this list of conditions and the following disclaimer in the documentation
|
|
15
|
+
and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
18
|
+
contributors may be used to endorse or promote products derived from
|
|
19
|
+
this software without specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
22
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
23
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
24
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
25
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
26
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
27
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
28
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
29
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
|
|
32
|
+
Note: UR5e meshes are BSD-3-Clause. The separate "Graphical Documentation"
|
|
33
|
+
terms that apply to UR20/UR30/etc. do NOT apply to UR5e.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# UR5e (vendored)
|
|
2
|
+
|
|
3
|
+
Browser-ready URDF + **visual** binary STL meshes for the Electronics Playground 6-DoF arm lab.
|
|
4
|
+
|
|
5
|
+
| Item | Value |
|
|
6
|
+
|------|--------|
|
|
7
|
+
| Model | Universal Robots UR5e |
|
|
8
|
+
| Source | [UniversalRobots/Universal_Robots_ROS2_Description](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description) (rolling) |
|
|
9
|
+
| License | **BSD-3-Clause** (see `LICENSE`) |
|
|
10
|
+
| Meshes | Official **visual** DAE -> binary STL (thousands of tris/link; not collision proxies) |
|
|
11
|
+
| Joints | `shoulder_pan_joint` ... `wrist_3_joint` (same names as ros2_control) |
|
|
12
|
+
|
|
13
|
+
Regenerate locally: `npm run meshes` (needs `pip install trimesh pycollada numpy scipy fast_simplification`).
|
|
14
|
+
|
|
15
|
+
Kinematics match `config/ur5e/default_kinematics.yaml`. Visual offsets match `config/ur5e/visual_parameters.yaml`.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# UR5e + simple gripper
|
|
2
|
+
|
|
3
|
+
Vendored **UR5e** visual STL meshes (BSD-3-Clause, Universal Robots) plus a **primitive** 2-finger gripper fixed on `tool0`.
|
|
4
|
+
|
|
5
|
+
- Arm meshes / kinematics: see `LICENSE` and `README-ur5e.md` (from UniversalRobots/Universal_Robots_ROS2_Description).
|
|
6
|
+
- Gripper geometry is approximate (box primitives) for teach-pendant demos only — not a Robotiq CAD model.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ur5e-gripper",
|
|
3
|
+
"urdf": "ur5e_gripper.urdf",
|
|
4
|
+
"joints": [
|
|
5
|
+
{ "name": "shoulder_pan_joint", "label": "Base", "min": -6.2832, "max": 6.2832, "home": 0 },
|
|
6
|
+
{ "name": "shoulder_lift_joint", "label": "Shoulder", "min": -6.2832, "max": 6.2832, "home": -1.57 },
|
|
7
|
+
{ "name": "elbow_joint", "label": "Elbow", "min": -3.1416, "max": 3.1416, "home": 1.57 },
|
|
8
|
+
{ "name": "wrist_1_joint", "label": "Wrist 1", "min": -6.2832, "max": 6.2832, "home": -1.57 },
|
|
9
|
+
{ "name": "wrist_2_joint", "label": "Wrist 2", "min": -6.2832, "max": 6.2832, "home": -1.57 },
|
|
10
|
+
{ "name": "wrist_3_joint", "label": "Wrist 3", "min": -6.2832, "max": 6.2832, "home": 0 },
|
|
11
|
+
{ "name": "finger_joint", "label": "Gripper", "min": 0, "max": 0.04, "home": 0, "unit": "m" }
|
|
12
|
+
]
|
|
13
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!--
|
|
3
|
+
UR5e for Electronics Playground (browser).
|
|
4
|
+
Joint origins: UniversalRobots/Universal_Robots_ROS2_Description default_kinematics.yaml
|
|
5
|
+
Mesh offsets: visual_parameters.yaml (official visual DAE to binary STL)
|
|
6
|
+
License: BSD-3-Clause. See LICENSE.
|
|
7
|
+
-->
|
|
8
|
+
<robot name="ur5e_gripper">
|
|
9
|
+
<material name="ur_grey"><color rgba="0.7 0.7 0.7 1"/></material>
|
|
10
|
+
<material name="ur_blue"><color rgba="0.25 0.45 0.7 1"/></material>
|
|
11
|
+
|
|
12
|
+
<link name="base_link"/>
|
|
13
|
+
|
|
14
|
+
<link name="base_link_inertia">
|
|
15
|
+
<visual>
|
|
16
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
17
|
+
<geometry><mesh filename="meshes/base.stl"/></geometry>
|
|
18
|
+
<material name="ur_grey"/>
|
|
19
|
+
</visual>
|
|
20
|
+
</link>
|
|
21
|
+
|
|
22
|
+
<joint name="base_link-base_link_inertia" type="fixed">
|
|
23
|
+
<parent link="base_link"/>
|
|
24
|
+
<child link="base_link_inertia"/>
|
|
25
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
26
|
+
</joint>
|
|
27
|
+
|
|
28
|
+
<link name="shoulder_link">
|
|
29
|
+
<visual>
|
|
30
|
+
<origin xyz="0 0 0" rpy="0 0 3.141592653589793"/>
|
|
31
|
+
<geometry><mesh filename="meshes/shoulder.stl"/></geometry>
|
|
32
|
+
<material name="ur_grey"/>
|
|
33
|
+
</visual>
|
|
34
|
+
</link>
|
|
35
|
+
|
|
36
|
+
<link name="upper_arm_link">
|
|
37
|
+
<visual>
|
|
38
|
+
<origin xyz="0 0 0.138" rpy="1.5707963267948966 0 -1.5707963267948966"/>
|
|
39
|
+
<geometry><mesh filename="meshes/upperarm.stl"/></geometry>
|
|
40
|
+
<material name="ur_blue"/>
|
|
41
|
+
</visual>
|
|
42
|
+
</link>
|
|
43
|
+
|
|
44
|
+
<link name="forearm_link">
|
|
45
|
+
<visual>
|
|
46
|
+
<origin xyz="0 0 0.007" rpy="1.5707963267948966 0 -1.5707963267948966"/>
|
|
47
|
+
<geometry><mesh filename="meshes/forearm.stl"/></geometry>
|
|
48
|
+
<material name="ur_blue"/>
|
|
49
|
+
</visual>
|
|
50
|
+
</link>
|
|
51
|
+
|
|
52
|
+
<link name="wrist_1_link">
|
|
53
|
+
<visual>
|
|
54
|
+
<origin xyz="0 0 -0.127" rpy="1.5707963267948966 0 0"/>
|
|
55
|
+
<geometry><mesh filename="meshes/wrist1.stl"/></geometry>
|
|
56
|
+
<material name="ur_grey"/>
|
|
57
|
+
</visual>
|
|
58
|
+
</link>
|
|
59
|
+
|
|
60
|
+
<link name="wrist_2_link">
|
|
61
|
+
<visual>
|
|
62
|
+
<origin xyz="0 0 -0.0997" rpy="0 0 0"/>
|
|
63
|
+
<geometry><mesh filename="meshes/wrist2.stl"/></geometry>
|
|
64
|
+
<material name="ur_grey"/>
|
|
65
|
+
</visual>
|
|
66
|
+
</link>
|
|
67
|
+
|
|
68
|
+
<link name="wrist_3_link">
|
|
69
|
+
<visual>
|
|
70
|
+
<origin xyz="0 -0.0005 -0.0989" rpy="1.5707963267948966 0 0"/>
|
|
71
|
+
<geometry><mesh filename="meshes/wrist3.stl"/></geometry>
|
|
72
|
+
<material name="ur_blue"/>
|
|
73
|
+
</visual>
|
|
74
|
+
</link>
|
|
75
|
+
|
|
76
|
+
<link name="flange"/>
|
|
77
|
+
<link name="tool0"/>
|
|
78
|
+
|
|
79
|
+
<joint name="shoulder_pan_joint" type="revolute">
|
|
80
|
+
<parent link="base_link_inertia"/>
|
|
81
|
+
<child link="shoulder_link"/>
|
|
82
|
+
<origin xyz="0 0 0.1625" rpy="0 0 0"/>
|
|
83
|
+
<axis xyz="0 0 1"/>
|
|
84
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="150" velocity="3.14"/>
|
|
85
|
+
</joint>
|
|
86
|
+
|
|
87
|
+
<joint name="shoulder_lift_joint" type="revolute">
|
|
88
|
+
<parent link="shoulder_link"/>
|
|
89
|
+
<child link="upper_arm_link"/>
|
|
90
|
+
<origin xyz="0 0 0" rpy="1.570796327 0 0"/>
|
|
91
|
+
<axis xyz="0 0 1"/>
|
|
92
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="150" velocity="3.14"/>
|
|
93
|
+
</joint>
|
|
94
|
+
|
|
95
|
+
<joint name="elbow_joint" type="revolute">
|
|
96
|
+
<parent link="upper_arm_link"/>
|
|
97
|
+
<child link="forearm_link"/>
|
|
98
|
+
<origin xyz="-0.425 0 0" rpy="0 0 0"/>
|
|
99
|
+
<axis xyz="0 0 1"/>
|
|
100
|
+
<limit lower="-3.14159265359" upper="3.14159265359" effort="150" velocity="3.14"/>
|
|
101
|
+
</joint>
|
|
102
|
+
|
|
103
|
+
<joint name="wrist_1_joint" type="revolute">
|
|
104
|
+
<parent link="forearm_link"/>
|
|
105
|
+
<child link="wrist_1_link"/>
|
|
106
|
+
<origin xyz="-0.3922 0 0.1333" rpy="0 0 0"/>
|
|
107
|
+
<axis xyz="0 0 1"/>
|
|
108
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
109
|
+
</joint>
|
|
110
|
+
|
|
111
|
+
<joint name="wrist_2_joint" type="revolute">
|
|
112
|
+
<parent link="wrist_1_link"/>
|
|
113
|
+
<child link="wrist_2_link"/>
|
|
114
|
+
<origin xyz="0 -0.0997 0" rpy="1.570796327 0 0"/>
|
|
115
|
+
<axis xyz="0 0 1"/>
|
|
116
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
117
|
+
</joint>
|
|
118
|
+
|
|
119
|
+
<joint name="wrist_3_joint" type="revolute">
|
|
120
|
+
<parent link="wrist_2_link"/>
|
|
121
|
+
<child link="wrist_3_link"/>
|
|
122
|
+
<origin xyz="0 0.0996 0" rpy="1.570796326589793 3.141592653589793 3.141592653589793"/>
|
|
123
|
+
<axis xyz="0 0 1"/>
|
|
124
|
+
<limit lower="-6.28318530718" upper="6.28318530718" effort="28" velocity="3.14"/>
|
|
125
|
+
</joint>
|
|
126
|
+
|
|
127
|
+
<joint name="wrist_3_link-flange" type="fixed">
|
|
128
|
+
<parent link="wrist_3_link"/>
|
|
129
|
+
<child link="flange"/>
|
|
130
|
+
<origin xyz="0 0 0" rpy="0 -1.5707963267948966 -1.5707963267948966"/>
|
|
131
|
+
</joint>
|
|
132
|
+
|
|
133
|
+
<joint name="flange-tool0" type="fixed">
|
|
134
|
+
<parent link="flange"/>
|
|
135
|
+
<child link="tool0"/>
|
|
136
|
+
<origin xyz="0 0 0" rpy="1.5707963267948966 0 1.5707963267948966"/>
|
|
137
|
+
</joint>
|
|
138
|
+
|
|
139
|
+
<!-- Simple flange-mounted 2-finger gripper (primitives, origins on tool0) -->
|
|
140
|
+
<link name="gripper_base_link">
|
|
141
|
+
<visual>
|
|
142
|
+
<origin xyz="0 0 0.025" rpy="0 0 0"/>
|
|
143
|
+
<geometry><box size="0.08 0.08 0.05"/></geometry>
|
|
144
|
+
<material name="gripper_black"><color rgba="0.12 0.12 0.12 1"/></material>
|
|
145
|
+
</visual>
|
|
146
|
+
</link>
|
|
147
|
+
<link name="finger_left_link">
|
|
148
|
+
<visual>
|
|
149
|
+
<origin xyz="0 0.01 0.03" rpy="0 0 0"/>
|
|
150
|
+
<geometry><box size="0.015 0.02 0.06"/></geometry>
|
|
151
|
+
<material name="finger"><color rgba="0.85 0.65 0.15 1"/></material>
|
|
152
|
+
</visual>
|
|
153
|
+
</link>
|
|
154
|
+
<link name="finger_right_link">
|
|
155
|
+
<visual>
|
|
156
|
+
<origin xyz="0 -0.01 0.03" rpy="0 0 0"/>
|
|
157
|
+
<geometry><box size="0.015 0.02 0.06"/></geometry>
|
|
158
|
+
<material name="finger2"><color rgba="0.85 0.65 0.15 1"/></material>
|
|
159
|
+
</visual>
|
|
160
|
+
</link>
|
|
161
|
+
|
|
162
|
+
<joint name="gripper_fixed" type="fixed">
|
|
163
|
+
<parent link="tool0"/>
|
|
164
|
+
<child link="gripper_base_link"/>
|
|
165
|
+
<origin xyz="0 0 0" rpy="0 0 0"/>
|
|
166
|
+
</joint>
|
|
167
|
+
<joint name="finger_joint" type="prismatic">
|
|
168
|
+
<parent link="gripper_base_link"/>
|
|
169
|
+
<child link="finger_left_link"/>
|
|
170
|
+
<origin xyz="0 0.02 0.05" rpy="0 0 0"/>
|
|
171
|
+
<axis xyz="0 1 0"/>
|
|
172
|
+
<limit lower="0.0" upper="0.04" effort="20" velocity="0.1"/>
|
|
173
|
+
</joint>
|
|
174
|
+
<joint name="finger_joint_right" type="prismatic">
|
|
175
|
+
<parent link="gripper_base_link"/>
|
|
176
|
+
<child link="finger_right_link"/>
|
|
177
|
+
<origin xyz="0 -0.02 0.05" rpy="0 0 0"/>
|
|
178
|
+
<axis xyz="0 -1 0"/>
|
|
179
|
+
<limit lower="0.0" upper="0.04" effort="20" velocity="0.1"/>
|
|
180
|
+
</joint>
|
|
181
|
+
|
|
182
|
+
</robot>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
RED.nodes.registerType('robot-arm-controller', {
|
|
3
|
+
category: 'robotics',
|
|
4
|
+
color: '#5B8C5A',
|
|
5
|
+
defaults: {
|
|
6
|
+
name: { value: '' },
|
|
7
|
+
robotTag: { value: 'robot' },
|
|
8
|
+
modelPreset: { value: 'ur5e' },
|
|
9
|
+
jointList: { value: '' },
|
|
10
|
+
unit: { value: 'rad' },
|
|
11
|
+
stepSize: { value: 0.01 }
|
|
12
|
+
},
|
|
13
|
+
inputs: 1,
|
|
14
|
+
outputs: 1,
|
|
15
|
+
icon: 'font-awesome/fa-sliders',
|
|
16
|
+
label: function () {
|
|
17
|
+
return this.name || 'robot-arm-controller';
|
|
18
|
+
},
|
|
19
|
+
labelStyle: function () {
|
|
20
|
+
return this.name ? 'node_label_italic' : '';
|
|
21
|
+
},
|
|
22
|
+
paletteLabel: 'robot-arm-controller'
|
|
23
|
+
});
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<script type="text/html" data-template-name="robot-arm-controller">
|
|
27
|
+
<div class="form-row">
|
|
28
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
29
|
+
<input type="text" id="node-input-name" placeholder="Name">
|
|
30
|
+
</div>
|
|
31
|
+
<div class="form-row">
|
|
32
|
+
<label for="node-input-robotTag"><i class="fa fa-robot"></i> Robot tag</label>
|
|
33
|
+
<input type="text" id="node-input-robotTag" placeholder="robot">
|
|
34
|
+
</div>
|
|
35
|
+
<div class="form-row">
|
|
36
|
+
<label for="node-input-modelPreset"><i class="fa fa-cube"></i> Preset</label>
|
|
37
|
+
<select id="node-input-modelPreset">
|
|
38
|
+
<option value="ur5e">UR5e (STL meshes)</option>
|
|
39
|
+
<option value="ur5e-gripper">UR5e + simple gripper</option>
|
|
40
|
+
</select>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="form-row">
|
|
43
|
+
<label for="node-input-jointList"><i class="fa fa-list"></i> Joints</label>
|
|
44
|
+
<input type="text" id="node-input-jointList" placeholder="blank = inherit from preset">
|
|
45
|
+
</div>
|
|
46
|
+
<div class="form-row">
|
|
47
|
+
<label for="node-input-unit"><i class="fa fa-ruler"></i> Unit</label>
|
|
48
|
+
<select id="node-input-unit">
|
|
49
|
+
<option value="rad">radians</option>
|
|
50
|
+
<option value="deg">degrees</option>
|
|
51
|
+
</select>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-row">
|
|
54
|
+
<label for="node-input-stepSize"><i class="fa fa-arrows-h"></i> Step</label>
|
|
55
|
+
<input type="number" id="node-input-stepSize" step="any" placeholder="0.01">
|
|
56
|
+
</div>
|
|
57
|
+
<div class="form-tips">
|
|
58
|
+
After deploy, open the teach pendant at the URL on the node status
|
|
59
|
+
(<code>/robot-arm/controller/<node-id></code>). Wire output → <b>robot-arm</b> input.
|
|
60
|
+
</div>
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<script type="text/html" data-help-name="robot-arm-controller">
|
|
64
|
+
<p>Teach-pendant controller: joint sliders, Home, Freeze (soft e-stop), Arm/Disarm manual. Outputs canonical joint commands for the <b>robot-arm</b> node.</p>
|
|
65
|
+
<h3>Outputs</h3>
|
|
66
|
+
<dl class="message-properties">
|
|
67
|
+
<dt>payload <span class="property-type">object</span></dt>
|
|
68
|
+
<dd><code>{ robot, joints, unit, source: "pendant", manualArmed, freeze, ts }</code></dd>
|
|
69
|
+
</dl>
|
|
70
|
+
<h3>UI</h3>
|
|
71
|
+
<p>HTTP page at <code>/robot-arm/controller/<id></code>. Rate-limited slider emits (~20 Hz).</p>
|
|
72
|
+
<h3>Safety</h3>
|
|
73
|
+
<p>Freeze is a <b>soft UI stop</b> only — not a safety-rated e-stop. NOT SIL.</p>
|
|
74
|
+
<h3>More</h3>
|
|
75
|
+
<p><a href="https://github.com/t-teja/node-red-contrib-robot-arm#readme" target="_blank">Usage guide on GitHub</a></p>
|
|
76
|
+
</script>
|