-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Robot walking backwards in headless mode #21
Comments
this looks like a timing issue, and I see you had my same impression (as you tried to edit the simulation timestep timing. However that block won't be executed if |
Yeah I tried to remove that if statement, actually the videos are recorded with this block executed. I'm wondering if this problem is related to the parameters updated here? rex-gym/rex_gym/envs/gym/walk_env.py Lines 262 to 275 in 2666304
|
I may be wrong but, nope, don't think so.. in both cases, the values we set are actually the same rex-gym/rex_gym/envs/gym/walk_env.py Line 156 in 2666304
rex-gym/rex_gym/envs/rex_gym_env.py Line 260 in 2666304
|
Do you have the same behavior running the policy_player in render mode? just wondering if the pybullet update made some changes |
HIii, just checked several things:
out.mp4
out1.mp43)record video only --> rapid frequency, yet slow cap_only.mp4I guess the problem is mainly about timing, let me take a deeper look at that. |
I think I found the problem: In render mode, fps is around 50 I'm wondering if there is any method to fix the time for each step in the pybullet world? |
Each env has its own metadata: rex-gym/rex_gym/envs/gym/walk_env.py Line 27 in 2666304
Have you tried editing |
Hi, thanks for your advice, this did make the video more nature! not sure if this would support batchified training but I think that has little to do with this issue, I'll close itHi, thanks for your advice, this did make the video more nature! self._pybullet_client = bullet_client.BulletClient(connection_mode=pybullet.DIRECT)
import pkgutil
egl = pkgutil.get_loader('eglRenderer')
if egl:
pluginId = pybullet.loadPlugin(egl.get_filename(), "_eglRendererPlugin")
else:
pluginId = pybullet.loadPlugin("eglRendererPlugin")
print("pluginId=",pluginId) not sure if this fps would support batchified training, but I think that has little to do with this issue, I'll close it |
Hi
After I fixed the headless rendering issue I had another problem.
While running the
policy_player
in headless mode, I turnedrender
option to False when initializing the environment, and used agym.wrappers.monitoring.video_recorder
to record the scene.Here you can see the robot is walking smoothly backwards(walking environment, in mounts terrain).
2021-05-19.10.56.13.996819.mp4
Another case(gallop, plane), but this time is turning around
2021-05-19.11.09.19.051276.mp4
I tried enabling the sleep control in
rex-gym/rex_gym/envs/rex_gym_env.py
Lines 387 to 398 in 2666304
but the problem still exists. Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: