Bullet-based simulation for SoftBank Robotics' robots
Project description
qibullet
Bullet-based python simulation for SoftBank Robotics' robots.
Installation
The following modules are required:
- numpy
- pybullet
The qibullet module can be installed via pip, for python 2.7 and python 3:
pip install --user qibullet
Usage
Please note that only the Pepper robot is currently handled by this module. A robot can be spawn via the SimulationManager class:
from qibullet import SimulationManager
if __name__ == "__main__":
simulation_manager = SimulationManager()
# Launch a simulation instances, with using a graphical interface.
# Please note that only one graphical interface can be launched at a time
client_id = simulation_manager.launchSimulation(gui=True)
# Spawning a virtual Pepper robot, at the origin of the WORLD frame
pepper = simulation_manager.spawnPepper(
client_id,
[0, 0, 0],
[0, 0, 0, 1],
spawn_ground_plane=True)
Or via the PepperVirtual class:
import time
import pybullet as p
import pybullet_data
from qibullet import PepperVirtual
if __name__ == "__main__":
physicsClient = p.connect(p.GUI)
p.configureDebugVisualizer(p.COV_ENABLE_RENDERING, 1)
p.configureDebugVisualizer(p.COV_ENABLE_RGB_BUFFER_PREVIEW, 0)
p.configureDebugVisualizer(p.COV_ENABLE_DEPTH_BUFFER_PREVIEW, 0)
p.configureDebugVisualizer(p.COV_ENABLE_SEGMENTATION_MARK_PREVIEW, 0)
p.setRealTimeSimulation(1)
p.setGravity(0, 0, -9.81)
p.setAdditionalSearchPath(pybullet_data.getDataPath())
p.loadMJCF("mjcf/ground_plane.xml")
pepper = PepperVirtual()
pepper.loadRobot([0, 0, 0], [0, 0, 0, 1], physicsClientId=physicsClient)
More snippets can be found in the examples folder:
- A basic usage of the PepperVirtual class
- Launch multiple simulation instances
- A script using several simulation instances to compute the error on the joint positions
- A basic usage of the PepperRosWrapper class (bridge between qibullet and ROS)
- Script allowing a simulated model to mimic a real robot's movements
Documentation
The documentation can be generated via the following command (the epydoc Python package has to be installed beforehand):
epydoc --html qibullet/ -o docs/ --name qibullet
Troubleshooting
OpenGL driver
If you encounter the message:
Workaround for some crash in the Intel OpenGL driver on Linux/Ubuntu
Your computer is using the Intel OpenGL driver. Go to Software & Updates, Additional Drivers, and select a driver corresponding to your GPU.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qibullet-1.0.0.tar.gz
.
File metadata
- Download URL: qibullet-1.0.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a5a66ba9351a2722dac26969440790c69ec9a31da914a83e76a3754eccaac8 |
|
MD5 | 93972710abed657865de47b50fb18abf |
|
BLAKE2b-256 | 8e00f174f0dbf944f1d71ffd3ac63fc6c9175ef4264c88828a82f97277bb7b17 |
File details
Details for the file qibullet-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: qibullet-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4346b35ad092fcb6b95a1929e4dd2b63394f24af87a9097033ee8e440308d344 |
|
MD5 | 67bce5b9e6f2b6525c7031d5a3ad82ff |
|
BLAKE2b-256 | 4ebd59655bc3721344c9e8b9b0250460c18ce7b2cfabd31d7823825789e9181d |