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

Ported LowPass and GravityCompensation filters iirob_filters repository #115

Conversation

destogl
Copy link
Member

@destogl destogl commented Sep 23, 2021

  • using the dynamic parametrization as implemented in existing gravity_compensation filter
  • added testcases for loading parameters

destogl and others added 2 commits June 12, 2021 17:05
- using the dynamic parametrization as implemented in existing gravity_compensation filter
- added testcases for loading parameters
Copy link
Member Author

@destogl destogl left a comment

Choose a reason for hiding this comment

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

there are few simplifications to do.

to do:

  • plugin loading test as for controllers
  • Filter loading from Param-server
  • FilterChain loading from Param-server (see Admittance controller)

control_filters.xml Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
include/control_filters/low_pass_filter.hpp Outdated Show resolved Hide resolved
test/control_filters/test_low_pass_filter.cpp Show resolved Hide resolved
removed parameter_namespace and added override flag
dzumkeller
dzumkeller previously approved these changes Sep 30, 2021
dzumkeller and others added 9 commits September 30, 2021 18:31
Co-authored-by: Denis Štogl <destogl@users.noreply.github.com>
- using the dynamic parametrization as implemented in existing gravity_compensation filter
- added testcases for loading parameters
removed parameter_namespace and added override flag
Co-authored-by: Denis Štogl <destogl@users.noreply.github.com>
@destogl destogl force-pushed the add-control-filters-gravity-compensation branch from 2cecfd6 to 8b391c6 Compare October 29, 2021 15:44
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2021

Codecov Report

❗ No coverage uploaded for pull request base (add-control-filters-gravity-compensation@e8794ee). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head d7462e9 differs from pull request most recent head 978e590. Consider uploading reports for the commit 978e590 to get more accurate results
Impacted file tree graph

@@                             Coverage Diff                             @@
##             add-control-filters-gravity-compensation     #115   +/-   ##
===========================================================================
  Coverage                                            ?   29.11%           
===========================================================================
  Files                                               ?      440           
  Lines                                               ?    30360           
  Branches                                            ?    15600           
===========================================================================
  Hits                                                ?     8840           
  Misses                                              ?     7920           
  Partials                                            ?    13600           
Flag Coverage Δ
unittests 29.11% <0.00%> (?)

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


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8794ee...978e590. Read the comment docs.

@destogl destogl changed the base branch from add-control-filters-gravity-compensation to ros2-master November 16, 2021 10:27
@destogl destogl changed the title Ported low_pass_filter from iirob_filters: Ported LowPass and GravityCompensation filters iirob_filters repository Dec 3, 2021
@destogl destogl marked this pull request as draft December 3, 2021 08:21
tf2::doTransform(parameters_->cog_, cog_transformed, transform_cog_);

// Compensate for gravity force
temp_force_transformed.vector.z += parameters_->force_z_;
Copy link
Member Author

Choose a reason for hiding this comment

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

We should always subtract the parameter value independently if it is positive or negative.

{
world_frame_ = string_parameters_[0].second;
RCUTILS_LOG_INFO_NAMED(logger_name_.c_str(), "World frame: %s", world_frame_.c_str());
sensor_frame_ = string_parameters_[0].second;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sensor_frame_ = string_parameters_[0].second;
sensor_frame_ = string_parameters_[1].second;

RCUTILS_LOG_INFO_NAMED(logger_name_.c_str(), "World frame: %s", world_frame_.c_str());
sensor_frame_ = string_parameters_[0].second;
RCUTILS_LOG_INFO_NAMED(logger_name_.c_str(), "Sensor frame: %s", sensor_frame_.c_str());
force_frame_ = string_parameters_[0].second;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
force_frame_ = string_parameters_[0].second;
force_frame_ = string_parameters_[2].second;

@destogl
Copy link
Member Author

destogl commented Mar 13, 2023

closed in favor of #152 and #153

@destogl destogl closed this Mar 13, 2023
@destogl destogl deleted the add-control-filters-gravity-compensation branch March 13, 2023 18:55
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.

4 participants