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

[AR-6566] object tag feature #58

Merged
merged 3 commits into from
Oct 10, 2023
Merged

[AR-6566] object tag feature #58

merged 3 commits into from
Oct 10, 2023

Conversation

young-seoulrobotics
Copy link
Contributor

  • Add Stage enum to custom.proto

custom.proto Outdated
@@ -21,6 +21,11 @@ message ProfilingResultSet {
map<string, sensr_proto.ProfilingResult> algo_nodes = 2;
}

enum Stage {
STAGE_NONE = 0;
STAGE_DRIVING = 1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@minhup could you add more stages?

Copy link

@minhup minhup Sep 7, 2023

Choose a reason for hiding this comment

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

For now, those two are enough. One for being controlled, one for not. We can add more later.

Copy link

@minhup minhup Sep 7, 2023

Choose a reason for hiding this comment

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

STAGE_NONE -> NONE and STAGE_DRIVING -> CONTROLLED

Copy link
Contributor Author

@young-seoulrobotics young-seoulrobotics Sep 7, 2023

Choose a reason for hiding this comment

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

Unfortunately we should keep the STAGE_ prefix because enum in protobuf is plain enum so NONE could conflict with other enums. Also, the style guide suggests putting the type name as a prefix - ref.

enum FooBar {
  FOO_BAR_UNSPECIFIED = 0;
  FOO_BAR_FIRST_VALUE = 1;
  FOO_BAR_SECOND_VALUE = 2;
}

Regarding CONTROLLED, I also considered the name but wasn't sure if the other project would also "control" something like moving a trailer or controlling a crane to pick up a container. What do you think?

Copy link

Choose a reason for hiding this comment

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

Controlled meant being controlled by motion planner. We only send FoG for controlled objects. I didn't consider the trailer cases yet since we are not doing the project yet so no need to support it now. But we need the controlled stage for building our full stack (perception + control). For the prefix, it's fine to keep it though if it makes teh conflict.

Copy link

Choose a reason for hiding this comment

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

The car is being driving doesn't necessary being controlled by motion planner.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, that's a good point. I'll rename it with STAGE_CONTROLLED.

@sebastian-seoul-robotics
Copy link
Contributor

The commit 1a004b2 from this pull request is the current version that we use for argos while this PR is not merged. This should be avoided. Please proceed with the PR

@young-seoulrobotics
Copy link
Contributor Author

Thanks for the reminder. I completely forgot the PR. Let me merge it ASAP.

@young-seoulrobotics
Copy link
Contributor Author

@sebastian-seoul-robotics can you check the PR? I believe it doesn't break the backward-compatibility as the stage is newly introduced.

@young-seoulrobotics young-seoulrobotics merged commit 988238d into master Oct 10, 2023
@young-seoulrobotics young-seoulrobotics deleted the AR-6566/vio branch October 10, 2023 07:23
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.

3 participants