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.3.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.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: robobosim-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 948b133cb0170a6ce40545a1c0f6591590239bc7750e217ac0a728b5d992b8de
MD5 1321a73b594eefad014fb288a7eca225
BLAKE2b-256 00c7dfa2b118ee425a72dfd0569655aa049ae39fcf55fbd6b0fad1e96c824b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: robobosim-1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 500379b5df298230e26912793d569314d74d33b73029e78d586e811d11ffc42c
MD5 f6d9b5a01378f47cdd8f1058e5191703
BLAKE2b-256 7833dec0c9d9aaa9a9ace44a047c12da9767a6e31d0414ffb1aed2ed0eb40e3c

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