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
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,32 @@ colcon build
34
34
35
35
You find examples in forms of demos under the `demos/` folder. The demos show how to use the python and C++ interface for talking to the library and setting up a robot.
36
36
37
+
##### Python examples
38
+
39
+
If you're using nix, you can get into a shell with all required packages available, including the C++-backed python packages
40
+
41
+
```
42
+
nix develop .#python
43
+
```
44
+
45
+
Since the SDK forges raw ethernet frames, you need to run these scripts as root (run it in a shell that has the dependencies installed and PYTHONPATH set):
Note that running within a network-mounted directory (e.g. using NFS) might result in a "Permission denied" error when trying to make python execute the script as root, even when all users have the read permission set.
52
+
53
+
_(LAAS members: this is the case for your home directory when using office computers)_
54
+
55
+
##### C++ examples
56
+
57
+
C++ demos also need to be run as root. Compilation produces binaries named `odri_control_interface_*`. (nix: you can do `nix run .#testbench` or `nix run .#solo12`)
58
+
59
+
Change the Ethernet interface the master board is plugged to by editing the relevant `config_*.yaml` file, then _re-build the binaries_
60
+
61
+
You can get the ethernet interface by runnning `ip a`
0 commit comments