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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robobosim-1.2.tar.gz.
File metadata
- Download URL: robobosim-1.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e85d8d363f303a6d597b67aa3797990bdf55264f0c4738640d27080da1f8e0a0
|
|
| MD5 |
f7ca9021681f6e3f87ee5e3fb0d3609b
|
|
| BLAKE2b-256 |
d998742d42f37f5f28ea8eba0ded79a0a13ed0647327b0fefce35ce841e2ec71
|
File details
Details for the file robobosim-1.2-py3-none-any.whl.
File metadata
- Download URL: robobosim-1.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94df957418e9c28ad6dd1a6cf7105dd104347c36d73f623bdbfbe2b45be6ed16
|
|
| MD5 |
f93ffb483f269e00bda700ead6ceb0dc
|
|
| BLAKE2b-256 |
caa9c93bbd0f384dad2bf489d6329fdafca9117c53bdbcc099f097fb3098f3b3
|