Skip to main content

This is a clearer implementation of a library to interact with the Adeept rasptank robot. Pins are hardcoded

Project description

My Rasptank

Hello there! I created this version of the rasptank code to be more modular and start developing a ROS code. With this implementation you can instantiate the object Rasptank, (only one can be created).

To install:

pip install daiego43_rasptank

Rasptank Control

To control the rasptank you can use the following methods:

from daiego43_rasptank.rasptank import Rasptank
rasptank = Rasptank()

A rasptank object is composed of the following sensors and actuators:

class Rasptank:
    def __init__(self):
        # Brazo del robot
        self.link_4 = Servo(15, "end_effector", min_angle=0, max_angle=90, home_angle=90)
        self.link_3 = Servo(14, "wrist", min_angle=0, max_angle=180, home_angle=80)
        self.link_2 = Servo(13, "elbow", min_angle=0, max_angle=135, home_angle=110)
        self.link_1 = Servo(12, "base", min_angle=0, max_angle=180, home_angle=120)
        self.link_0 = Servo(11, "camera", min_angle=70, max_angle=120, home_angle=110)

        # Camara del robot
        self.video = Camera()

        # Ruedas del robot
        self.left_wheel = LeftWheel()
        self.right_wheel = RightWheel()

        # Sensor distancesensor
        self.ultrasonic_sensor = DistanceSensor()

        # Sensor de linea
        self.line_follower = MyLineSensor()

5 servos, 2 wheels, 1 camera, 1 ultrasonic sensor and 1 line sensor. The LEDs are not implemented bc I had to remove them from my unit. Also all these classes are my own implementation and might have some errors. But we can essentially get and set every sensor in the robot with a more friendly interface.

Comments

Since for me this package is ready to be used with my own robot, now I am continuing with the ROS implementation. If you reading this, would like to install this software or test it on your own robot, please let me know or contact me and we can work together to make this package better for everyone :).

Now I am working on a ROS package that essentially publishes sensor info and subscribes to the wheels and servos to control the robot. I think that will be a separate package.

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

daiego43_rasptank-0.0.9.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

daiego43_rasptank-0.0.9-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file daiego43_rasptank-0.0.9.tar.gz.

File metadata

  • Download URL: daiego43_rasptank-0.0.9.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for daiego43_rasptank-0.0.9.tar.gz
Algorithm Hash digest
SHA256 eecfc36650062e5bb437130ab9ae05b41b7437942d30321347245571b9ffa5ca
MD5 c51be17a5021a1a7eee9804e6d582c98
BLAKE2b-256 606ee7334679e9131a71da390895ebc60e7e9f9806bf20129b3beb1a5ad70c27

See more details on using hashes here.

File details

Details for the file daiego43_rasptank-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for daiego43_rasptank-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3dbd5b35e9c5d649f63bcee3d504036313695df465db0792d3805e8a5f2636de
MD5 ebdc1c3ec22fa84fdeef7cbc6897594c
BLAKE2b-256 23d75b3066010874b3199ba8eeac0e72e71e5cb32372f3683b7a6ee07a392cad

See more details on using hashes here.

Supported by

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