NROBOT API library
Project description
NROBOT
NROBOT is a Python library for NROBOT API Made By Nasir Ali.
Installation
Use the package manager pip to install NROBOT.
pip install NROBOT
Usage
from NROBOT import *
# Initialize Robot
robot = NROBOT('ws://192.168.4.1:81/')
# Move Function
robot.move('F')
robot.move('B')
robot.move('L')
robot.move('R')
# Stop Robot
robot.stop()
# Turn Robot Led On/Off
robot.led(1)
robot.led(0)
# Set Robot Speed 0-255
robot.speed(150)
# Set Robot Step Size Based on Time ms
robot.step_delay(100)
# Set Robot Mode
{
'0':'STEP_MODE',
'1':'SMOOTH_MODE',
'2':'CONTINOUS_MODE'
}
robot.mode(0)
robot.mode(1)
robot.mode(2)
# Enable/Disable Object Avoidance Mode
robot.object_avoidance_mode()
# Get Distance to Object infront of Robot
robot.object_distance()
# Command Line Live Remote Mode
robot.cmd_control()
Contact
Github : https://github.com/nasirxo
Facebook : https://fb.com/nasir.xo
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
NROBOT-0.1.0.tar.gz
(3.4 kB
view details)
File details
Details for the file NROBOT-0.1.0.tar.gz
.
File metadata
- Download URL: NROBOT-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.8.2 requests/2.27.1 setuptools/62.1.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e854221913da9072922773e93602648415ea432ad029e024bb3849c2f23ffa9b |
|
MD5 | 6201f9cd2fab6b83240d22ff0b406316 |
|
BLAKE2b-256 | 83a1fcbeac68e6ed4055195b5cf7f258fe46e0d31fb7881235e20b4549c9d14a |