8000 Added xarm7 support, untested yet · olamarre/robotics-toolbox-python@b8ac9d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8ac9d4

Browse files
committed
Added xarm7 support, untested yet
1 parent 4cf4778 commit b8ac9d4

File tree

11 files changed

+543
-0
lines changed

11 files changed

+543
-0
lines changed

roboticstoolbox/models/URDF/xarm7.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env python3
2+
3+
import os
4+
import rospkg
5+
import numpy as np
6+
from roboticstoolbox.robot.ERobot import ERobot
7+
8+
9+
class xarm7(ERobot):
10+
"""
11+
Class that imports a UR10 URDF model
12+
``UR3()`` is a class which imports a Universal Robotics UR310 robot
13+
definition from a URDF file. The model describes its kinematic and
14+
graphical characteristics.
15+
.. runblock:: pycon
16+
>>> import roboticstoolbox as rtb
17+
>>> robot = rtb.models.URDF.UR10()
18+
>>> print(robot)
19+
Defined joint configurations are:
20+
- qz, zero joint angle configuration, 'L' shaped configuration
21+
- qr, vertical 'READY' configuration
22+
.. codeauthor:: Jesse Haviland
23+
.. sectionauthor:: Peter Corke
24+
"""
25+
26+
def __init__(self):
27+
28+
links, name, urdf_string, urdf_filepath = self.URDF_read(
29+
"xarm_description/urdf/xarm7.urdf.xacro"
30+
)
31+
32+
super().__init__(
33+
links,
34+
name=name.upper(),
35+
manufacturer="UFACTORY",
36+
urdf_string=urdf_string,
37+
urdf_filepath=urdf_filepath,
38+
)
39+
40+
self.addconfiguration("qz", np.array([0, 0, 0, 0, 0, 0, 0]))
41+
# self.addconfiguration("qr", np.array([np.pi, 0, 0, 0, np.pi / 2, 0]))
< 10000 /code>
42+
43+
44+
if __name__ == "__main__":
45+
print(f"hello")
46+
47+
# print(__file__)
48+
robot = xarm7()
49+
print(robot)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
0