MYR-2017 SimulATOR user manual

Similar documents
Docker Swarm installation Guide

Robocup In summary. Amirreza Kabiri Fatemeh Pahlevan Aghababa

swiftenv Documentation

Containers. Pablo F. Ordóñez. October 18, 2018

MariaDB ColumnStore C++ API Building Documentation

Technical Manual. Software Quality Analysis as a Service (SQUAAD) Team No.1. Implementers: Aleksandr Chernousov Chris Harman Supicha Phadungslip

The Galaxy Docker Project. our hands-on tutorial

getting started with usarsim Amirreza Kabiri Fatemeh Pahlevan Autumn 2017

sensor-documentation Documentation

APPLICATION NOTE Interfacing Basler Cameras with ROS

Network softwarization Lab session 2: OS Virtualization Networking

PREPARING TO USE CONTAINERS

polymaker Documentation

Setting up Docker Datacenter on VMware Fusion

Tensorflow v0.10 installed from scratch on Ubuntu 16.04, CUDA 8.0RC+Patch, cudnn v5.1 with a 1080GTX

OSM Hackfest Installation and first use. Gerardo García (Telefónica)

Running Blockchain in Docker Containers Prerequisites Sign up for a LinuxONE Community Cloud trial account Deploy a virtual server instance

ecamguvcview Build & Installation Guide

Robot Programming with Lisp

Docker & why we should use it

How to run NoMachine server inside Docker

TZC WALLET + HEADLESS WALLET ON LINUX. Local Wallet + PoS Headless Wallet on VPS (Ubuntu 16.04)

ROS Qt Creator Plug-in. Release

ROS Qt Creator Plug-in. Release

User-friendly Cross-platform Industry 4.0 Web Viewer Smartphone-App Free Hotline

Engineering Robust Server Software

Installing MediaWiki using VirtualBox

FEniCS Containers Documentation

Software Development I

Set up, Configure, and Use Docker on Local Dev Machine

ECE 5463 Introduction to Robotics Spring 2018 ROS TUTORIAL 1. Guillermo Castillo (Wei Zhang)

Introduction to Containers. Martin Čuma Center for High Performance Computing University of Utah

TrinityCore Documentation

Support for Vanilla Universe Checkpointing. Thomas Downes University of Wisconsin-Milwaukee (LIGO)

doconv Documentation Release Jacob Mourelos

coxtactoe Documentation

ruby-on-rails-4 #ruby-onrails-4

Introduction to Containers

MAGPIE Installation Guide (version 1.0)

TangeloHub Documentation

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Installing PHP on Windows 10 Bash and Starting a Local Server

Introduction to containers

Tizen Project Guideline. SKKU Embedded Software Lab.

manifold Documentation

Denial-of-Service (DoS) Attacks in an SDN Environment

Raw Packet Capture in the Cloud: PF_RING and Network Namespaces. Alfredo

GitLab-CI and Docker Registry

Infoblox Kubernetes1.0.0 IPAM Plugin

Installation of the DigitalSystemsVM virtual machine

Software installation is not always a trivial task

It s probably the most popular containerization technology on Linux these days

Masternode Setup Guide

Implementing DPDK based Application Container Framework with SPP YASUFUMI OGAWA, NTT

Experiment Task Design:

Singularity CRI User Documentation

Using Containers to develop and port Salome First experiments and feedback

Introduction to ROS. COMP3431 Robot Software Architectures

" Qué me estás container?" Docker for dummies

Linux Essentials Objectives Topics:

GIT. A free and open source distributed version control system. User Guide. January, Department of Computer Science and Engineering

Running blockchain demo app with Hyperledger Fabric on LinuxONE server Labs

Quick Start Guide for Integrating Ziften Zenith and Microsoft Windows Defender ATP

Using ROS with RedHawk Linux on the NVIDIA Jetson TX2

How to install Java Virtual Machine on Debian 7 GNU / Linux

Rover Documentation Tracing with Perf, Conversion to CTF, and analysis with TraceCompass

More Raspian. An editor Configuration files Shell scripts Shell variables System admin

LING 408/508: Computational Techniques for Linguists. Lecture 5

Travis Cardwell Technical Meeting

DevOps Workflow. From 0 to kube in 60 min. Christian Kniep, v Technical Account Manager, Docker Inc.

Table of Contents. PropellerIDE Documentation

Embedded Linux. A Tour inside ARM's Kernel

ADI Driver Documentation

Tensorflow/SyntaxNet. Installation Guide

YDLIDAR F4PRO USER MANUAL

Linux Systems Administration Getting Started with Linux

Downloading and installing Db2 Developer Community Edition on Red Hat Enterprise Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

Some Ubuntu Practice...

USING NGC WITH AZURE. DU _v01 September Setup Guide

Linux Kung-Fu. James Droste UBNetDef Fall 2016

Getting Started With Containers

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Introduction to Robot Operating System (ROS)

NGC CONTAINER. DU _v02 November User Guide

Package Management Over Tor

Progress review #3. Gauri Gandhi. Team G Robographers. Teammates: Rohit Dashrathi. Jimit Gandhi. Tiffany May. Sida Wang ILR #4

The Rockefeller University I NFORMATION T ECHNOLOGY E DUCATION & T RAINING. VPN Configuration Guide for Unix/Linux

Building CircuitPython

Getting Started with the Google Cloud SDK on ThingsPro 2.0 to Publish Modbus Data and Subscribe to Cloud Services

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

BEST PRACTICES FOR DOCKER

Ubuntu Development Primer

Arup Nanda VP, Data Services Priceline.com

Ubuntu LTS Install Guide

ROS-Industrial Basic Developer s Training Class: Linux Basics. Southwest Research Institute Last Updated 2017

Step by step to getting R installed on your computer

WES 237A Project Part 1 Guide

INFRASTRUCTURE AS CODE

$ wget V SOLUTIONS.tar.bz2 \ --user=lftraining --password=penguin2014

Introduction to the Robot Operating System (ROS) Middleware

Transcription:

MYR-2017 SimulATOR user manual Naïo technologies - Gazebo on Nvidia-Docker - Author : Andreu Joan Version : 1.0.0 Date : 2017/07/11 Copyright : Naïo Technologies

1. Requirements Minimal requirements : - Linux PC. - 8 Go of RAM is required. - i5 processor. - NVidia Graphic Card. - 1Go free space. We can actually runs the simulation and the client sample program on the same pc, i5, with 8Go Ram, and a NVidia GT730 GeForce. Please note you will much more comfortable running the simulation on one another pc than the one running your IA. You will be much more comfortable running the simulator on a i7 Core, with 16Go Ram, effectively, Gazebo physics motor is not yet properly optimized and use a lot of processor, instead of using graphic card computation power.

2. Docker installation https://docs.docker.com/engine/installation/ The deb command should not be executed but added in the following file : /etc/apt/sources.list You can do it using (For Xenial): echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" sudo tee /etc/apt/sources.list.d/docker.list Do not forget to install and start docker after the prerequisites with the command lines : sudo apt-get update sudo apt-get install docker-engine sudo service docker start NOTE on docker : To use docker, you first have to pull the image of the container where gazebo and the simulator are installed (cf. 4.1). To launch it, use the docker command run (cf. 4.2). You can generate new worlds inside the container (cf. 4.4) and launch the simulator in this terminal (cf. 4.6). You can then open a new terminal inside the container with the docker command exec and launch gzclient to visualize the simulation (cf. 4.3). If you want to exit a terminal, simply type exit in the command line of the container or use CTRL+C. When you exit the container, or when it crashes, make sure that it is stopped properly with the docker command stop (cf. 5.1) and then delete the container with the docker command rm (cf. 5.2).

3. Nvidia-Docker installation Linux/Ubuntu : Get latest release (deb): https://github.com/nvidia/nvidia-docker/releases install it : sudo dpkg -i nvidia-docker*.deb sudo apt-get install nvidia-modprobe sudo apt-get install -y nvidia-375 You need to install proprietary nvidia driver ( tested on 375 ).

4. DOCKER BUILDING 4.1 Pulling and building the dockerfile Start by pulling the image of the container where Gazebo, ROS, Simul'oz and the Test Viewer are installed : git clone https://github.com/naiotechnologies/naio-docker.git cd naio-docker git checkout myr2017 cd.. sudo docker build -t oz-simu:1.0 naio-docker In case you edit the entrypoint file ( the init file of the docker ) recompile the docker with : docker build -t simulatoz.

5. LAUNCHING DOCKER 4.2 Launching the container xhost +local:root sudo nvidia-docker run -it \ --privileged \ --env="display" \ --name simuloz \ --env="qt_x11_no_mitshm=1" \ --volume="/tmp/.x11-unix:/tmp/.x11-unix:rw" \ --volume="/tmp/.xim-unix:/tmp/.xim-unix:rw" \ -p 5900:5900 -p 5554:5554 -p 5555:5555 -p 5556:5556 -p 5557:5557 -p 5558:5558 -p 5559:5559 \ oz-simu:1.0 or sudo nvidia-docker run -it \ --privileged \ --env="display" \ --name simuloz \ --env="qt_x11_no_mitshm=1" \ --volume="/tmp/.x11-unix:/tmp/.x11-unix:rw" \ --volume="/tmp/.xim-unix:/tmp/.xim-unix:rw" \ -p 5900:5900 -p 5554:5554 -p 5559:5559 \ oz-simu:1.0 You may have to delete the existing container : - sudo docker stop simuloz - sudo docker ps -a - sudo docker rm <ID_OF_CONTAINER_SIMU>

6. Simulation Run On a the docker Terminal type : roslaunch oz440_gazebo level1.launch After a while, you should be able to see the Gazebo gui : if not working, check : cd /catkin_ws/src/simulatoz/ git checkout Move_your_robot export GAZEBO_MODEL_PATH=/catkin_ws/src/simulatoz/oz440_description/models:${GAZEBO_MODE L_PATH} export GAZEBO_RESOURCE_PATH=/catkin_ws/src/simulatoz/oz440_description/models:${GAZEBO_R ESOURCE_PATH} cd /catkin_ws && catkin_make

roslaunch oz440_gazebo level1.launch 4.3 Visualisation If by error you closed your gazebo client, you can restart it in the docker container : Open a new terminal in the running container : sudo docker exec -it simuloz bash On the container terminal, launch gzclient. 7.Running ApiClient You will have to install sdl2 libraries : sudo apt-get install libsdl2-dev sudo apt-get install libsdl2-ttf-dev sudo apt-get install libsdl2-gfx-dev Somewhere in your working directory : git clone https://github.com/naiotechnologies/apiclient.git cd ApiClient/ext/ git checkout ApiClient_2016.06.c_api git clone https://github.com/naiotechnologies/apicodec cd../build/ cmake.. make

For accessing ports on the simulator :./ApiClient 127.0.0.1 5559 5554 For accessing ports on the real robot platform :./ApiClient [IP OF THE ROBOT] 5555 5557 Application usage : Now you can use the four arrow keys the send motor command, press o or f for closing opening image socket. With this sample application, you have all packet coded in C++, and you can develop a thread, sending all the needed commands generated by your IA. You can also imagine develop with another language, but you will have to design back the packet protocol and loose some precious time instead thinking on a beautiful guidance algorithm!

Closing the container 3.1 Stopping the container When you have exited the container, stop it : sudo docker stop simuloz 3.2 Deleting the container When you have stopped the container, delete it : sudo docker rm simuloz