Skip to main content

DickerBotClient

DickerBotClient is a Python client library designed for seamless communication with DickerBot robots. It provides a simple interface to interact with DickerBot robots, enabling control over sensors and motors via WebSocket communication.

Features

  • WebSocket Communication: Connects to a WebSocket server to send and receive sensor and control data.
  • Sensor Data: Retrieves and processes sensor information such as accelerometer, gyroscope, and distance sensors.
  • Image Data: Receives image data from the robot and converts it into a usable format.
  • Control Data: Sends motor control data (speed and direction) to the robot.

Installation

You can install the latest release of DickerBotClient from PyPI using pip:

pip install dickerbotclient

Usage in Python

Importing the library in your python script

import dickerbotclient as dbc

Creating an instance of the class

bot = dbc.DickerBotClient()

Connecting to the host socket

Note: Get ip_address and port from the Host UI

bot.connect(ip_address, port)

Polling sensor data

sensor_data = bot.get_sensor_data()

Format: [acceleration_x, acceleration_y, acceleration_z, angular_velocity_x, angular_velocity_y, angular_velocity_z, temperature, distance_left, distance_front, distance_right, distance_back]

Value 999 anywhere indicates error

Polling image data

image = bot.get_image_data()

Format: 96x96 grayscale

Sending control data

bot.set_control_data(left_wheel_speed, left_wheel_direction, right_wheel_speed, right_wheel_direction)
Parameter Description
speed 0-255; 999 = error
direction 0 = neutral; 1 = forward; 2 = backward; 999 = error

Disconnecting from host socket

bot.disconnect()

Example Teleop

# TODO: Create a program to do basic keyboard teleop using w,a,s,d while showing realtime video stream and IMU/proximity data.

DickerBot Project

You can find information about the DickerBot on the GitHub page.

Metadata

Release files for dickerbotclient 1.0.4

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

Source distribution (sdist)

Source distribution for dickerbotclient 1.0.4
File Size Uploaded Provenance Actions
dickerbotclient-1.0.4.tar.gz 4.3 kB Without provenance Details for dickerbotclient-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dickerbotclient 1.0.4
File Interpreter ABI Platform Actions
dickerbotclient-1.0.4-py3-none-any.whl Python 3 none any Details for dickerbotclient-1.0.4-py3-none-any.whl

Total release size: 9.0 kB

Release files / dickerbotclient-1.0.4.tar.gz

Download URL dickerbotclient-1.0.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5325e06b20e6244e1ecfbcbe44f8db4be5e6f074154544cdbeca0b8703296679
BLAKE2b-256 checksum
How to use checksums
4fb514fbd359ec92ab83b107b24908ee9ba22eb36c2cf582ed6857db1e7103af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release files / dickerbotclient-1.0.4-py3-none-any.whl

Download URL dickerbotclient-1.0.4-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4f1a1141011f73e472cf63b46405d5870409dd1b77f014fab101b1e73c9e7a2
BLAKE2b-256 checksum
How to use checksums
94953fc146f6f2cb6cf38abfbc1ae4dafc3b5e03d94d2c2f219bb15c6643db1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Security for dickerbotclient 1.0.4

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.

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