Skip to content

DIY Robot Factory Class #7

@MGross21

Description

@MGross21

Do-It-Yourself (DIY) Robot

cuz why not 🤷‍♂

Background

Robot enthusiasts and engineers may have a custom robotic platform. It is very unlikely that someone will integrate their own robot into this library ecosystem.

However...

A robot class should be made such that its like a pick and choose system.

Ideas

RobotName(Communication, **kwargs)

Robot(SocketClass, "IP", "Port") # Example

Can use the __call__ function

def __call__(self, Communication, **kwargs):
     # Setup connection handling based on communication

__init__ function/class would not come with communication and command inheritance.

Example pseudocode:

from armctl import DIYRobot
from armctl.comms import Serial

Robot = DIYRobot() # "Blank Factory Class"

Robot(Serial, "COM0", "115200") # uses call function

From here, the engineer could just use the send_command() built-in function to generate custom calls. No template commands will come with this class as nothing is assumed or known. DIYRobot would only have:

connect() # Internal
disconnect() # Internal
send_command() # External

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions