Coder Social home page Coder Social logo

mae298-autonomous-vehicle-gnc-astrobee's Introduction

A Docker Image and run scripts for NASA's Astrobee Robot Software

(Astrobee source code available at https://github.com/nasa/astrobee/tree/972b78b6651e87a634f7ae99a3b12aea860053f1)

Instructions to get started with a prebuilt Astrobee sim:

Install docker for your OS and check with docker version (If not running in Linux, start your Docker desktop.)

Clone this repo and cd into it:

git clone https://github.com/tammerb/ros-astrobee.git
cd ros-astrobee/

Pull the Docker image

Pull the pre-built Docker image (note: the compressed image is ~1.5GB and 6GB once extracted):

docker pull thbarkouki/ros-astrobee:latest

Check that the pull was successful with the docker images command.

Run the Simulator:

Run the simulator with by executing the run.sh script, e.g with:

./run.sh [OPTIONS]

(maybe require sudo)

The NavCam and DockCam views are off by default. Add the -c flag to turn them on for debugging (resource intensive). The default viewer is Rviz. Use the -s flag for Gazebo, or -g flag for GNC GUI. See details here: https://github.com/nasa/astrobee/tree/972b78b6651e87a634f7ae99a3b12aea860053f1/simulation#running-the-simulator

A browser tab should automatically open at http://localhost:8080/vnc_auto.html. If not, manually enter this address into your browser. See below for Flying Astrobee instructions.

Once you're done, close the browsers tab, (if you attached to the running container, exit the terminal you're controlling the Astrobee from with exit), and stop and remove both containers with docker-compose down in the original terminal you started in.

Interacting with Astrobee

To control the Astrobee robot, you need to enter (aka "attach to") the docker container with:

docker attach astrobee_sim_container

To launch additional bash sessions attached to the same container, from a different terminal execute:

docker exec -it astrobee_sim_container bash

Now you should be able to "tele-operate" the Astrobee using the teleop instructions available from the original Astrobee repo here: https://github.com/nasa/astrobee/blob/972b78b6651e87a634f7ae99a3b12aea860053f1/management/executive/teleop_tool.md

For testing only: This will start the containers (and install the image if needed), but not launch the sim:

Run run_no_launch.sh. This will start both the astrobee and noVNC containers, but will not launch the sim. You can open a second terminal and attach to the sim container by running docker attach astrobee_sim_container. You can then edit and launch the sim from inside. Exit the container with exit, and stop and remove both containers with docker-compose down.

mae298-autonomous-vehicle-gnc-astrobee's People

Contributors

jdekarske avatar tammerb avatar

Stargazers

 avatar

Watchers

 avatar

mae298-autonomous-vehicle-gnc-astrobee's Issues

check before run

Is there a better way to check that the containers are stopped or removed before run.sh? I haven't played through the methods enough to know the difference. After seeing that stopping isn't enough, I was curious. Are there any complications to removing containers without checking?

A better method might be to check if these containers are running and let the user know to stop or remove them manually

Add custom container

We need to decide if we want to add our experimental container on top of astrobee with FROM or run it in tandem from docker-compose.yml. Any ideas on the complications of either?

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.