[Collision monitor] Dynamic radius for circle polygon#4226
Conversation
04f4342 to
41723ff
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
41723ff to
b6405d4
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
b6405d4 to
7ed0748
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
7ed0748 to
efe4d57
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
|
@anaelle-sw only major missing thing I see is tests. You should be able to mimic the tests written for the dynamic polygons for the circles (and a little simpler) Given these changes requested, also the docs should be updated in line with not having a new parameter + explaining the use in the existing parameter for a Circle vs Polygon type. |
564ab71 to
bc5f1bf
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
bc5f1bf to
f146b35
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
Ok, I will add some tests
I updated the docs with the changes you suggested |
|
Rebase / pull in main to get CI to turn over again 😄 Docs LGTM, I think a couple of tests is the only blocker. |
f146b35 to
36cdbda
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
1 similar comment
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
968ca6a to
fdb3c5c
Compare
|
I added two tests for circle (based on existing tests for "polygon" type):
|
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
|
Please pull in main or rebase so that CI can turn over, then mark this as non-draft if its done and tested on your side |
e735af5 to
18acf14
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
8c31eb3 to
9991d45
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
0134c7e to
4c7324d
Compare
|
Some of the tests failed, so few changes were required:
|
|
Still have a few tests related to this PR failing in CI (and the docs PR is conflicted) But otherwise once fixed, LGTM but will have to look at the final solution to see how these errors are fixed |
4c7324d to
aab2dfa
Compare
|
@anaelle-sw, your PR has failed to build. Please check CI outputs and resolve issues. |
42539c3 to
3079199
Compare
|
I fixed the tests failures by:
With these changes, the tests for collision monitor finally succeed! Sorry this took so much time, I thought it was a bit less tricky. Are you ok with the updates? |
|
I have also resolved the conflict of the docs PR |
|
I'll admit that this PR is giving me a bit of a headache from no fault of yours. It just touches alot of very intertwined code and the diffs that GitHub show me aren't super helpful to really appreciate the difference - so I have to pull up files and compare manually. I think this looks good to me but I'd appreciate it if @kaichie gave it a review as well to make sure I'm not missing an important detail for a second look. This is where the unit tests really come in handy that I generally know things work, but I'm not totally confident I am juggling all of the edge cases for this one in my head so a second pair of eyes is necessary I see that you added |
If static polygon is used (which means parameter
I agree adding a new argument is not very nice. Any other solutions you can think of with current design? Or we could change design. For instance, declaring |
|
Overall the changes looks good to me and seems to follow the existing pattern. Happy to see we can now dynamically update the Circle polygon! 👍 🌟 |
|
OK! Any reason I shouldn't merge this on Monday @anaelle-sw ? |
I'll just rebase branch on main and it should be ready to be merged |
Signed-off-by: asarazin <anaelle.sarazin@robocc.com>
Signed-off-by: asarazin <anaelle.sarazin@robocc.com>
3079199 to
03a306b
Compare
…#4226) * Collision monitor: add a radius topic sub for dynamic circle polygon Signed-off-by: asarazin <anaelle.sarazin@robocc.com> * add test on circle radius update Signed-off-by: asarazin <anaelle.sarazin@robocc.com> --------- Signed-off-by: asarazin <anaelle.sarazin@robocc.com> Co-authored-by: asarazin <anaelle.sarazin@robocc.com> Signed-off-by: enricosutera <enricosutera@outlook.com>
…#4226) * Collision monitor: add a radius topic sub for dynamic circle polygon Signed-off-by: asarazin <anaelle.sarazin@robocc.com> * add test on circle radius update Signed-off-by: asarazin <anaelle.sarazin@robocc.com> --------- Signed-off-by: asarazin <anaelle.sarazin@robocc.com> Co-authored-by: asarazin <anaelle.sarazin@robocc.com>
…#4226) * Collision monitor: add a radius topic sub for dynamic circle polygon Signed-off-by: asarazin <anaelle.sarazin@robocc.com> * add test on circle radius update Signed-off-by: asarazin <anaelle.sarazin@robocc.com> --------- Signed-off-by: asarazin <anaelle.sarazin@robocc.com> Co-authored-by: asarazin <anaelle.sarazin@robocc.com>
…#4226) * Collision monitor: add a radius topic sub for dynamic circle polygon Signed-off-by: asarazin <anaelle.sarazin@robocc.com> * add test on circle radius update Signed-off-by: asarazin <anaelle.sarazin@robocc.com> --------- Signed-off-by: asarazin <anaelle.sarazin@robocc.com> Co-authored-by: asarazin <anaelle.sarazin@robocc.com> Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
Basic Info
Description of contribution in a few bullet points
<polygon_name>.radius_sub_topic, for circle type polygon. If the parameter<polygon_name>.radiusis defined, it takes priority. If both<polygon_name>.radius_sub_topicand<polygon_name>.radiusare not specified, an error is thrown. (Similar topointsandpolygon_sub_topicparameters in case ofpolygon-type polygons)<polygon_name>.radius_sub_topic, for circle type polygon. If a new radius message is received, the circle radius is updatedDescription of documentation updates required from your changes
<polygon_name>.radius_sub_topicto default configs, documentation page, migration guide: Collision monitor circle radius sub new param docs.nav2.org#538Future work that may be required in bullet points
For Maintainers: