Skip to content

Commit 2248e1d

Browse files
committed
add mycobot_280_pi
1 parent f410b4d commit 2248e1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+213485
-95
lines changed

roboticstoolbox/models/URDF/Lite6.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Lite6(Robot):
99
"""
1010
Class that imports a Panda URDF model
1111
12-
``Panda()`` is a class which imports a Franka-Emika Panda robot definition
12+
``Lite6()`` is a class which imports a u-factory lite6 robot definition
1313
from a URDF file. The model describes its kinematic and graphical
1414
characteristics.
1515
@@ -26,8 +26,6 @@ class Lite6(Robot):
2626
- qs, arm is stretched out in the x-direction
2727
- qn, arm is at a nominal non-singular configuration
2828
29-
.. codeauthor:: Jesse Haviland
30-
.. sectionauthor:: Peter Corke
3129
"""
3230

3331
def __init__(self):

roboticstoolbox/models/URDF/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from roboticstoolbox.models.URDF.Valkyrie import Valkyrie
2525
from roboticstoolbox.models.URDF.AL5D import AL5D
2626
from roboticstoolbox.models.URDF.Lite6 import Lite6
27+
from roboticstoolbox.models.URDF.mycobot280 import mycobot280
2728

2829
__all__ = [
2930
"Panda",
@@ -51,5 +52,6 @@
5152
"FetchCamera",
5253
"Valkyrie",
5354
"AL5D",
54-
"Lite6"
55+
"Lite6",
56+
"mycobot280",
5557
]
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/usr/bin/env python
2+
3+
import numpy as np
4+
from roboticstoolbox.robot.Robot import Robot
5+
from spatialmath import SE3
6+
7+
8+
class mycobot280(Robot):
9+
"""
10+
Class that imports a mycobot_280_pi URDF model
11+
12+
``mycobot280()`` is a class which imports a mycobot_280_pi robot definition
13+
from a URDF file. The model describes its kinematic and graphical
14+
characteristics.
15+
16+
.. runblock:: pycon
17+
18+
>>> import roboticstoolbox as rtb
19+
>>> robot = rtb.models.URDF.mycobot280()
20+
>>> print(robot)
21+
22+
Defined joint configurations are:
23+
24+
- qz, zero joint angle configuration, 'L' shaped configuration
25+
- qr, vertical 'READY' configuration
26+
- qs, arm is stretched out in the x-direction
27+
- qn, arm is at a nominal non-singular configuration
28+
29+
"""
30+
31+
def __init__(self):
32+
33+
links, name, urdf_string, urdf_filepath = self.URDF_read(
34+
"elephant_robotics/mycobot_280_pi/urdf/mycobot_280_pi.urdf"
35+
)
36+
37+
super().__init__(
38+
links,
39+
name=name,
40+
manufacturer="elephant_robotics",
41+
gripper_links=links[7],
42+
urdf_string=urdf_string,
43+
urdf_filepath=urdf_filepath,
44+
)
45+
46+
self.grippers[0].tool = SE3(0, 0, 0)
47+
48+
self.qdlim = np.array(
49+
[np.pi, np.pi, np.pi, np.pi, np.pi, np.pi]
50+
)
51+
52+
self.qr = np.array([-0.3, 0, -2.2, 0, 2.0, 0])
53+
self.qz = np.zeros(6)
54+
55+
self.addconfiguration("qr", self.qr)
56+
self.addconfiguration("qz", self.qz)
57+
58+
59+
if __name__ == "__main__": # pragma nocover
60+
61+
r = mycobot280()
62+
r.qz
63+
T = r.fkine(r.qz)
64+
r.plot(r.qr, backend="swift")
65+
66+

rtb-data/rtbdata/xacro/elephant_robotics/mycobot_280_pi/meshes/collision/G_base.dae

Lines changed: 260 additions & 0 deletions
Large diffs are not rendered by default.
2.7 MB

rtb-data/rtbdata/xacro/elephant_robotics/mycobot_280_pi/meshes/collision/camera_flange.dae

Lines changed: 308 additions & 0 deletions
Large diffs are not rendered by default.
93.8 KB
4.56 MB

rtb-data/rtbdata/xacro/elephant_robotics/mycobot_280_pi/meshes/collision/joint1_pi.dae

Lines changed: 82371 additions & 0 deletions
Large diffs are not rendered by default.

rtb-data/rtbdata/xacro/elephant_robotics/mycobot_280_pi/meshes/collision/joint2.dae

Lines changed: 123 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)