Code Monkey home page Code Monkey logo

rrs's Introduction

Realistic Robotic Simulator (RRS) for Pouring Liquids

Alt text

OS Kernel Version ROS Version Nvidia Driver Version CUDA Version Unity Version Ml Agents
Ubuntu 18.04.06 LTS 5.4.0-58-generic ROS Melodic 460.27.04 11.2 Unity 2020.3.22f1 Release_17

Ml Agents 17 Package Detail

  • com.unity.ml-agents (C#) v2.0.0
  • com.unity.ml-agents.extensions (C#) v0.4.0-preview
  • ml-agents (Python) v0.26.0
  • ml-agents-envs (Python) v0.26.0
  • gym-unity (Python) v0.26.0
  • Communicator (C#/Python) v1.5.0

System architecure and ROS2Unity bridge

The pdf presentation file: ROS2Unity

Setup and Installation

  1. Install ROS Melodic

  2. Clone this Repository and run the automatic installer

git clone https://github.com/cxdcxd/RRS.git
cd rrs_ros
./install.sh
  1. Download Unity 2020.3.22f1 or above

  2. Open Unity Hub and go to Projects, click ADD and then browse the folder rrs_unity from the downloaded repository and launch it. Make sure the Unity Version is set to 2020.3.22f1 or above

  3. Open the repository in a new terminal and type cd rrs_ros and build the workspace: catkin_make

  4. Source the workspace:

setup ~/rrs_ros/devel/setup.bash

Run example

Step 1: (ROS Side)

ros launch rrs_ros rrs_main.launch 

Step 2: (Unity Side)

open the scenes/DemoLiquidPouring
Unity3D -> Play

Step 3: (ROS Side)

ros launch mpc real_movo_sc.launch                         

Settings (rrs_ros)

open the config file from : (RRS/rrs_ros/src/core/cfg/config.yaml)

ntp_server_host_name: test               //define the ntp server hostname (current RRS is not using ntp ignored)
local_network_address: 127.0.0.1         //local ip address
consul_network_address: 127.0.0.1        //consul ip address
consul_network_mask: 255.255.255.0       //consul network mask
consul_network_port: 8500                //consul network port

Settings (rrs_unity)

open the config file from : (RRS/rrs_unity/Config/config.xml)

<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <consul_network_address>127.0.0.1</consul_network_address>
  <local_network_address>127.0.0.1</local_network_address>
  <consul_network_port>8500</consul_network_port>
  <consul_network_mask>255.255.255.0</consul_network_mask>
  <ntp_server_host_name>test</ntp_server_host_name> //define the ntp server hostname (current RRS is not using ntp ignored)
  <use_relative_origin>false</use_relative_origin>
</Config>

For RL and Gym Training (No need to ROS Side)

open the Assets\Scenes\PourNetTraining.unity

Virtual Environment

mkdir ~/python-envs
python3 -m venv ~/python-envs/sample-env
source ~/python-envs/sample-env/bin/activate
pip3 install --upgrade pip
pip3 install --upgrade setuptools
deactivate 

Tensor Board

tensorboard.exe --logdir=".\results\PourNet-LSTM" --host="0.0.0.0" --port=6006

Train example

 mlagents-learn.exe .\TrainingConfig\TrainingConfig\ppo_curriculum_curiosity_lstm.yaml --env=".\ServerBuild\ServerBuild\LearnPouring" --num-envs=32 --base-port=5000 --run-id="PourNet-LSTM-Left-2"

rrs's People

Contributors

cxdcxd avatar gogolprem avatar merineins avatar t6nand avatar y-sarfi avatar yibai95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rrs's Issues

Add Grippers

Add finger actuators, so then we should be able to control the gripper from the ros

Compare our bridge with rosSharp using several scenarios

State of the art Methods
1)‌ ROS#​
2) ROS2​
3) URB​

Test Cases ​
1)‌ Network properties (Packet lost, Delay)​
2) Unity Performance Analysis (FPS, RAM, CPU,...)​
3) Latency (Serialization/ Deserialization)​
4)‌‌ Overal Latency with network
5) Bandwidth​ (Packet Size)

Scenario​
1)‌ One instance (Raw Data [Image,‌Pointcloud, nested objects,...])​
2)‌ Pick and Place​
3) Multi-Instance (1,2,10,100)

Add Head Actuators

Add the Pan/Tile Actuators from the Movo in Unity and ROS, we should be able to control the head form Moveit.

Net2 Cleanup

  1. Remove the NTP system
  2. Check Monitors
  3. Check Namespaces

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.