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.4.0.tar.gz (9.0 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.4.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for robobosim-1.4.0.tar.gz
Algorithm Hash digest
SHA256 520242163bd2d6417403c8e6f0cef402704463b5bba61382822d09f15073bc7b
MD5 eebce38fd240d494d629757ef927caa4
BLAKE2b-256 34d95a4b17059a5c02deda6be303c70c7ede244ecfcd4c0f6e2120124ec07af0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robobosim-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3fa2adcd1b8cfda11d3d614e3097d0ee7ed4f79afa07d08ee68d07c407a8950
MD5 87eeea633ca876a2e18f20382fbff55d
BLAKE2b-256 a87af0149324eb85e85c5c42c7107551ef99ab0b6990652f61c61e3a65577d47

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