Skip to content

Latest commit

 

History

History
126 lines (65 loc) · 2.59 KB

devel.md

File metadata and controls

126 lines (65 loc) · 2.59 KB

Information for Duckietown Shell developers

Docker

To launch the Duckietown Shell in Docker, run the following command:

$ docker run -it duckietown/duckietown-shell

Note: the Duckietown Shell is supposed to be run natively from the host.

Local commands development

Use the env variable to work on your local copy of the commands:

export DTSHELL_COMMANDS=/path/to/my/duckietown-shell-commands

Use local challenge server

Use the env variable DTSERVER to work on a local server:

export DTSERVER=http://localhost:6544/

Advanced configuration

By default, Duckietown Shell uses the folder ~/dt-data for storing log data and other cache data.

Alternatively, you can use the --dt-data argument to choose a different folder:

$ dts logs --dt-data ![dir] ![command]

Alternatively, the directory can be specified using the environment variable DT_DATA.

$ DT_DATA=/tmp/data dt logs summary



TODO

Commands for AI-DO 1

(TODO) AI-DO templates download

Not implemented yet

The subcommand get-template downloads the submission templates.

Downloads the current template:

$ dts aido1 get-template TASK-LANG
checking out repository...

Without arguments, the program writes a list of available templates.

(TODO) AI-DO submissions

Not implemented yet

The command submit submits the entry in the current directory:

$ dts aido1 submit

(TODO )Submissions status

The command status displays the status of the submitted entries:

$ dts aido1 status
jobname  task  docker hash  status
jobname  task  docker hash  status
...

(TODO) Commands for logs

Wrappers are provided for the EasyLogs commands.

$ dts logs summary
$ dts logs download
$ dts logs copy
$ dts logs details
$ dts logs make-thumbnails
$ dts logs make-video

Summary, details

Queries the list of logs that satisfy a query:

$ dts logs summary "vehicle:yaf,length:>120s"

Show more details about one log:

$ dts logs details 20171124170042_yaf

Download, copy

Downloads logs to the local computer:

$ dts logs download 20171124170042_yaf

Copies the logs to a specific directory:

$ dts logs copy -o ![output dir] 20171124170042_yaf
Creating ![output dir]/20171124170042_yaf.bag

Creating thumbnails

$ dts logs make-thumbnails 20171124170042_yaf

Creating videos:

Create a video of the camera data:

$ dts logs make-videos 20171124170042_yaf