Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structure overhaul to use a pipeline passed an array of consumers #1

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

e3l
Copy link
Contributor

@e3l e3l commented Jan 15, 2022

No description provided.


for key, item in data.items():
# TODO this probably isn't good
self.network_table.putValue(key, item)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use isinstance() ?

Ie:
isinstance(var, bool)
# Put a boolean value in the network table
isinstance(var, float)
# Put a float value in the network table
isinstance(var, list)
# Check type of items in list then put an array in the network table
etc.

I think that as long as we pass only the most essential information from Jetson to robot, then it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants