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

Uploaded Source

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