Skip to content

Commit b4b0b49

Browse files
committed
added lite 6
1 parent 687d345 commit b4b0b49

File tree

22 files changed

+569
-0
lines changed

22 files changed

+569
-0
lines changed

roboticstoolbox/models/URDF/Lite6.py

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+
import roboticstoolbox as rtb
7+
8+
class Lite6(Robot):
9+
"""
10+
Class that imports a Panda URDF model
11+
12+
``Panda()`` is a class which imports a Franka-Emika Panda 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.Panda()
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+
.. codeauthor:: Jesse Haviland
30+
.. sectionauthor:: Peter Corke
31+
"""
32+
33+
def __init__(self):
34+
35+
links, name, urdf_string, urdf_filepath = self.URDF_read(
36+
"ufactory_description/lite6/urdf/lite6.urdf.xacro"
37+
)
38+
39+
super().__init__(
40+
links,
41+
name=name,
42+
manufacturer="Ufactory",
43+
urdf_string=urdf_string,
44+
urdf_filepath=urdf_filepath,
45+
)
46+
47+
48+
self.qdlim = np.array(
49+
[2.1750, 2.1750, 2.1750, 2.1750, 2.6100, 2.6100, 2.6100, 3.0, 3.0]
50+
)
51+
52+
self.qr = np.array([0, -0.3, 0, -2.2, 0, 2.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 = Lite6()
62+
r.qz
63+
T = r.fkine(r.qz)
64+
r.plot(r.qr, backend="swift")
65+
66+
68.2 KB
Binary file not shown.
61.8 KB
Binary file not shown.
41.4 KB
Binary file not shown.
60 KB
Binary file not shown.
35.3 KB
Binary file not shown.
370 KB
Binary file not shown.
345 KB
Binary file not shown.
17.6 KB
Binary file not shown.
22 KB
Binary file not shown.

0 commit comments

Comments
 (0)