-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alessio Rocchi
committed
Feb 13, 2017
1 parent
735093f
commit e1c1da6
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# pyKDL | ||
A simple python binding to KDL using SWIG, using numpy arrays. | ||
|
||
## Features | ||
An extensive list of features implemented at this time are explained in the following code. | ||
|
||
``` | ||
f = Frame() | ||
f0 = Frame(R,v) | ||
print f | ||
v = Vector() | ||
v0 = Vector() | ||
print v | ||
R = Rotation() | ||
R0 = Rotation() | ||
print R | ||
v1 = v + v0 | ||
v2 = v - v1 | ||
v3 = v1 * v2 | ||
v4 = Vector() | ||
v4.assign(v) | ||
v4 = R * v | ||
R1 = R * R0 | ||
R2 = Rotation() | ||
R2.assign(R) | ||
f1 = Frame() | ||
f1.assign(f0) | ||
v5 = f * v | ||
f2 = f * f0 | ||
f_p = f.p() # reference to position vector in Frame | ||
f_o = f.M() | ||
print f | ||
f_p.assign(Vector(1,2,3)) | ||
print f # frame changed | ||
``` |