Skip to content

Remove the dangling param flag for robot_description with parameter #2115

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

Conversation

saikishor
Copy link
Member

@saikishor saikishor commented Mar 19, 2025

Fixes #2082 (comment)

Initially, when we suppressed the warning we only handled the case of the robot_description parsed using topics but not the parameter.

@lukicdarkoo Can you check this change and let us know :)

@christophfroehlich
Copy link
Contributor

@lukicdarkoo we have deprecated the robot_description parameter in humble and removed it from jazzy on. Why do you need this in webots?

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

We don't support robot_description from parameters any more, but this improves robustness

@lukicdarkoo
Copy link
Contributor

lukicdarkoo commented Mar 19, 2025

@christophfroehlich We just pass all arguments to the controller manager:
https://github.com/cyberbotics/webots_ros2/blob/7435cfba110794900641cf57e5b33dfd07badaca/webots_ros2_control/src/Ros2Control.cpp#L161-L163

We use it for some other purposes before passing it to the controller manager.

Alternatively, we can remove the robot_description parameter from the list.

But in any case, if the user passes the -p robot_description:=xyz it shouldn't produce -p and eventually crash.

@christophfroehlich
Copy link
Contributor

@saikishor should we add a test for that to prevent that in the future? 🤷‍♂️

@saikishor
Copy link
Member Author

@saikishor should we add a test for that to prevent that in the future? 🤷‍♂️

I was relying on the tests from ros2_control_demos🙈

Copy link

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.29%. Comparing base (526a017) to head (28d2f78).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
controller_manager/src/controller_manager.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2115      +/-   ##
==========================================
- Coverage   89.30%   89.29%   -0.02%     
==========================================
  Files         139      139              
  Lines       15500    15502       +2     
  Branches     1318     1318              
==========================================
- Hits        13843    13842       -1     
- Misses       1154     1156       +2     
- Partials      503      504       +1     
Flag Coverage Δ
unittests 89.29% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
controller_manager/src/controller_manager.cpp 76.32% <0.00%> (-0.16%) ⬇️
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lukicdarkoo
Copy link
Contributor

Tested, it works! Thank you!

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