test_integration
- test_integration.test_integration(showPlots: bool = False)[source]
Tests that integration with RK4 in Basilisk is equal to integration with RK4 in MuJoCo.
The simulation is simple. The multi-body is made of a central cube with two panels attached with one rotational degree of freedom (see
test_sat.xml
for details). No forces are exerted on the system, but the system is given an initial angular rate and the panels’ joints are initialized to some velocity.The native mujoco toolbox was used to integrate this dynamic environment, and the results were saved to
test_sat_qpos_reference.txt
. Basilisk is also used to integrate these dynamics, using the same integrator, thus the results should be numerically identical.