WoodenJin / raisimUnity

A visualizer for RaiSim based on Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RaisimUnity (NOT COMPLETED)

raisimunity gif

raisimUnity is a visualizer for raisim based on Unity. It gets the simulation data from raisim server application via TCP/IP.

The project was tested on Ubuntu 18.04 LST.

How to

Prerequisites

  • RaiSimLib
  • (optional for video recording) ffmpeg
    • Install by
    $ sudo apt install ffmpeg
  • (optional for developement) Unity Editor >= 2019.2.9f1 (linux version is available on here)

RaiSimUnity

  1. Add the following line in your simulation code: see Example code
  /// launch raisim servear
  raisim::RaisimServer server(&world);
  server.launchServer();

  while(1) {
    raisim::MSLEEP(2);
    server.integrateWorldThreadSafe();
  }

  server.killServer();
  1. Run your simulation.
  2. Run RaiSimUnity application.
  3. Add your resource directory that contains your mesh, material etc.
  4. Tap Connect button after specify TCP address and port.
  5. You can change background by Background dropdown menu in run time.

Development

  1. Clone this repository with git and git-lfs: we use git-lfs for large files such as materials, meshes, texture images etc.
$ git clone https://github.com/eastskykang/raisimUnity.git
  1. Once you cloned source code, get lfs files by
$ git lfs pull origin

You should see texture JPEG files properly from Assets/Resources/texture/cc0/.

  1. We strongly recommend to use JetBrain's Rider IDE and Unity Rider Editor package >= 1.1.2 for development.
    • See Wiki doc for more details.
    • See Wiki doc to create new material from texture files.

Dependencies

3rd party libraries, packages and assets are already included in the project. This is just for listing the source.

Default Material List

  • Bricks1
  • Concrete1
  • Fabric1
  • Ground1
  • Leather1
  • Metal1
  • Metal2
  • Metal3
  • Metal4
  • PavingStones1
  • PavingStones2
  • Planks1
  • ... see this

About

A visualizer for RaiSim based on Unity


Languages

Language:C# 99.9%Language:GLSL 0.1%