-
Notifications
You must be signed in to change notification settings - Fork 55
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
check if lane request's fleet_name is equal to the fleet's fleet_name #95
Conversation
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.
Thanks for catching this! It looks good to me.
One thing to consider: if the request_msg->fleet_name
is blank, then should we apply the request to all fleets? Otherwise to close a lane for all fleets, a user would have to issue a separate lane request to each of them.
By the way, we have a "DCO" requirement (helps us avoid lawsuits from patent trolls) which your commit is not currently satisfying. Before we can merge this PR, we'll need you to follow the instructions here: https://github.com/open-rmf/rmf_ros2/pull/95/checks?check_run_id=3259667077 |
5a1bf5a
to
b8c3f76
Compare
Hi, sorry, Can I clarify, shall I make another commit to add this in? |
It looks like you've followed the instructions correctly, so now the DCO check is approved. Thank you! |
Oh sorry, I misread the original question here. I think it's fine either way. If you agree with my suggestion then feel free to create add a commit for it. Otherwise we can leave it as-is and potentially add in the behavior I recommended at another time if anyone requests it. |
Oh, I apologize for how nit-picky this is, but the code style checker is complaining about trailing whitespace on lines 826 and 828. Line 826 has 8 trailing spaces while line 828 has 7 trailing spaces i.e.
The code style checker won't let the PR pass until those trailing spaces are removed. |
In case you're using Visual Studio Code I strongly recommend the Strict Whitespace plugin, as well as these settings in your
|
Oh! I see sorry.. my bad. I also added an additional check to see if the fleet_name is empty which you mention previously. Additionally, I made changes to the close_lane node as well. Otherwise if the fleet_name is empty the request would never be fulfilled as the fleet_name from the request will never match the fleet_name of the ClosedLanes messages. |
18758b9
to
12cfd76
Compare
Hi, sorry but I just noticed that the merging is block as it says that the base branch requires all commits to be signed. Can I check if I should I do a git rebase to sign all my previous commits on my branch? |
Right, the easiest way I know of for fixing that is to set up the GPG signing using these instructions and then doing a rebase. Apologies again for all these contribution barriers. Luckily once the GPG signing is set up once, it will work forever (per computer that you use). |
Signed-off-by: Kai Wen <lkw303@gmail.com>
Signed-off-by: Kai Wen <lkw303@gmail.com>
… from the request is empty instead of the fleet_name of the ClosedLanes message Signed-off-by: Kai Wen <lkw303@gmail.com>
e232c31
to
1a920b5
Compare
Signed-off-by: lkw303 <lkw303@gmail.com>
…lane_request_sub Signed-off-by: lkw303 <lkw303@gmail.com>
1a920b5
to
3c3f3c7
Compare
…lane_request_sub Signed-off-by: lkw303 <lkw303@gmail.com>
Hi! Just merged with main and have signed off and verified all my previous commits. Hopefully its all good now. Sorry for all the trouble. |
…lane_request_sub Signed-off-by: lkw303 <lkw303@gmail.com>
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.
Thanks for bearing with our CI and review process, and thanks for the contribution!
…#95) Signed-off-by: lkw303 <lkw303@gmail.com>
…#95) Signed-off-by: lkw303 <lkw303@gmail.com> Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Fixed bug
The Fleet Adapter publishes closed lanes even though the LaneRequest messages were not directed at them. This causes all the fleet adapters to publish a ClosedLanes Message even though the LaneRequest was not meant for them.
Fix applied
Added an if statement to check if fleet_name in LaneRequest is equal to the fleet_name of the fleet. If it is not, return.