Skip to content
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

rgb and GL #200

Open
BGWH123 opened this issue Mar 25, 2024 · 2 comments
Open

rgb and GL #200

BGWH123 opened this issue Mar 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@BGWH123
Copy link

BGWH123 commented Mar 25, 2024

I deployed this project on Ubuntu 22.04 running on a VM virtual machine. Now, I have set the GUI to true, but I keep encountering the following error:
libGL error: MESA-LOADER: failed to open vmwgfx: /usr/lib/dri/vmwgfx_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: vmwgfx
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
Creating context
Failed to create GL 3.3 context ... using old-style GLX context
Failed to create an OpenGL context

|| If I change the mode to RGB mode, the error is reported as follows:
python learn.py
pybullet build time: Nov 28 2023 23:45:17
[INFO] BaseAviary.init() loaded parameters from the drone's .urdf:
[INFO] m 0.027000, L 0.039700,
[INFO] ixx 0.000014, iyy 0.000014, izz 0.000022,
[INFO] kf 0.000000, km 0.000000,
[INFO] t2w 2.250000, max_speed_kmh 30.000000,
[INFO] gnd_eff_coeff 11.368590, prop_radius 0.023135,
[INFO] drag_xy_coeff 0.000001, drag_z_coeff 0.000001,
[INFO] dw_coeff_1 2267.180000, dw_coeff_2 0.160000, dw_coeff_3 -0.110000
[ERROR] in BaseAviary.init(), PyBullet and control frequencies incompatible with the desired video capture frame rate (24.000000Hz)

how to solve them?
thanks

@BGWH123
Copy link
Author

BGWH123 commented Mar 25, 2024

both in GUI is true

@JacopoPan JacopoPan added the bug Something isn't working label Apr 5, 2024
@JacopoPan
Copy link
Member

The first and main issue (not being able to use the GUI) is that PyBullet cannot create its graphical context.
It likely coming from your driver/graphics setup and independent from the code in this repo. I would try not using a VM: most of the code here should work well on Windows and macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants