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

add a broadcaster for range sensor #725

Merged

Conversation

flochre
Copy link
Contributor

@flochre flochre commented Aug 1, 2023

Hello!

I have been working on a broadcaster for Range sensors.
Here is a Pull Request to integrate it!

In the file ros2_controllers/range_sensor_broadcaster/include/range_sensor_broadcaster/range_sensor_broadcaster.hpp I have not put my name since I basically just change IMU with Range.. Is this ok or should I put my name on it?

I have prepared the following file ros2_control/controller_interface/include/semantic_components/range_sensor.hpp
on my fork https://github.com/flochre/ros2_control/blob/feature/add-range-sensor-broadcast/controller_interface/include/semantic_components/range_sensor.hpp - Should I already make a pull request by ros2_control?

Thanks in advance,

Cheers!

Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

  1. Limited scope. Your PR should do one thing or one set of things. Avoid adding “random fixes” to PRs. Put those on separate PRs.
  2. Give your PR a descriptive title. Add a short summary, if required.
  3. Make sure the pipeline is green.
  4. Don’t be afraid to request reviews from maintainers.
  5. New code = new tests. If you are adding new functionality, always make sure to add some tests exercising the code and serving as live documentation of your original intention.

To send us a pull request, please:

  • Fork the repository.
  • Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
  • Ensure local tests pass. (colcon test and pre-commit run (requires you to install pre-commit by pip3 install pre-commit)
  • Commit to your fork using clear commit messages.
  • Send a pull request, answering any default questions in the pull request interface.
  • Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

@bmagyar
Copy link
Member

bmagyar commented Aug 1, 2023

Please check the results from the CI. The format stage is failing, you need to run pre-commit run --all to let it fix things for you. Also check the other stages. The code currently doesn't compile and you also have a lot of conversion warnings (purple text)

@flochre
Copy link
Contributor Author

flochre commented Aug 2, 2023

The compilation is also not working because of the requirement to ros2_control

repositories:
    ros2_control:
        type: git
        url: https://github.com/flochre/ros2_control.git
        version: feature/add-range-sensor-broadcast

@flochre
Copy link
Contributor Author

flochre commented Aug 2, 2023

About the conversion warning, I don't get them for the range_sensor_broadcaster
Those I have are coming from other packages.. Should I still correct them?

@bmagyar
Copy link
Member

bmagyar commented Aug 2, 2023

Well let's start at the compilation first.
Could you please open a PR against ros2_control then? We can discuss here all we want if we are missing the other side ;)

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 30.88%. Comparing base (e7f9962) to head (f795157).
Report is 588 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #725      +/-   ##
==========================================
- Coverage   35.78%   30.88%   -4.90%     
==========================================
  Files         189        7     -182     
  Lines       17570      832   -16738     
  Branches    11592      505   -11087     
==========================================
- Hits         6287      257    -6030     
+ Misses        994      133     -861     
+ Partials    10289      442    -9847     
Flag Coverage Δ
unittests 30.88% <ø> (-4.90%) ⬇️

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

see 194 files with indirect coverage changes

@flochre
Copy link
Contributor Author

flochre commented Aug 7, 2023

I think everything should be set now ;)

@flochre
Copy link
Contributor Author

flochre commented Aug 15, 2023

Nice, compiling and testing worked!
Should I update the branch or you do it? Because if I do it the git actions will need to run again?
What do you prefere?
Thanks!

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

I didn't notice the load controller test here. Would you mind adding that too? Just copy it from any controller

@flochre flochre requested a review from bmagyar August 20, 2023 11:06
@flochre
Copy link
Contributor Author

flochre commented Aug 20, 2023

Load test as been added and all test are passing in my workspace

@flochre
Copy link
Contributor Author

flochre commented Aug 28, 2023

Is there anything more I should do?

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Thank you for sticking through the review, will wait for the CI to turn green and merge it!
I'll also backport this PR to humble

@bmagyar bmagyar added the backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. label Sep 6, 2023
@bmagyar bmagyar merged commit 5b86e3c into ros-controls:master Sep 7, 2023
11 of 13 checks passed
mergify bot pushed a commit that referenced this pull request Sep 7, 2023
@christophfroehlich
Copy link
Contributor

And I already got a notification of a warning in the docs ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants