Skip to content

Commit e55b83e

Browse files
author
Tim Schneider
committed
Removed kinematics example as it is broken
1 parent c13225a commit e55b83e

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

README.md

-28
Original file line numberDiff line numberDiff line change
@@ -408,34 +408,6 @@ if (is_grasping) {
408408
The Python API is straight-forward for the Gripper class.
409409

410410

411-
### Kinematics
412-
413-
Franky includes a rudimentary, non-realtime-capable forward and inverse kinematics.
414-
415-
```python
416-
from franky import Kinematics, NullSpaceHandling, Affine
417-
418-
# Some initial joint configuration
419-
q = [-1.45549, 1.15401, 1.50061, -2.30909, -1.3141, 1.9391, 0.02815]
420-
421-
# Calculate the forward kinematics
422-
x = Kinematics.forward(q)
423-
print(f"Effector position: {x}")
424-
425-
# Define new target position
426-
x_new = Affine([0.1, 0.0, 0.0]) * x
427-
428-
# Franka has 7 DoFs, so what to do with the remaining Null space?
429-
null_space = NullSpaceHandling(2, 1.4) # Set elbow joint to 1.4
430-
431-
# Inverse kinematic with target, initial joint angles, and Null space configuration
432-
q_new = Kinematics.inverse(x_new.vector(), q, null_space)
433-
434-
print(f"New position: {x_new}")
435-
print(f"New joints: {q_new}")
436-
```
437-
438-
439411
## Documentation
440412

441413
An auto-generated documentation can be found at [https://timschneider42.github.io/franky/](https://timschneider42.github.io/franky/).

0 commit comments

Comments
 (0)