- Hook monitor and keyboard via HDMI and USB cables.
- Login with username, "pi", and its password.
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
, then addnetwork={}
with your SSID and password (you can have more than one network section).sudo wpa_cli -i wlan0 reconfigure
- Note the MAC address for
wlan0
. (Later used to identify IP address from your laptop)
- Use
ifconfig
to learn your subnet broadcast address (e.g. 10.0.0.255) - Run
ping <subnet-broadcast-address>
, e.g,ping 10.0.0.255
. (Note: this will update your ARP table, used next) - Run
arp -r
, which will show you a list of IP address - MAC address mapping. - Find the IP address associated with its MAC address from the list.
NOTE: Above may not work in some environment.
sudo apt-get update
sudo apt-get install avahi-daemon
sudo vim /etc/hostname
<a-unique-name-in-your-local-network>.local
Then, save it. Now, your RPi can be accessed from other hosts in the same local network by the host name. Try:
ping <a-unique-name-in-your-local-network>.local
from your laptop or PC.
Since donkeycar v2.5.1, it can be installed from PyPi as shown below:
pip install tensorflow==1.8.0
pip install donkeycar==2.5.1
donkey createcar --template donkey2 ./mycar
:
pip install tensorflow-gpu==1.8.0
pip install donkeycar[tf_gpu]==2.5.1
donkey createcar --template donkey2 ./mycar
cd mycar
# Copy your input data into "./data/<my_data_folder>/."
python ./manage.py train --tub data/<my_data_folder_name>/ --model ./models/<my_data_folder_name>
- Left sitck: steering
- Right stick: throttle
- Circle: Enable/disable recording (When cfg.AUTO_RECORD_ON_THROTTLE is False)
- Triangle: Increase max throttle setting by 0.01
- Cross: Decreease max throttle settting by -0.01
- Base: Increase thrrotle scale by 0.05
- Top2: Decrease thrrotle scale by 0.05
- DPad up => increase throttle scale
- DPad right => decrease throttle scale
- DPad left => increase steering scale
- DPad right => decrease steering scale
- Select => switch modes
- Start => toggle constant throttle
- base5 = PS3 left trigger 1
- base3 = PS3 left trigger 2
- base6 = PS3 right trigger 1
- base4 = PS3 right trigger 2
- thumb2 = PS3 right thumb
- thumb = PS3 left thumb
It's not just with 1.9.0!
$ pip install tensorflow==
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting tensorflow==
Could not find a version that satisfies the requirement tensorflow== (from versions: 0.11.0, 1.8.0, 1.9.0)
No matching distribution found for tensorflow==
With v2.5.1, timestamps in those json file stored under tub is null. I have added the following code to manage.py as a quick fix:
import datetime
:
#clock = Timestamp()
#V.add(clock, outputs='timestamp')
def get_timestamp():
return str(datetime.datetime.utcnow())
clock = Lambda(get_timestamp)
V.add(clock, outputs=['timestamp'])
Make sure you have datetime model.
pip install datetime
.