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

forward_command_controller #87

Merged
merged 12 commits into from
Sep 29, 2020

Conversation

jordan-palacios
Copy link
Member

@jordan-palacios jordan-palacios commented Aug 19, 2020

Port of forward_command_controller from ROS1.

Depends #90.

Closes #78.

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2020

Codecov Report

Merging #87 into master will increase coverage by 4.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   33.12%   37.26%   +4.13%     
==========================================
  Files          12       23      +11     
  Lines        1123     2383    +1260     
  Branches      740     1470     +730     
==========================================
+ Hits          372      888     +516     
- Misses        103      180      +77     
- Partials      648     1315     +667     
Flag Coverage Δ
#unittests 37.26% <ø> (+4.13%) ⬆️

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

Impacted Files Coverage Δ
...include/joint_trajectory_controller/trajectory.hpp 46.66% <0.00%> (-20.00%) ⬇️
...int_trajectory_controller/test/test_trajectory.cpp 16.66% <0.00%> (-9.71%) ⬇️
.../joint_state_controller/joint_state_controller.hpp 100.00% <0.00%> (ø)
...jectory_controller/joint_trajectory_controller.hpp 100.00% <0.00%> (ø)
...rs/diff_drive_controller/test/test_accumulator.cpp 57.14% <0.00%> (ø)
...troller/include/diff_drive_controller/odometry.hpp 100.00% <0.00%> (ø)
...te_controller/test/test_joint_state_controller.cpp 19.65% <0.00%> (ø)
...iff_drive_controller/src/diff_drive_controller.cpp 35.15% <0.00%> (ø)
...ive_controller/test/test_diff_drive_controller.cpp 19.13% <0.00%> (ø)
...ollers/diff_drive_controller/src/speed_limiter.cpp 54.54% <0.00%> (ø)
... and 10 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 26ae946...fbacbc9. Read the comment docs.

@jordan-palacios jordan-palacios force-pushed the forward_controllers branch 2 times, most recently from e505e69 to 17dba2b Compare September 2, 2020 11:45
@AndyZe
Copy link
Contributor

AndyZe commented Sep 2, 2020

@jordan-palacios can I help you with this? Testing/ debugging/ coding ... whatever you need.

@jordan-palacios
Copy link
Member Author

@jordan-palacios can I help you with this? Testing/ debugging/ coding ... whatever you need.

Thanks @AndyZe but this PR it's pretty much done. Right now is blocked until #90 is merged.

@AndyZe
Copy link
Contributor

AndyZe commented Sep 4, 2020

Great! I will make it my goal to get this running in simulation with fake_joint_driver, then


namespace
{
constexpr auto kFCCLoggerName = "forward command controller";
Copy link
Member

Choose a reason for hiding this comment

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

as much as I like this being called "KFC_clogger_name" I think this could be a const member of the controller?

Copy link
Member Author

Choose a reason for hiding this comment

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

The logger name is already a member variable, though non const so the controllers that will inherit from this one may change it. I could make it to be default initialized to "forward command controller" and remove the kFCCLoggerName altogether.

What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

me gusta option 2

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@bmagyar bmagyar merged commit 089c1ab into ros-controls:master Sep 29, 2020
@jordan-palacios jordan-palacios deleted the forward_controllers branch September 29, 2020 07:57
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.

Implement forward_command_controller from ROS1
4 participants