Skip to content

Commit 024b17f

Browse files
author
CVH95
committed
Control loop for forward walking
1 parent 30055b5 commit 024b17f

18 files changed

+485
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The repo contains several directories and files:
1818
- **SO2:** C++ implementation of a class that defines an SO2 Central Pattern Generator network (L8 - Dynamic Computation and Muscle Model).
1919
- **TransferFuntion:** C++ implementation of a class with mathematical transfer functions commonly used in artificial neurons.
2020
- **VRN:** C++ implementation of a class to decine Velocity Reduction Networks (L9 - Modular Neural Control).
21-
- **src:** Contains tests for the above projects.
21+
- **tests:** Contains tests for the above projects.
2222

2323

2424
### 1.2. Modular Neural Control
357 KB
Binary file not shown.

docs/Readme.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Connecting to LocoKit controller from Linux
2+
3+
### Connect to ad-hoc network (linux)
4+
5+
- First, build up the ad-hoc mode to connect to the controller.
6+
7+
```sh
8+
sudo iwconfig wlan0 mode ad-hoc essid LocoKitController01
9+
sudo ifconfig wlan0 up
10+
sudo ip route add 192.168.2.2 dev wlan0
11+
sudo dhclient wlan0
12+
13+
```
14+
15+
### Setup ad-hoc network on LocoKit controller
16+
- Add interface to /etc/network/interfaces:
17+
18+
```sh
19+
auto wlan0
20+
iface wlan0 inet static
21+
address 192.168.2.2
22+
netmask 255.255.255.0
23+
wireless-mode ad-hoc
24+
wireless-essid LocoKitController<#>
25+
```
26+
27+
- Reboot LokoKit controller
28+
29+
### Setup dhcp server on LocoKit controller
30+
31+
- Create configuration file /etc/udhcpd.conf
32+
33+
```sh
34+
start 192.168.2.3
35+
end 192.168.2.10
36+
interface wlan0
37+
max_leases 8
38+
```
39+
40+
- Create an empty leases file /var/lib/misc/udhcpd.leases
41+
- Create script etc/init.d/locodhcp.sh
42+
43+
```sh
44+
#!/bin/sh
45+
(udhcpd /etc/udhcpd.conf)&
46+
```
47+
48+
- Run `update-rc.d locodhcp.sh defaults 5`
49+
- Reboot
217 KB
Loading
221 KB
Loading
232 KB
Loading
201 KB
Loading
Loading
21.1 KB
Loading

0 commit comments

Comments
 (0)