Comments (8)
Hi,
thanks for your advice, this did make the video more nature!
After some struglling I raised the fps to ~20 by adding this block
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!
After some struglling I raised the fps to ~20 by adding this block
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
from rex-gym.
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 render = False
, did you tried removing that if statement as well?
from rex-gym.
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
from rex-gym.
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
from rex-gym.
Do you have the same behavior running the policy_player in render mode? just wondering if the pybullet update made some changes
from rex-gym.
HIii, just checked several things:
- I found that walking backwards or forwards is randomly chosen, so I think the main problem is the gait/frequency etc
- sometimes the step_length parameter varies a bit(i.e. from -0.1 to -0.3), not sure if this is normal?
- I tried the newest pybullet with a monitor, and the robot walked well. I also tested the session with 3 settings:
- render and record video at same time --> moving slowly
out.mp4
- render only --> normal
out1.mp4
3)record video only --> rapid frequency, yet slow
cap_only.mp4
I guess the problem is mainly about timing, let me take a deeper look at that.
Here is my implementation of recording if you are interested:
https://github.com/Dzhange/rex-gym/blob/779470994e74259f5b29db62beb4f4aa05f8ddeb/rex_gym/playground/policy_player.py#L45-L84
from rex-gym.
I think I found the problem:
In render mode, fps is around 50
but when using capture_frame
to visualize, the fps drops to ~3
I'm wondering if there is any method to fix the time for each step in the pybullet world?
or do you have any suggestions?
Thanks!
from rex-gym.
Each env has its own metadata:
rex-gym/rex_gym/envs/gym/walk_env.py
Line 27 in 2666304
Have you tried editing video.frames_per_second
?
from rex-gym.
Related Issues (20)
- Custom Object Detection Algorithm HOT 1
- Question about real robot and servos HOT 1
- how to learn a policy from scratch HOT 1
- General questions HOT 1
- Offscreen rendering made terrain disappear HOT 7
- issue with installing HOT 7
- Considerations for 'Learning Quadrupedal Locomotion over Challenging Terrain' Paper HOT 2
- Performance issue in the definition of append, rex_gym/agents/ppo/memory.py HOT 3
- Issue with multiple envs and determinism HOT 1
- change learning algorithm
- running error in windows
- how to judge a trained policy is good or bad?
- cannot run HOT 2
- Issue with running a pre-trained policy
- Modules dependencies error HOT 1
- about training use gpu or cpu HOT 4
- OSError while running rex-gym policy HOT 8
- Not sure if my training is working. No window opens. HOT 6
- Training from command line example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rex-gym.