Giter VIP home page Giter VIP logo

aws-robomaker-sample-application-pr2-hospital's Introduction

AWS RoboMaker Sample Application - PR2 in a Hospital World

This demonstrates tests you would run in a hospital Gazebo world with PR2.

PR2_In_Hospital

RoboMaker sample applications include third-party software licensed under open-source licenses and is provided for demonstration purposes only. Incorporation or use of RoboMaker sample applications in connection with your production workloads or a commercial products or devices may affect your legal rights or obligations under the applicable open-source licenses.

Requirements

  • ROS Melodic - Other versions may work, however they have not been tested
  • Colcon - Used for building and bundling the application.

Build

Install requirements

Follow links above for instructions on installing required software.

Pre-build commands

sudo apt-get update
rosdep update

Robot Application

cd robot_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build

Simulation Application

cd simulation_ws
rosws update
rosdep install --from-paths src --ignore-src -r -y
colcon build

Run

Launch the application with the following commands:

  • Running Simulation Application in Tab 1:

    source simulation_ws/install/local_setup.sh
    roslaunch pr2_hospital_simulation view_hospital.launch
  • Running Robot Application in Tab 2:

    source robot_ws/install/local_setup.sh
    roslaunch pr2_hospital_robot pr2_2dnav.launch

Using this sample with RoboMaker

You first need to install colcon-ros-bundle. Python 3.5 or above is required.

pip3 install -U setuptools
pip3 install colcon-ros-bundle

After colcon-ros-bundle is installed you need to build your robot or simulation, then you can bundle with:

# Bundling Robot Application
cd robot_ws
source install/local_setup.sh
colcon bundle
# Bundling Simulation Application
cd simulation_ws
source install/local_setup.sh
colcon bundle

This produces the artifacts simulation_ws/bundle/output.tar and robot_ws/bundle/output.tar.

You'll need to upload these two bundles to an s3 bucket, then you can use these files to create a robot application, create a simulation application, and create a simulation job in RoboMaker. This is a simulation application only, so you can skip the steps (13-19) that are for creating or using a robot application.

You can also use the RoboMaker Development Environment (IDE). Once a development environment is open, simply clone this repository, then click Add or Edit Configurations in the top drop down menu. On the bottom of the pop-up window, click Switch Config and select the roboMakerSettings.json file provided in this repository. Then, open the simulation settings in the configuration settings window and select your IAM role and S3 buckets you want to use.

License

MIT-0 - See LICENSE for further information

How to Contribute

Create issues and pull requests against this Repository on Github

aws-robomaker-sample-application-pr2-hospital's People

Contributors

amazon-auto avatar jerwallace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-robomaker-sample-application-pr2-hospital's Issues

Failed <<< aws_robomaker_hospital_world

After following the documentation this is the error I get when I try to build the package.

cd simulation_ws rosws update rosdep install --from-paths src --ignore-src -r -y colcon build

`Starting >>> aws_robomaker_hospital_world
Starting >>> pr2_hospital_simulation
Finished <<< pr2_hospital_simulation [0.33s]
--- stderr: aws_robomaker_hospital_world
CMake Error at cmake_install.cmake:56 (file):
file INSTALL cannot find
"/home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_models".

make: *** [install] Error 1

Failed <<< aws_robomaker_hospital_world [0.35s, exited with code 2]

Summary: 1 package finished [0.45s]
1 package failed: aws_robomaker_hospital_world
1 package had stderr output: aws_robomaker_hospital_world
`
Do you have any idea?

Thank you.

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.