-
Notifications
You must be signed in to change notification settings - Fork 99
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
Ported LowPass and GravityCompensation filters iirob_filters repository #115
Conversation
destogl
commented
Sep 23, 2021
- using the dynamic parametrization as implemented in existing gravity_compensation filter
- added testcases for loading parameters
- using the dynamic parametrization as implemented in existing gravity_compensation filter - added testcases for loading parameters
There was a problem hiding this 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)
removed parameter_namespace and added override flag
Co-authored-by: Denis Štogl <[email protected]>
…thub.com/StoglRobotics-forks/control_toolbox into add-control-filters-gravity-compensation
- 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 <[email protected]>
2cecfd6
to
8b391c6
Compare
Codecov Report
@@ Coverage Diff @@
## add-control-filters-gravity-compensation #115 +/- ##
===========================================================================
Coverage ? 29.11%
===========================================================================
Files ? 440
Lines ? 30360
Branches ? 15600
===========================================================================
Hits ? 8840
Misses ? 7920
Partials ? 13600
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
…thub.com/StoglRobotics-forks/control_toolbox into add-control-filters-gravity-compensation
tf2::doTransform(parameters_->cog_, cog_transformed, transform_cog_); | ||
|
||
// Compensate for gravity force | ||
temp_force_transformed.vector.z += parameters_->force_z_; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
force_frame_ = string_parameters_[0].second; | |
force_frame_ = string_parameters_[2].second; |