Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
151 lines (107 sloc) 5.97 KB



You must read the LICENSE before using this software


  • As of v0.4.0, RAISIM can simulate any trimesh (including non-convex ones). alt-text-2
  • As of v0.3.0, all "_W" prefixes in method names are gone. For example, getPosition_W() is now getPosition()


Feel free to use the github issues as a forum. Raisim does not have a dedicated forum now.


  • Linux only. support ubuntu 16.04 and 18.04 but might work on other distributions
  • g++, gcc > 6 (how to install?)
  • cmake > 3.10 (how to install?)
  • The binaries contain avx2 instructions. If your CPU is 6-year-old or older, it is likely that raisimLib does not work on your machine.

What is raisim/raisimLib?

Raisim is a physics engine for rigid-body dynamics simulation. Although it is a general physics engine, it has been mainly used/tested for robotics and reinforcement learning so far. It features an efficient implementation of recursive algorithms for articulated system dynamics (Recursive Newton-Euler and Composite Rigid Body Algorithm). RaisimLib is an exported cmake package of raisim.

Related repos

  • raisimOgre: a visualizer for RAISIM
  • raisimGym: a few gym environments using RAISIM
  • raisimPy: a (third-party) python wrapper of RAISIM


Please install/save everything locally to prevent any conflicts with other libraries. We will assume that you have a single workspace where you save all repos related to raisim. Here we introduce two variables

  • WORKSPACE: workspace where you clone your git repos (e.g., ~/raisim_workspace)
  • LOCAL_BUILD: build directory where you install exported cmake libraries (e.g., ~/raisim_build)


raisim depends on the two open-source libraries

  • eigen (sudo apt-get install libeigen-dev)
  • png (included in raisim. Automatically installed if you install raisim)


Installing raisim is trivial. Just copy paste lib and include to LOCAL_BUILD, or you can use cmake. Assuming that you have cloned this repo,

cd $WORKSPACE/raisimLib
mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=$LOCAL_BUILD && make install


A short manual can be found here

Watch the video

How to link?

raisimLib is a cmake package. In your project CMakeList.txt,

find_package(raisim CONFIG REQUIRED)
target_link_library(YOUR_APP raisim::raisim)

When you run cmake of your project, let cmake know where raisim is installed, e.g.,


Performance benchmark

please refer to

Short example

The following code creates raisim::World and simulates a robot, a ball and a flat terrain.

#include “raisim/World.hpp”

int main() {
    raisim::World world;
    auto anymal = world.addArticulatedSystem(“pathToURDF”); // initialized to zero angles and identity orientation. Use setState() for a specific initial condition
    auto ball = world.addSphere(1, 1); // radius and mass
    auto ground = world.addGround();

Related repos


Simulation examples

These example videos are generated with raisimOgre (

alt-text-1 alt-text-1 alt-text-1 alt-text-1

Reinforcement learning examples

The policy is trained with raisimGym (


Who made raisim?

Jemin Hwangbo (Robotic Systems Lab, ETH Zurich) is developing and managing raisim with the help from the following contributors:

  • Donho Kang, Robotic Systems Lab, ETH Zurich
  • Joonho Lee, Robotic Systems Lab, ETH Zurich

Contact us

For bug reports/feature requests/instructions, use github issues. For private inquiries, please contact us at jemin.hwangbo {at} gmail {dot} com.

How to post github issue

Please, whenever possible, include a standalone executable (which depends only on raisim and raisimOgre) reproducing the issue.

Modeling tips


  • Ensure that your URDF file does not have unrealistic internal collisions.
  • Use raisimOgre to visually inspect your URDF before simulating it (setting the simulation to the manual stepping mode helps). Check if the number of internal collisions in the nominal configuration is zero.


  • Raisim adds a spring element to mitigate numerical errors. If your system becomes unstable, it is most likely that it is due to the Error Reduction Parameter (ERP). You can set it using raisim::World::setERP()

How to cite

The contact related algorithms are published in the below article

  title={Per-contact iteration method for solving contact dynamics},
  author={Hwangbo, Jemin and Lee, Joonho and Hutter, Marco},
  journal={IEEE Robotics and Automation Letters},

Created by

rsl rsl eth

You can’t perform that action at this time.