Code Monkey home page Code Monkey logo

argonne-sdl's Introduction

Self Driving Lab - Closing the loop at Argonne APS

Using AWS Robomaker to get U3E robots working in simulation mode using Gazebo

The goal is to get ROS working using AWS Robomaker with a UR3E (Universal Robot) working in a Gazebo simulation mode. Next, we want to integrate EPICS/BlueSky to get data from beamline. We want to use the data from beamline streamed and determine an action based on the data and have the simulation in Gazebo updated. Subsequently, we will replace Gazebo with real robot control.

I found that AWS RoboMaker to the fastest way to setup a collaborative development environment (especially if you have a macOS laptop). All of these instructions worked well on OS X with Google Chrome browser. The costs of my experiments on AWS was fairly low -> $1.68.

Costs

Using AWS RoboMaker to set ROS environments for Robot development

  1. Create a AWS account at AWS using your email address
  2. In the AWS console, go to RoboMaker service and click on Development environments - Select create development environment create development environment
  3. Screenshot1
  4. Launching RoboMaker Screenshot2
  5. RoboMaker is launched. You will see the command window below and an option to launch Virtual Desktop. In the command window run export DISPLAY=:0 which will set X to the virtual desktop Screenshot3
  6. Virtual Desktop that is launched will open in a new browser window Screenshot4
  7. In the Virtual Desktop, find "Activities" and type Gazebo Screenshot5
  8. Empty virtual world launched using Gazebo Screenshot6
  9. Then run the following commands
$ source /opt/ros/melodic/setup.bash
$ mkdir -p catkin_ws/src && cd catkin_ws
$ git clone -b boost https://github.com/UniversalRobots/Universal_Robots_Client_Library.git \
 src/Universal_Robots_Client_Library
$ git clone https://github.com/UniversalRobots/Universal_Robots_ROS_Driver.git \
src/Universal_Robots_ROS_Driver
$ git clone -b calibration_devel https://github.com/fmauch/universal_robot.git \
src/fmauch_universal_robot
$ sudo apt update -qq
$ rosdep update
$ rosdep install --from-paths src --ignore-src -y
$ catkin_make_isolated
$ source devel_isolated/setup.bash

Screenshot7 11. Launch UR3 Robot using roslaunch ur_gazebo ur5.launch Screenshot8 12. Command screen after last command Screenshot9 13. UR3E in Gazebo Screenshot10


Useful links:
1. AWS Tutorial on using TurtleBot with Robomaker: https://aws.amazon.com/blogs/aws/aws-robomaker-develop-test-deploy-and-manage-intelligent-robotics-apps/
2. Removing dpkg lock: https://itsfoss.com/could-not-get-lock-error/

argonne-sdl's People

Contributors

madduri avatar

Watchers

 avatar  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.