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

Clean up kinematic_constraints/utils #1875

Merged
merged 4 commits into from
Jan 24, 2023

Conversation

AndyZe
Copy link
Member

@AndyZe AndyZe commented Jan 19, 2023

Description

The first commit is minor cleanup.

The second commit adds a new function, updateConstraints(). The idea is, it's annoying and inefficient to construct a new Constraint object every time. This allows the user to update only the important information. If you like the idea, I'll add the other versions, like:

bool updateConstraints(moveit_msgs::msg::Constraints& constraints, const geometry_msgs::msg::PoseStamped& pose);

and so on.

@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Base: 50.39% // Head: 50.36% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (5a19c4a) compared to base (7fa5eaf).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1875      +/-   ##
==========================================
- Coverage   50.39%   50.36%   -0.02%     
==========================================
  Files         374      374              
  Lines       31363    31391      +28     
==========================================
+ Hits        15803    15808       +5     
- Misses      15560    15583      +23     
Impacted Files Coverage Δ
moveit_core/kinematic_constraints/src/utils.cpp 21.67% <0.00%> (-1.88%) ⬇️
...del/include/moveit/robot_model/joint_model_group.h 89.07% <0.00%> (-1.41%) ⬇️
moveit_core/robot_state/src/robot_state.cpp 47.95% <0.00%> (+0.08%) ⬆️
...nning_scene_monitor/src/planning_scene_monitor.cpp 45.69% <0.00%> (+0.44%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@AndyZe AndyZe force-pushed the andyz/construct_goal_constraints branch 3 times, most recently from 9b70748 to 031c3f0 Compare January 22, 2023 05:00
@AndyZe AndyZe force-pushed the andyz/construct_goal_constraints branch from 031c3f0 to 9c32f1c Compare January 22, 2023 05:05
@henningkayser henningkayser merged commit 5eb861c into moveit:main Jan 24, 2023
const geometry_msgs::msg::PoseStamped& pose)
{
// Convert message types so the existing functions can be used
geometry_msgs::msg::PointStamped point;
Copy link
Member

Choose a reason for hiding this comment

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

@AndyZe I don't know why I missed this, but I think we have to pass the stamp information with this as well, since that one is defining the reference frame

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@AndyZe AndyZe deleted the andyz/construct_goal_constraints branch January 25, 2023 21:28
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