Skip to main content

Robobo Sim remote control library

Project description

robobosim.py

RoboboSim.py is the library used to directly interact with the functions exclusive to the simulator for the for the Robobo educational robot (http://www.theroboboproject.com) in the Python language.

Installation

To use this library on your project, install it with pip: pip install robobosim

And import it like: from robobosim.RoboboSim import RoboboSim

Basic usage

See index.html in the docs folder.

Sample code

# Import the library
from robobosim.RoboboSim import RoboboSim

# Connect to the RoboboSim
IP = "localhost"
sim = RoboboSim(IP)
sim.connect()

sim.wait(0.5)
# Get current location and print it
loc = sim.getRobotLocation(0)
print(loc["position"])
sim.wait(0.5)

# Move the Robot -20mm in the X axis
pos = loc['position']
pos["x"] -= 20
sim.setRobotLocation(0, loc['position'])
sim.wait(0.5)

# Reset the simulation
sim.resetSimulation()

sim.disconnect()

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

robobosim-1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robobosim-1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file robobosim-1.0.tar.gz.

File metadata

  • Download URL: robobosim-1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for robobosim-1.0.tar.gz
Algorithm Hash digest
SHA256 17b00f82d6ce0a9547a260dadc421cd849d37c524abe45ff4bf09bef203079ef
MD5 3aa911afc537173fa7d2ca50b9d1f343
BLAKE2b-256 ac54858e878e7139510da5a130900385c7ef5c0f5829877b90e13233242a377f

See more details on using hashes here.

File details

Details for the file robobosim-1.0-py3-none-any.whl.

File metadata

  • Download URL: robobosim-1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for robobosim-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 602f4f192ed9b4b806765bccc385af59c31c74a77209c320e4ce6e4fda9eda46
MD5 2c775accdd4941c4f47cd18d84e2fe85
BLAKE2b-256 fbe8d1a2a3ec0c1986d67133da73a737b4e52bed11f39660693c094c2604922d

See more details on using hashes here.

Supported by

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