-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrobodef.py
More file actions
20 lines (19 loc) · 795 Bytes
/
robodef.py
File metadata and controls
20 lines (19 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from PyKDL import *
from math import pi
segments = [
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotX(pi/2), Vector(0, -.045, .225))),
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotY(-pi/2), Vector(0, 0, .215))),
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotY(pi/2), Vector(.135, 0, 0))),
Segment(Joint(Joint.None),
Frame(Rotation.RotY(-pi/2), Vector(0, 0, .175))),
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotY(-pi/2), Vector(0, 0, .175))),
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotY(pi/2), Vector(.1, 0, 0))),
Segment(Joint(Joint.TransZ),
Frame(Rotation.RotY(pi/2), Vector(.1, 0, 0))),
Segment(Joint(Joint.RotZ),
Frame(Rotation.RotZ(pi/2), Vector(0, 0, .165)))]