Skip to content

Dynamic joint handles#125

Merged
bmagyar merged 10 commits intoros-controls:masterfrom
pal-robotics-forks:dynamic_joint_handles
Aug 28, 2020
Merged

Dynamic joint handles#125
bmagyar merged 10 commits intoros-controls:masterfrom
pal-robotics-forks:dynamic_joint_handles

Conversation

@jordan-palacios
Copy link
Copy Markdown
Member

The intention of this PR is to add a new type of joint handle and the interfaces to handle them. They are intended to replace JointStateHandle and JointCommandHandle eventually. For the duration of this PR, however, they will coexist.

See #124 for more information.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 14, 2020

Codecov Report

Merging #125 into master will decrease coverage by 2.52%.
The diff coverage is 35.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #125      +/-   ##
==========================================
- Coverage   45.85%   43.32%   -2.53%     
==========================================
  Files          38       42       +4     
  Lines        1230     1424     +194     
  Branches      648      786     +138     
==========================================
+ Hits          564      617      +53     
- Misses         72       85      +13     
- Partials      594      722     +128     
Flag Coverage Δ
#unittests 43.32% <35.88%> (-2.53%) ⬇️

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

Impacted Files Coverage Δ
...face/include/hardware_interface/robot_hardware.hpp 50.00% <ø> (ø)
...e_interface/test/test_robot_hardware_interface.cpp 46.98% <ø> (+1.10%) ⬆️
test_robot_hardware/src/test_robot_hardware.cpp 31.77% <0.00%> (-16.12%) ⬇️
hardware_interface/test/test_register_joints.cpp 21.95% <21.95%> (ø)
hardware_interface/test/test_joint_handle.cpp 30.00% <30.00%> (ø)
...ardware_interface/test/test_register_actuators.cpp 21.95% <31.57%> (+2.90%) ⬆️
hardware_interface/src/robot_hardware.cpp 53.93% <60.81%> (+0.09%) ⬆️
...re_interface/include/hardware_interface/handle.hpp 78.57% <78.57%> (ø)
...ace/include/hardware_interface/actuator_handle.hpp 100.00% <100.00%> (+21.42%) ⬆️
...erface/include/hardware_interface/joint_handle.hpp 100.00% <100.00%> (ø)
... and 5 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 3a1fad5...34f8e64. Read the comment docs.

@jordan-palacios jordan-palacios marked this pull request as ready for review August 18, 2020 08:17
@destogl
Copy link
Copy Markdown
Member

destogl commented Aug 21, 2020

this is a good transition PR for the Joint/Sensor components. I agree to go on with this.

{
SetUpHandles();
EXPECT_THAT(robot_.get_registered_joint_names(), ElementsAre(JOINT_NAME));
// EXPECT_THAT(robot_.get_registered_joint_names(), ElementsAre(JOINT_NAME));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the status of these tests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

They only test the OperationModeHandle. The joint handles tests are now in test_joint_handle.cpp and test_register_joints.cpp.

@Karsten1987
Copy link
Copy Markdown
Contributor

With #121 being merged, is this going to be reworked to use the same Joint and Sensor interfaces?

@bmagyar bmagyar merged commit b6a50df into ros-controls:master Aug 28, 2020
@jordan-palacios jordan-palacios deleted the dynamic_joint_handles branch August 28, 2020 07:18
destogl pushed a commit to b-robotized-forks/ros2_control that referenced this pull request Aug 11, 2022
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.

5 participants