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

(moveit_py) Allow editing allowed collision matrix in python + fix get_entry function #2551

Merged

Conversation

JensVanhooydonck
Copy link
Contributor

Allow editing allowed collision matrix in python + fix get_entry function

Description

Added a setter + changed from move to reference_internal to allow changes when using inside of a context.
Also added some changes to allow the call of the get_entry function. Currently there is no custom typecaster for collision_detection::AllowedCollision::Type. Added a basic str return for now.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (c2292a7) 50.89% compared to head (101f8e2) 50.50%.

Files Patch % Lines
...veit_core/collision_detection/collision_matrix.cpp 0.00% 11 Missing ⚠️
moveit_core/planning_scene/src/planning_scene.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2551      +/-   ##
==========================================
- Coverage   50.89%   50.50%   -0.38%     
==========================================
  Files         388      387       -1     
  Lines       32245    32083     -162     
==========================================
- Hits        16408    16201     -207     
- Misses      15837    15882      +45     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

getEntry(const std::shared_ptr<collision_detection::AllowedCollisionMatrix>& acm, const std::string& name1,
const std::string& name2)
// TODO: Create a custom typecaster/revise the current implementation to return std::pair<bool,
// collision_detection::AllowedCollision::Type>
Copy link
Contributor

Choose a reason for hiding this comment

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

I like that, can you open an issue for that it is better tracked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sjahr sjahr merged commit 0742736 into moveit:main Nov 27, 2023
12 checks passed
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.

None yet

2 participants