/hadabot_main

Content used in collaboration with various Hadabot blog posts to get guide you through learning ROS2.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

(DEPRECATED) - Please visit www.hadabot.com for more up to date instructions on how to build.

To launch a ROS2 web-bash console

  1. Install Docker
  2. If you are NOT using Mac, install Docker Compose (ie docker-compose)
  3. 'cd docker'
  4. 'docker-compose up -d'
  5. Open a web browser tab and go to http://localhost:9000 to open Portainer management web page.
    1. (NOTE) If a bunch of red "Failure" tooltips pop up, hit Ctrl-Shift-r to flush cache and refresh URL.
    2. Create a local Portainer admin account
    3. Upon seeing 'Connect Portainer to the Docker environment you want to manage.'
      1. Select the 'Local - manage the local Docker environment' box.
      2. Click 'Connect'
  6. Get full container ID for the ros2_console container, from your terminal, type:
    1. 'docker ps --no-trunc -f name=ros2_console -q'
  7. Open a new browser tab to launch a web-bash terminal via http://localhost:9000/#/containers/<ROS2_CONSOLE_CID>/exec - replace ROS2_CONSOLE_CID with the 'full container ID' you discovered above.
    1. Click 'Connect'
  8. (If you keep getting redirected to the dashboard use this ALTERNATE METHOD TO LAUNCH WEB-BASH) From your Portainer Dashboard:
    1. From the left-menu bar, click 'Containers'
    2. Click 'ros2_console' from the list of containers
    3. At the bottom of 'Container status' panel box, click '>_ Console'
    4. Click 'Connect'

You now have a web-bash terminal into one of the Docker containers we launched (via 'docker-compose up -d') to start learning ROS2.

If you are reading one of the https://blog.hadabot.com blog posts, you can use this web-bash to follow along with the instructions described in the blog post.