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.1.tar.gz (9.3 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.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robobosim-1.5.1.tar.gz
  • Upload date:
  • Size: 9.3 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.1.tar.gz
Algorithm Hash digest
SHA256 02fee51dd6f518175717a0252d6779a89d79ccf841372be28ca2357ee0d37d02
MD5 4b3a2a2ad41bfdddd087b6cf308a754e
BLAKE2b-256 1e2664709d2b7b337d90232920c4069aed695085b63d8f415e575969028a58c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robobosim-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca154885bfc2a6941cf40ee47e32b5aaab5238f9eec7c3e10c605ca99564d513
MD5 6a0c4f4bb00cb24c3feb09e42198d21f
BLAKE2b-256 125bd76843845efbbfadc4732b5933312a190aa230f2b29884ba67d8515facac

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