You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+59-15
Original file line number
Diff line number
Diff line change
@@ -167,10 +167,10 @@ docker compose run --rm franky-build build-wheels # To build wheels for all sup
167
167
168
168
## Tutorial
169
169
170
-
Franky comes with both a C++ and Python API that differ only regarding real-time capability. We will introduce both languages next to each other. In your C++ project, just include `include <franky/franky.hpp>` and link the library. For Python, just `import franky`. As a first example, only four lines of code are needed for simple robotic motions.
170
+
Franky comes with both a C++ and Python API that differ only regarding real-time capability. We will introduce both languages next to each other. In your C++ project, just include `include <franky.hpp>` and link the library. For Python, just `import franky`. As a first example, only four lines of code are needed for simple robotic motions.
171
171
172
172
```c++
173
-
#include<franky/franky.hpp>
173
+
#include<franky.hpp>
174
174
usingnamespacefranky;
175
175
176
176
// Connect to the robot with the FCI IP address
@@ -482,29 +482,73 @@ In the `franky::Gripper` class, the default gripper force and gripper speed can
482
482
Then, additionally to the libfranka commands, the following helper methods can be used:
483
483
484
484
```c++
485
-
auto gripper = Gripper("172.16.0.2");
485
+
#include<franky.hpp>
486
+
#include<chrono>
487
+
#include<future>
486
488
487
-
// These are the default values
488
-
gripper.gripper_speed = 0.02; // [m/s]
489
-
gripper.gripper_force = 20.0; // [N]
489
+
auto gripper = franky::Gripper("172.16.0.2");
490
490
491
-
// Preshape gripper before grasp, use the given speed
0 commit comments