A simple python driver for Kobuki mobile robot
Project description
Kobukidriver
|version|
Kobukidriver is a python driver for Kobuki quanser qbot2 which helps in control and utilization of the mobile robot.You can build numerous application with the help of the driver.
Links
Quickstart
Install using pip:
::
pip install kobukidriver
kobukidriver works in both windows and linux
Features
- Develop any mobile robot applications
- Gyro sensor data
- Docking IR data
- Inertial sensor data
- Cliff sensor data
- current data
- general purpose input data
- Basic sensor data
- Set/Clear LED
- Set digital output pin
- Control mobile robot speed
- Play inbuilt/custom sounds
Examples
Get started by importing the Kobuki
class:
.. code-block:: python
#import the kobuki class
from kobukidriver import Kobuki
#create the instance for the kobuki
kobuki_instance=Kobuki()#raise error if kobuki is not connected
Example code for reading basic sensor data from Kobuki robot
.. code-block:: python
from kobukidriver import Kobuki
import time as t
kobuki_instance=Kobuki()
while(1):
t.sleep(0.2)#delay for fetching data
basic_sensor_data=kobuki_instance.basic_sensor_data()
print(basic_sensor_data)#prints the basic sensor data from the robot
Steps for building the mobile robot application using the driver
.. code-block:: python
from kobukidriver import Kobuki
kobuki_instance=Kobuki()
#Don't change the start function name
def start():
while(1):
#your logic
kobuki_instance.kobukistart(start)
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
kobukidriver-0.0.1.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for kobukidriver-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe5eaefc05bcc6d86fb3cf8654b1fc1a480feebcf0724d44961a8fecb753dbc1 |
|
MD5 | ea4346df7349f200788eda8bf6957c62 |
|
BLAKE2b-256 | 77fbc1285b666f9c44ad4c29725b395fb5fcfcf6ed77686ecf58a859a0fde315 |