Skip to main content

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.

Metadata

Release files for daiego43-rasptank 0.0.9

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

Source distribution (sdist)

Source distribution for daiego43-rasptank 0.0.9
File Size Uploaded
daiego43_rasptank-0.0.9.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for daiego43-rasptank 0.0.9
File Interpreter ABI Platform
daiego43_rasptank-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / daiego43_rasptank-0.0.9.tar.gz

Download URL daiego43_rasptank-0.0.9.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eecfc36650062e5bb437130ab9ae05b41b7437942d30321347245571b9ffa5ca
BLAKE2b-256 checksum
How to use checksums
606ee7334679e9131a71da390895ebc60e7e9f9806bf20129b3beb1a5ad70c27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / daiego43_rasptank-0.0.9-py3-none-any.whl

Download URL daiego43_rasptank-0.0.9-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dbd5b35e9c5d649f63bcee3d504036313695df465db0792d3805e8a5f2636de
BLAKE2b-256 checksum
How to use checksums
23d75b3066010874b3199ba8eeac0e72e71e5cb32372f3683b7a6ee07a392cad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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