stanfordnmbl / osim-rl

Reinforcement learning environments with musculoskeletal models
http://osim-rl.stanford.edu/
MIT License
897 stars 249 forks source link

[Hacked] show simulation on windows cloud instances thru RDP #59

Closed ctmakro closed 7 years ago

ctmakro commented 7 years ago

RDP does not support OpenGL (and most cloud machines don't have a graphic adapter capable of OpenGL2.1 or higher), so whenever you RunEnv(visualize=True), an error will be thrown. For those who want to visualize their simulation in a cloud environment, I have a solution here: https://github.com/ctmakro/stanford-osrl/blob/master/README.md#visualize-in-environments-without-a-graphic-card-ie-on-cloud

hope that helps.

spMohanty commented 7 years ago

Just reiterating our discussion from crowdAI/Lobby. That mesa doesnt really help with the Broken Pipe errors (sob sob :cry: )in case of Ubuntu. But if it does help in case of windows servers, it could be interesting to explore if we can put the corresponding mesa related .dlls in the opensim conda package.

ctmakro commented 7 years ago

by design, simbody-visualizer.exe will dynamically call whatever openglxx.dll available. By default it will load from PATH, but if another opengl32.dll exist in CWD, it will try the one in CWD first. This is why Mesa, as a software OpenGL implementation, works by putting dlls near executables.

kidzik commented 7 years ago

Thread now linked in the FAQ in readme. Closing the issue.