Giter Site home page Giter Site logo

deepracer-utils's Introduction

deepracer-utils

Tools and experiements for the AWS DeepRacer with ROS 2 Foxy. (Specifically for DeepRacer 2.)

Installation

$ git clone https://github.com/Jeffreyyao/deepracer-utils.git

Initialization

Log in to root user first with $ sudo su or $ ssh root@ip

$ source /opt/ros/foxy/setup.bash
$ source /root/deepracer_ws/aws-deepracer-servo-pkg/install/setup.sh

ROS 2 with necessary nodes will start running, ROS 2 Foxy documentation.

The control loop

The control loop in the DeepRacerController file is responsible for controlling the actions of the DeepRacer. There are two important variables in the calss: ARENA_UB and ARENA_LB. These mark the upper and lower bounds of the arena, respecively. It is important to note that if the arena were to shift out of position for any reason, these coordinates would need to be re-measured, so the DeepRacer will know the bounds of the arena.

The control loop works by retrieving the location of the DeepRacer from the localization server. It receives the time, the (x, y) coordinates, the current angle, and the current velocity of the DeepRacer. There are a few conditions in which the control loop will exit and hault the DeepRacer's movements. These are:

  • The DeepRacer's current position is "untracked".
  • The (x, y) coordinates for the DeepRacer's current position, when compared to the upper and lower bounds of the arena, are out of bounds.
  • No control actions are received.
  • The time exceeds the real-time deadline that has been set.

If none of these conditions occur, then the DeepRacer will either stop or move, depending on the action it receives.

deepracer-utils's People

Contributors

jeffreyyao avatar madelynweber avatar mkhaled87 avatar

Watchers

 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.