kindredresearch / SenseAct

SenseAct: A computational framework for developing real-world robot learning tasks
https://www.kindred.ai/SenseAct
BSD 3-Clause "New" or "Revised" License
214 stars 42 forks source link

Display visualization of simulator mujoco's virtual world #7

Closed danielsnider closed 6 years ago

danielsnider commented 6 years ago

I'm glad you have created the simulation example, but I would like to see the action happening in the simulated world. For the double pendulum simulation, examples/sim_double_pendulum.py, it would be very nice to have a configuration option that if enabled will display the visualization of the pendulum swinging in simulation.

I can try to implement this if you point me to documentation on how to render the virtual world.

Thanks!

fhogan commented 6 years ago

@danielsnider,

Yes this is a good point the rendering should be enabled to visualize the learning progress. There is an optional argument is_render in the class GymSimulator that can be set to True to enable rendering. The GymSimulator object is created within the sim_double_pendulum environment. The optional argument should be passed when creating the GymSimulator object, and in turn passed as an argument to the DoubleInvertedPendulum class, that is built in the sim_double_pendulum example script.

Thanks for pointing this out,

Francois