-
Notifications
You must be signed in to change notification settings - Fork 502
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
Clean up kinematic_constraints/utils #1875
Conversation
moveit_core/kinematic_constraints/include/moveit/kinematic_constraints/utils.h
Show resolved
Hide resolved
Codecov ReportBase: 50.39% // Head: 50.36% // Decreases project coverage by
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
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. |
9b70748
to
031c3f0
Compare
031c3f0
to
9c32f1c
Compare
const geometry_msgs::msg::PoseStamped& pose) | ||
{ | ||
// Convert message types so the existing functions can be used | ||
geometry_msgs::msg::PointStamped point; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.