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

PoseSensor semantic component (backport #1775) #1785

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 9, 2024

This PR implements a new semantic components for robots or sensors that can meassure a cartesian pose. I will add a PR for a pose_broadcaster controller using this to ros2_controllers shortly.

My use-case for this functionality is for robots that can provide their cartesian TCP pose in addition to their normal joint state (e.g. UR and Kuka arms). This can be more accurate than forward kinematics, as the robot can use its factory calibration for determining this pose. In the future, there could also be different kinds of sensors implementing this (e.g. mocap) to allow their data to be used in a controller.

I tried my best to keep the implementation close to the existing fts and imu components. The tests should also cover similar use, in particular loading of the controller and lifecycle transitions as well as verifying a published pose.


This is an automatic backport of pull request #1775 done by Mergify.

@mergify mergify bot added the conflicts label Oct 9, 2024
Copy link
Contributor Author

mergify bot commented Oct 9, 2024

Cherry-pick of 8cdded3 has failed:

On branch mergify/bp/humble/pr-1775
Your branch is up to date with 'origin/humble'.

You are currently cherry-picking commit 8cdded3.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   controller_interface/include/semantic_components/pose_sensor.hpp
	new file:   controller_interface/test/test_pose_sensor.cpp
	new file:   controller_interface/test/test_pose_sensor.hpp

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   controller_interface/CMakeLists.txt
	both modified:   controller_interface/package.xml
	both modified:   doc/release_notes.rst

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@christophfroehlich christophfroehlich force-pushed the mergify/bp/humble/pr-1775 branch from eb4905d to 2d6e2be Compare October 9, 2024 18:10
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 16 lines in your changes missing coverage. Please review.

Project coverage is 62.38%. Comparing base (5bf0da5) to head (2d6e2be).
Report is 1 commits behind head on humble.

Files with missing lines Patch % Lines
controller_interface/test/test_pose_sensor.cpp 63.63% 0 Missing and 16 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           humble    #1785      +/-   ##
==========================================
+ Coverage   62.27%   62.38%   +0.11%     
==========================================
  Files         105      108       +3     
  Lines       11327    11403      +76     
  Branches     7926     7974      +48     
==========================================
+ Hits         7054     7114      +60     
  Misses        815      815              
- Partials     3458     3474      +16     
Flag Coverage Δ
unittests 62.38% <78.94%> (+0.11%) ⬆️

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

Files with missing lines Coverage Δ
...erface/include/semantic_components/pose_sensor.hpp 100.00% <100.00%> (ø)
controller_interface/test/test_pose_sensor.hpp 100.00% <100.00%> (ø)
controller_interface/test/test_pose_sensor.cpp 63.63% <63.63%> (ø)

@bmagyar bmagyar merged commit b6ab06e into humble Oct 10, 2024
11 of 12 checks passed
@bmagyar bmagyar deleted the mergify/bp/humble/pr-1775 branch October 10, 2024 07:54
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