Git Product home page Git Product logo

mujoco_sim_docker's Introduction

mujoco_sim_docker

This repository contains docker images for deploying ROS packages for MuJoCo with https://github.com/K4R-IAI/K4R_Development

No ROS required, No Unreal Engine required, just a PC with a good NVIDIA Graphic Card :)

Check your docker-compose and docker-py versions:

$ docker -v
Docker version 20.10.23, build 7155243
$ docker compose version
Docker Compose version v2.15.1

1. If you want to use a package simulator from Unreal Engine, download it here and unzip it

2. Clone this repository and go into the checked out folder:

cd mujoco_sim_docker

3. Follow these steps to build docker images:

3.1. Clone the packages with wstool

sudo apt install ros-${ROS_DISTRO}-mk # This step is to make sure the mk from rospack is there
./setup_ros_packages.bash

3.2. Install nvidia-docker2 to enable GPU access with Compose (sudo required)

./setup_rviz.bash

3.3. Apply for a free academic license for Gurobi, see Gurobi Academic Web License Service for more information

3) Request and download your Academic WLS License
4) Move your licencse gurobi.lic in images/giskard-ws-image folder

Note: Your computer must be connected to a recognized academic institution network when the request is made. Your WLS license will be valid for 90 days and is renewable for as long as you maintain eligibility.

3.4. Build the docker images

source .env # This step is to make sure the ROS_DISTRO is noetic
docker compose build

4. Using the docker images

4.1. Start ros-core-servce and mujoco-ws-service

docker compose up mujoco-ws-service

4.2. Start the simulation (either by clicking Play in Unreal Engine or from the unziped package)

sh Waterfront.sh

4.3. You can visualize everything with rviz from docker container

./run_rviz.bash

The result should look like this:

Result

5. Connect to docker container via ROS

export ROS_MASTER_URI=http://192.168.75.2:11311
export ROS_IP=$(hostname -I | awk '{print $1}') #your IP

6. Stop docker containers

6.1. Cancel every terminals with Ctrl + C

6.2. Remove docker containers and network

docker compose down

mujoco_sim_docker's People

Contributors

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