Git Product home page Git Product logo

duckietown-shell-commands's Introduction

dts duckiepond

We could setup a few dts commands to setup a device in Duckiepond. This is supposed to run on the laptop on the base station.

Change to our forked repo

$ cd ~/.dt-shell/commands-multi/daffy/
$ git remote -v
$ git remote set-url origin [email protected]:ARG-NCTU/duckietown-shell-commands.git
$ git pull
$ pip3 install arg-robotics-tools -U
$ dts duckiepond hello

clone duckie devices yaml

$ cd
$ git clone [email protected]:ARG-NCTU/duckiepond-devices.git
$ dts duckiepond discover

when you need to update

$ cd ~/duckiepond-devices
$ git pull
$ cd ~/.dt-shell/commands-multi/daffy
$ git pull

dependency

TODO: xbee, ros, etc dependencies

TODO: Or it's even better to add Docker for this.

TODO: We could also test our nbdev lib here.

Checking System

TODO: submodule the repo with device.yaml

Hostname, username, ssh key,

Setup network properly (IP, virtual IP, etc)

Make a Duckietown Device

Developments and Deployments

Clone repo and build

Environment variables for who I am

Any robot-specific topic name

Docker autorun (Turnkey)

Tests (arg-veh-machine-test repo)

dts fleet discover

Test XBee comm (TODO modify repo)

Test starting up sensors (procman)


CircleCI

TODO: this should get polished and updated.

You need to have successfully installed the Duckietown Shell. If you know what you want to do with it go ahead. Below are some examples of things you can do with the Duckietown Shell

Compile one of the "Duckumentation"

To compile one of the books (e.g. docs-duckumentation but there are many others):

$ git clone https://github.com/duckietown/docs-duckumentation.git
$ cd docs-duckumentation
$ git submodule init
$ git submodule update
$ dts docs build

There is an incremental build system. To clean and run from scratch:

$ dts docs clean
$ dts docs build

Authenticate a Duckietown Token

Run the command dts tok set to set the Duckietown authentication token:

$ dts tok set  

Instructions will guide you and you will be prompted for the token.

If you already know the token, then you can use:

$ dts tok set dt1-YOUR-TOKEN

Verifying that a token is valid

To verify that a token is valid, you can use:

$ dts tok verify dt1-TOKEN-TO-VERIFY

This exits with 0 if the token is valid, and writes on standard output the following json:

{"uid": 3, "expiration": "2018-09-23"}

which means that the user is identified as uid 3 until the given expiration date.


Duckiebot setup

Command for flashing SD card

This command will install DuckieOS on the SD-card:

$ dts init_sd_card

Command for starting ROS GUIs

This command will start the ROS GUI container:

$ dts start_gui_tools <DUCKIEBOT_NAME_GOES_HERE>

Command for calibrating the Duckiebot

This command will run the Duckiebot calibration procedure:

$ dts calibrate_duckiebot <DUCKIEBOT_NAME_GOES_HERE>

duckietown-shell-commands's People

Contributors

afdaniele avatar andreacensi avatar liampaull avatar breandan avatar aleksandarpetrov avatar viciopoli01 avatar hchengwang avatar courchesnea avatar ezrafollower avatar surirohit avatar light5551 avatar tanij avatar frank-qcd-qk avatar nuandrea avatar gibernas avatar jasonhu5 avatar amaurx avatar bhairavmehta95 avatar velythyl avatar aroumie1997 avatar ggbory avatar webbe035 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.