-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat(tier4_control_msgs): add accept start interface #53
feat(tier4_control_msgs): add accept start interface #53
Conversation
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
tier4_control_msgs/msg/WillMove.msg
Outdated
@@ -0,0 +1,2 @@ | |||
builtin_interfaces/Time stamp | |||
bool data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will this data be true/false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whether the target velocity is zero or not. This is done for the command selected by the operation mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. How about asking @maxime-clem about the naming?
From the word WillMove
, I personally feel it's one time only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry I am not familiar with the PauseInterface
.
What I understand:
- The command gate can be "paused" or "unpaused".
- If "unpaused", the control command is used.
- If "paused", the control command is no longer used.
- If "paused", a stopping command is used.
- In both cases, a message is published to indicate if the control command has a velocity of 0 or not.
What do you think about changing WillMove
to something like MovingControlCmd
or StoppedControlCmd
(true if velocity = 0) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kenji-miyake @maxime-clem
Thank you. That's right. This is a function that pauses the vehicle to insert processing when the vehicle starts. IsPaused
is a pause state and WillMove
is used to check if the vehicle is about to depart.
I feel MovingControlCmd
is a command rather than a bool. So how do you feel about IsRequestingDeparture
or IsStartRequesting
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsRequestingDeparture
sounds good to me, but then should we also rename the state name? 🤔
Or IsStartRequesting
might be acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry my suggestion was not good and I understand how it could be confused with a control command 😞
My issue with IsRequestingDeparture
(and IsStartRequesting
) is that it sounds like the command gate is the one requesting departure. However, the message informs about the state (requesting to move or not) of the input of the command gate.
I would thus suggest to change to isDepartureRequested
.
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
Signed-off-by: Takagi, Isamu isamu.takagi@tier4.jp
Related Links
autowarefoundation/autoware.universe#1808
Description
Add the accept start message to hook vehicle starting.
Remarks
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks