-
Notifications
You must be signed in to change notification settings - Fork 935
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
add get_active_joint_names #2533
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2533 +/- ##
==========================================
+ Coverage 60.24% 60.25% +0.02%
==========================================
Files 351 351
Lines 26473 26483 +10
==========================================
+ Hits 15945 15954 +9
- Misses 10528 10529 +1
Continue to review full report at Codecov.
|
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.
Didn't test, but LGTM. My only concern is that this introduces a string copy and vector in joint_model.cpp
, although I doubt that it will have a noticeable effect.
(mimic joints and fixed joints are excluded). If no group name is | ||
specified, all joints in the robot model are returned, including | ||
fixed and mimic joints. | ||
If no group name is specified, all joints in the robot model are returned |
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.
If no group name is specified, all joints in the robot model are returned | |
If no group name is specified, all joints in the robot model are returned. |
Missing punctuation. Same for the line above and the other doc string. I would also keep the "(including mimic joints and fixed joints)".
@@ -163,6 +163,12 @@ class RobotModel | |||
return active_joint_model_vector_const_; | |||
} | |||
|
|||
/** \brief Get the array of active joint names, in the order they appear in the robot state. */ |
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.
/** \brief Get the array of active joint names, in the order they appear in the robot state. */ | |
/** \brief Get the array of active joint names, in the order that they appear in the robot state. */ |
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.
I know this is wrong in the rest of the file, but let's not perpetuate mistakes.
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.
I'd leave it as is and literature backs me up :-)
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.
I also think it's fine as is
Fixes #2505 (please give your PRs a description) |
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.
I'm good with this after punctuation is added. Sadly I can't push to this branch.
Ok should be good now, thanks everyone! |
add get_active_joint_names and getActiveJointModelNames to Python and C++, respectively. To keep calling costs constant we add the additional vector<string> to the RobotModel class. Co-authored-by: Peter Mitrano <pmitrano@armstorm>
add get_active_joint_names and getActiveJointModelNames to Python and C++, respectively. To keep calling costs constant we add the additional vector<string> to the RobotModel class. Co-authored-by: Peter Mitrano <pmitrano@armstorm>
add get_active_joint_names and getActiveJointModelNames to Python and C++, respectively. To keep calling costs constant we add the additional vector<string> to the RobotModel class. Co-authored-by: Peter Mitrano <pmitrano@armstorm>
Description
Creates new API in C++ and Python for getting active joint names, including the case where no group is specified.
Checklist