centridal dynamics and crb

Discussion in 'Feature Requests' started by Parijat Dewangan, Oct 12, 2017 at 3:40 AM.

  1. Hello, I have been looking into crb and cinert variable in the mujoco model. The documentation shows that crb is returning the mass and composite rigid body inertia. According to CRBA the inertia matrix is 6x6 but the crb returns a vector is of length 10 for each subtree. How does they represent crb inertia? Also is cinert just returning inertia of each body in CoM frame? or Am I missing something here?
     
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    crb and cinert are intermediate results that were not meant to be documented and exposed to the user. they express the mass and inertia of a single (cinert) or composite (crb) rigid body relative to the com of the subtree to which the body belongs. the 6x6 matrix you are referring to has special structure where only 9 numbers can vary, and MuJoCo represents it in compressed form. the 10th number is the mass.