Skip to main content

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

Metadata

Release files for NROBOT 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NROBOT 0.1.1
File Size Uploaded Provenance
NROBOT-0.1.1.tar.gz 4.2 kB Without provenance Details

Release files / NROBOT-0.1.1.tar.gz

Download URL NROBOT-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9c9a2fbd25e20b9f74a7075d3a510b776dc59a2b1e43bcee55f7f6b2ec5f15e2
BLAKE2b-256 checksum
How to use checksums
b213b00827893052d18fa20fbea334e9027568ec26b2ab70417797c2e57a27bf
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for NROBOT 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page