Showing PyBullet GUI in PyQt5 Window/Widget

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
ryanha619
Posts: 1
Joined: Thu Jul 22, 2021 3:13 pm

Showing PyBullet GUI in PyQt5 Window/Widget

Post by ryanha619 »

Hi, I am a quite novice in Python and PyBullet.
My problem is that I want to show a robot simulation GUI in a GUI I created with PyQt5.

I can make a single window showing PyBullet GUI:
p.connect(p.GUI, options="--background_color_red=0.08 --background_color_blue=0.08 --background_color_green=0.08 --width=500 --height=350")
This is what PyBullet GUI shows (not in PyQt5)
This is what PyBullet GUI shows (not in PyQt5)
Capture2.PNG (22.64 KiB) Viewed 17703 times


What I want is to display PyBullet GUI in one of PyQT5 widget/windows. (I want to show the PyBullet Simulation window in the Robot Window in PyQt5 as shown in the 2nd attached image).
This is where I want to show PyBullet GUI
This is where I want to show PyBullet GUI
Capture.PNG (24.42 KiB) Viewed 17703 times
It would be greatly appreciated if anyone can help me with this.
Thank you.
Post Reply