Skip to main content

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()

# Get Robot Battery Voltage & Level
robot.get_battery()

# Command Line Live Remote Mode
robot.cmd_control()

Command Line Interface

/* TYPE FOLLOWING IN LINUX TERMINAL */
$ nrobot

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

MIT

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

NROBOT-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file NROBOT-0.1.1.tar.gz.

File metadata

  • Download URL: NROBOT-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.8.2 requests/2.25.1 setuptools/62.1.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for NROBOT-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9c9a2fbd25e20b9f74a7075d3a510b776dc59a2b1e43bcee55f7f6b2ec5f15e2
MD5 9cbe99a237d3e2b6036295cabcb39798
BLAKE2b-256 b213b00827893052d18fa20fbea334e9027568ec26b2ab70417797c2e57a27bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page