-
Notifications
You must be signed in to change notification settings - Fork 295
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 Joint class #1910
Add Joint class #1910
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1910 +/- ##
===============================================
+ Coverage 64.83% 64.98% +0.14%
===============================================
Files 323 324 +1
Lines 26429 26562 +133
===============================================
+ Hits 17135 17261 +126
- Misses 9294 9301 +7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
just a small comment about style but LGTM
test/integration/joint.cc
Outdated
ecm.CreateComponent<components::ChildLinkName>(id, | ||
components::ChildLinkName("child_joint_name")); | ||
EXPECT_EQ("child_joint_name", joint.ChildLinkName(ecm)); | ||
|
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.
🎉 New feature
Part of #325
Summary
Add Joint APIs that help ease migration from gazebo-classic.
Note that I kept the API names somewhat consistent with classic but there are a few things to note:
Set*
functions now take a vector of doubles as arg (consistent with as theJointVelocity
component) instead of a scalar value and joint index, e.g.SetVelocity(const std::vector<double> &_vel)
SetVelocity(unsigned int _index, double _vel)
SetVelocity
instead ofSetVelocities
, also done to be consistent with the naming convention in the joint component, e.g.JointVelocity
Enable*Check
must be called before reading velocity/position/wrench dataTest it
Run the
UNIT_Joint_TEST
and INTEGRATION_joint tests:Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.