DonkeyCarのコントーラはpython manage.py driveコマンドで起動します。次のセルを実行します。これまでのセルとは違い、実行を手動で停止させるまで完了することはありません。
$ python manage.py drive
/Users/chen/workspace/mycar
using donkey v3.1.2 …
loading config file: /Users/chen/workspace/mycar/config.py
myconfig myconfig.py
loading personal config over-rides from myconfig.py
config loaded
cfg.CAMERA_TYPE PICAM
starting DonkeyGym env
connecting to 127.0.0.1 9091
/Users/chen/workspace/vdonkey/lib/python3.7/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32
warnings.warn(colorize(‘%s: %s’%(‘WARN’, msg % args), ‘yellow’))
waiting for sim to start..
loading scene 4 mountain_track
Adding part DonkeyGymEnv.
Starting Donkey Server…… you can now go to hongs-mbp.lan.local:8887 to drive your car.
Adding part LocalWebController.
Adding part ThrottleFilter.
Adding part PilotCondition.
Adding part RecordTracker.
Adding part ImgPreProcess.
Adding part DriveMode.
Adding part AiLaunch.
Adding part AiRunCondition.
Tub does NOT exist. Creating new tub…
New tub created at: /Users/chen/workspace/mycar/data/tub_1_20-06-18
Adding part TubWriter.
You can now go to http://localhost:8887 to drive your car.
Starting vehicle at 20 Hz
WARNING:tornado.access:404 GET /favicon.ico (::1) 7.78ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.86.104) 4.66ms
WARNING:tornado.access:404 GET /favicon.ico (192.168.86.104) 3.88ms
recorded 10 records
recorded 20 records
recorded 30 records
INFO:gym_donkeycar.envs.donkey_sim:crossed start line: lap_time 0
recorded 40 records
recorded 50 records
recorded 60 records
recorded 70 records
recorded 80 records
INFO:gym_donkeycar.envs.donkey_sim:crossed start line: lap_time 0
INFO:gym_donkeycar.envs.donkey_sim:crossed start line: lap_time 30740
recorded 90 records
recorded 100 records
recorded 110 records
recorded 120 records
recorded 130 records
recorded 140 records
INFO:gym_donkeycar.envs.donkey_sim:crossed start line: lap_time 27760