Energy conservation of robot simulation.

Discussion in 'Simulation' started by Dongho Kang, May 19, 2018.

  1. Hello,

    I am trying to simulate 18 DOF quadrupedal robot (the model is as the following image) using MuJoCo. (GUI was developed by myself.)

    upload_2018-5-19_20-19-22.png

    In order to check energy conservation, I applied the z-direction force for certain amount of time and then dropped the robot and check if the energy is conserved or not during the free drop. You can see the video in the link:



    There's no internal collision, and the timestep is 0.005 second. Since there's no collision, I expected the total energy would be a constant, but it reduces as the following plot.

    upload_2018-5-19_20-26-18.png

    I tested both Euler and RK4 integrator, but the results are almost same. Am I missing something here? Could you give me any suggestion to make the total energy of simulation is conserved?
     
    Last edited: May 19, 2018
  2. I realised it is caused by joint limit. As I removed all joint limit the energy is preserved