-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for universal and ball joint in sdf #13
Conversation
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Please target the |
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
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.
The logic looks good to me. Mind updating the tests so CI passes with the new behavior?
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Tests should be passing now! The gearbox joint has a kinematic loop, which is expected. (I think a custom TF publisher will handle that or should I just make it invalid?) |
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 just have a couple of minor suggestions, but this looks good to me otherwise. I'd wait for an approval from @sloretz before merging.
After it's merged, we'll need to open a backport to galactic
.
ASSERT_EQ(nullptr, joint->limits); | ||
ASSERT_EQ(nullptr, joint->safety); | ||
ASSERT_EQ(nullptr, joint->calibration); | ||
ASSERT_EQ(nullptr, joint->mimic); |
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 think lines 40~44 can be EXPECT_EQ
, because we're not trying to access those pointers in the test anyway. This way, if in the future one of them fails, we will know whether the others fail too.
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 agree, though this could already be improved about the existing tests in this file so I wouldn't block on it.
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 can work on this in a separate PR :)
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.
Opened #16 for improving tests.
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.
LGTM. @chapulina has good points, but since they're existing issues I won't block on it.
I don't think we need a run of ci.ros2.org since this is outside of the usual repos file and doesn't have a quality level declaration. I also have no idea what would happen if we tried to build this on Windows.
ASSERT_EQ(nullptr, joint->limits); | ||
ASSERT_EQ(nullptr, joint->safety); | ||
ASSERT_EQ(nullptr, joint->calibration); | ||
ASSERT_EQ(nullptr, joint->mimic); |
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 agree, though this could already be improved about the existing tests in this file so I wouldn't block on it.
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
@Mergifyio backport galactic |
✅ Backports have been created
|
Support for universal and ball joint in sdf (backport #13)
Mapped universal and ball joint in sdf to be floating joints in urdf.
Questions:
// Will need transforms published to function correctly
, but that's true for all joints in that list. Not sure if I should indicate that here since there'll be an example world (WIP) to demo the usage.