Skip to main content

Bullet simulation for SBR robots

Project description

# qibullet

__Bullet-based__ python simulation interface 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:
```bash
pip install --user qibullet
```

## Usage

The following snippet demonstrates a simple use of the qibullet module:
```python
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])

joint_parameters = list()
pepper.subscribeCamera(PepperVirtual.ID_CAMERA_BOTTOM)

# Retrieving an image that can be displayed via an imshow function from
# openCV
img = pepper.getCameraFrame()

while True:
# Setting joint angles
pepper.setAngles("HeadYaw", 0, 1.0)
time.sleep(0.2)
pepper.setAngles("HeadPitch", 1, 0.6)
time.sleep(0.2)
pepper.setAngles(["HeadPitch", "HeadYaw"], [0, 1], 0.6)

# Moving the robot's base
pepper.moveTo(1, 1, 0, frame=PepperVirtual.FRAME_ROBOT)
pepper.moveTo(-1, -1, 0, frame=PepperVirtual.FRAME_ROBOT)

# Checking for self collisions
pepper.isSelfColliding('l_wrist')
pepper.isSelfColliding(["RForeArm", "LForeArm"])
```

More examples can be found in the examples folder.

## 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.

<!-- ![version](https://img.shields.io/badge/status-dev-orange.svg) -->


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-0.0.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

qibullet-0.0.3-py2-none-any.whl (1.3 MB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: qibullet-0.0.3.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.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.12

File hashes

Hashes for qibullet-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c7bb8ac0ac63def7de7fd20dc52f73163e2691ad25720af52f004e49074f526d
MD5 e3789f6ae63100685e17a3b260b38e59
BLAKE2b-256 7ee6fc14b1c3c61f9301654935cbbb65308f3ce6ee83ea5811ba5bcc595edce6

See more details on using hashes here.

File details

Details for the file qibullet-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: qibullet-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.12

File hashes

Hashes for qibullet-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 9bd3bfed8842c8beafb555894e6b42e284f30c8c054e39b95a7b8892d033f716
MD5 1e4549067b562741a5fd5b8d20a7f3d8
BLAKE2b-256 0220eace8ee03fd7b671731511f59addeed715863d8ea8bc750aec345d6ed3b3

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