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.
- 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)
- 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();
- Run your simulation.
- Run RaiSimUnity application.
- Add your resource directory that contains your mesh, material etc.
- Tap Connect button after specify TCP address and port.
- You can change background by Background dropdown menu in run time.
- 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
- 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/
.
- We strongly recommend to use JetBrain's Rider IDE and Unity Rider Editor package >= 1.1.2 for development.
3rd party libraries, packages and assets are already included in the project. This is just for listing the source.
- pb_Stl
- C# Collada model
- OBJImport
- SimpleFileBrowser
- Bricks1
- Concrete1
- Fabric1
- Ground1
- Leather1
- Metal1
- Metal2
- Metal3
- Metal4
- PavingStones1
- PavingStones2
- Planks1
- ... see this