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

Iterable Sensors #8

Merged
merged 19 commits into from Apr 17, 2023
Merged

Iterable Sensors #8

merged 19 commits into from Apr 17, 2023

Conversation

luis-camero
Copy link
Collaborator

Sensors are organized by TYPE and then MODEL.

In the YAML, all sensors go under the sensors key, and then under the subkey corresponding to their TYPE (i.e. lidar2d, camera, etc.).

Models of each TYPE are added to a list sensors of the same TYPE. That means sensors are numbered based on their TYPE not their MODEL.

There are class methods to access specific sensors by MODEL.

SENSOR_TYPE = "camera"
CAMERA_MODEL = "base"
NAME = SENSOR_TYPE + "_0"
TOPIC = NAME + "/image"
Copy link
Member

Choose a reason for hiding this comment

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

I believe this should be /image_raw

CONNECTION_TYPE = USB3_CONNECTION
CONNECTION_TYPES = [USB3_CONNECTION, GIGE_CONNECTION]

MONO_8 = "Mono8"
Copy link
Member

Choose a reason for hiding this comment

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

Should there be file with all these consts?

@luis-camero luis-camero merged commit 6a75659 into main Apr 17, 2023
1 check passed
@luis-camero luis-camero deleted the wip-iterable-sensors branch April 17, 2023 16:13
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.

None yet

2 participants