Closed dytan closed 5 years ago
Hi dytan, can you explain why you want to run the raisimGym with ssh? Are you using raisim in a remote machine?
Frankly, I haven't used raisimGym in a remote machine. The only reason that it would not work is Ogre as far as I see. We will shortly start working on raisimUnity which will be a remote visualizer. Until then, I would recommend turning the rendering off in the config and make a separate video recorder (just like openai baselines).
Thank you for the replay.
That's right, I try to run the env in remote machines. And the machine is on cluster, docker container dispatched by some process which I have no access to the 'nvidia-docker' command, everything is through ssh. Testing on local is OK. Also tried visualgl, but havn't made it work yet.
Turing the rendering off shoud be fine. Thank you again.
Turn's out follow solution on the ogre issue 810 and rebuild ogre will make things work (tried this earlier on a ubuntu16.04 docker image (which opengl renderer string is 'software Rasterizer') encounter another exception).
alter 'ogre/RenderSystems/GLSupport/src/GLX/OgreGLXGLSupport.cpp: GLXGLSupport::GLXGLSupport()'
mCurrentMode.width = screenSizes[currentSizeID].width;
mCurrentMode.height = screenSizes[currentSizeID].height;
mCurrentMode.refreshRate = XRRConfigCurrentRate(screenConfig);
to
if (nSizes==0){
mCurrentMode.width = DisplayWidth(mXDisplay, DefaultScreen(mXDisplay));
mCurrentMode.height = DisplayHeight(mXDisplay, DefaultScreen(mXDisplay));
mCurrentMode.refreshRate = 0;
mVideoModes.push_back(mCurrentMode);
}
else {
mCurrentMode.width = screenSizes[currentSizeID].width;
mCurrentMode.height = screenSizes[currentSizeID].height;
mCurrentMode.refreshRate = XRRConfigCurrentRate(screenConfig);
}
Thanks for the work. I'd try the raisim engine for rl usage, environment is built exactly follow the given dockerfile, and to run we connect to the docker container through ssh with x-forwarding enabled. When run any example script, trigger a 'segmentation fault' error. After search and check, it seems to be a ogre issue, 'gl' related render plugin is not able to be loaded, run the built Orge example 'SampleBrowser' show the same error, I am not familiar with Ogre and found few related issues on orge repository but not a suitable way to solve this problem, seems x forwarding not use the right gl. Is there any way to run raisim gui through x forwarding on docker ?
the container follow the dockerfile, and runtime config : OS: ubuntu 18.04 GPU: GTX 1080, driver 418.56, cuda 10.1
run 'python3 scripts/laikago_blind_locomation.py', output:
run "glxinfo | grep 'OpenGL render', output: