Does mj_step calls the visualizer?

Discussion in 'Simulation' started by Michael J Mathew, May 14, 2016.

  1. How to see step by step execution of a controller in simulation?
    I get no errors while compilation of hello.c,
    I open the hello.xml using LD_LIBRARY_PATH=. ./simulate ../../hello.xml from bin directory and run the hello.c, but I am not able to visualize any changes. Is this the right way to do it?
     
    Last edited: May 14, 2016
  2. Emo Todorov

    Emo Todorov Administrator Staff Member

    mj_step does not call the visualizer, it only does simulation. see code sample simulate.cpp. it shows how to advance the simulation with mj_step and also visualize the system. hello.c is very basic code that runs the simulation but does not output anything.