Skip to content

Conversation

OscarMrZ
Copy link
Contributor

Good morning!

This is a continuation of #559 as it was inactive.

The changes are minimal:

  1. Applied @saikishor suggestions
  • Added sensor_filter_chain to the parameters, which serves as documentation.
  • I removed all the logic about the additional frames. I agree with @saikishor that transforming to different frames should be handled by the user in their application. With this, no tf calls inside the RT are needed.
  • No more publishing NaN if the update of the filter failed.
  1. Added some relevant tests
    IMHO, the previous tests were testing the business logic of the filters themselves, that is, checking that the actual computations were correct, rather than the actual new logic for adding filters. I added three tests for configuring, activating/deactivating, and updating with a configured filter chain. Just one consideration: I changed a little bit the logic of SetUpFTSBroadcaster a little bit to accept a node name. This is because I added some parameters in the YAML that are needed for the broadcaster with filters. I cannot do set_parameter because the filter chain expects the parameters to be overrides.

Thanks a lot for your time!

Óscar

destogl and others added 30 commits April 13, 2023 14:32
@OscarMrZ
Copy link
Contributor Author

OscarMrZ commented Jul 16, 2025

Good morning!

Yeah, there's no dependency for control_toolbox in the ft_broadcaster, but I think it's perfectly fine to use a filter from filters as we are introducing the dependency for the chain.

I added dummy_filter.cpp, which performs the template specialization for the WrenchStamped type of the increment filter update method. It will just add 1.0 to every field of the message.

I updated the tests accordingly and included an additional one to ensure the correct message is received. Everything seems to be working fine!

Thanks a lot!

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.

OscarMrZ and others added 2 commits August 12, 2025 09:15
@OscarMrZ
Copy link
Contributor Author

Good morning @christophfroehlich!

Sorry for the delay, things get slower in summer! 😄

Everything should be ready for merging. Please let me know if you think further changes may be needed.

Thanks a lot for your assistance!

Co-authored-by: Christoph Fröhlich <[email protected]>
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.

Thanks for the follow-ups, LGTM!

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

LGTM

@christophfroehlich christophfroehlich merged commit 4f9c462 into ros-controls:master Sep 3, 2025
24 of 27 checks passed
@christophfroehlich christophfroehlich deleted the ft_broadcaster/add-filtering-capability branch September 3, 2025 12:13
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.

9 participants