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.5.0.tar.gz (9.1 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.5.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robobosim-1.5.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for robobosim-1.5.0.tar.gz
Algorithm Hash digest
SHA256 eae59f5b7d3ab5f9593aa9bd758bbe717028f0b34f409f45039e6b56fb475be5
MD5 27a228762d692d5cc7780a14d1e40f6c
BLAKE2b-256 a0325f65a32071a0ecb1869dfc141db49af5fc224d4156c6d866f5059a196357

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robobosim-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for robobosim-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ea3d13730d7c73336f2c1ef92984e17a0451d743ef3bb23a319d07f7722245b
MD5 36acc14916740dcb4b62fbc378e1712e
BLAKE2b-256 0aeb0a0f8d8905eeac26831c6f1adb621c8566f6e4b30f5bf568b85fe89aaacb

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