Skip to main content

Bullet-based simulation for SoftBank Robotics' robots

Project description

qibullet Build Status pypi

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:

Documentation

The qibullet API documentation can be found here. The documentation can be generated via the following command (the doxygen package has to be installed beforehand, and the docs folder has to exist):

cd docs
doxygen

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qibullet-1.0.7.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

qibullet-1.0.7-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file qibullet-1.0.7.tar.gz.

File metadata

  • Download URL: qibullet-1.0.7.tar.gz
  • Upload date:
  • Size: 2.1 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.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.12

File hashes

Hashes for qibullet-1.0.7.tar.gz
Algorithm Hash digest
SHA256 5b3fe6fe8d53ebf423e517ced248c949e71fb9fb69791a7deb0569aca83d7be8
MD5 3e5409a59099243c154781313b2c6ca6
BLAKE2b-256 fce3ae91e0e13b498c8f18c95e1dd2098cf530f11b83e5470b63be1c93e62a06

See more details on using hashes here.

File details

Details for the file qibullet-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: qibullet-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.12

File hashes

Hashes for qibullet-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 85d0b1464d6b947415efe4207b2ea5063181c9113bf648a9bf6c306838dcaefd
MD5 229f88584b5069e61c1713592faf0164
BLAKE2b-256 091f42af5e9f07d6f1a0eefe8e33ed41210337c68b15e472142dc0abb52c3fab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page