-
Notifications
You must be signed in to change notification settings - Fork 281
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
Allow re-attaching detached joint #1687
Conversation
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1687 +/- ##
===============================================
- Coverage 65.38% 65.37% -0.02%
===============================================
Files 327 327
Lines 26932 26996 +64
===============================================
+ Hits 17610 17649 +39
- Misses 9322 9347 +25
|
Signed-off-by: Liam Han <[email protected]>
…ment Signed-off-by: Liam Han <[email protected]>
This looks like a really great new feature add. |
…ment. Signed-off-by: Liam Han <[email protected]>
…o liam/add-attachable
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
… detachable joint plugin in a single model requires detach_topic, attach_topic, and output_topic to control invididual child model Signed-off-by: Liam Han <[email protected]>
…etached respectively Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
… README Signed-off-by: Liam Han <[email protected]>
[STATUS]
[QUESTIONS]
|
Signed-off-by: Liam Han <[email protected]>
@ahcorde thanks for the feedback. Left some comments and addressed other things
|
…on->gazebo Signed-off-by: Liam Han <[email protected]>
Note to self: Just occurred to me that this will potentially have a backwards compatibility issue with Update: |
…updated <detach_topic> tag. Signed-off-by: Liam Han <[email protected]>
What do you mean with " |
@jrutgeer
Hence, the boolean |
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.
This looks great! I just have a few minor comments. The main issue is what we should do about <topic>
.
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
…any warnings in this version Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
Signed-off-by: Liam Han <[email protected]>
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 minor comments. The tutorial mentions that objects should not be in contact in their initial (attached) state. I think we should emphasize this more now that we allow attaching detached joints. In the detachable_joint.sdf
example, if you do the following in sequence you will get a crash:
ign topic -t "/model/vehicle_blue/cmd_vel" -m ignition.msgs.Twist -p "linear: {x: -0.25}"
ign topic -t "/B1/detach" -m ignition.msgs.Empty -p "unused: true"
# wait a couple seconds until the vehicle starts dragging B1.
ign topic -t "/B1/attach" -m ignition.msgs.Empty -p "unused: true"
I added some comments regarding reattaching while the child and parent models are in contact but let me know if you'd prefer more explanation or any clarification shown here. I didn't try this before so this was a mild surprise haha |
Signed-off-by: Liam Han <[email protected]>
This looks ready to me. @ahcorde any remaining issues? |
Signed-off-by: Liam Han [email protected]
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸
🎉 New feature
Summary
Extending the feature for
detachable_joint
plugin to support re-attaching the joint again. By publishing to a topic, the child link can be easily reattached with a fixed joint to its parent link. The demo below shows detaching and reattaching B1 and B2 models.This PR needs to be addressed after this current PRre-attach.webm
Once detached, it can be useful to move the child model to a desired position through a service call and then reattach the joint. The demo below shows detaching the B1 model, moving to a desired location, and then re-attaching the joint.
attach+reset.webm
Test it
checkout this branch and build it. To run the test, run the following command in gz workspace.
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.