-
Notifications
You must be signed in to change notification settings - Fork 284
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 copy/paste #1013
Support copy/paste #1013
Conversation
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
This reverts commit fe95598. Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
I'm currently facing an issue where an extra object is spawned at the origin after pasting occurs. I have tried to debug this, but cannot figure out what the issue is. The extra entity does not seem to appear in the entity tree, so perhaps there's an issue with cleaning up the preview once pasting occurs? Here's an example of what I am seeing: |
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Another issue I'm trying to troubleshoot is that if I copy/paste an entity, I'll sometimes see the following error message (this is from gazebosim/gz-rendering#397):
I usually see this when I try to copy/paste an entity that has already been moved with the transform tool, or copy/paste an entity via the plugin buttons. I don't see it happen as much when I copy/paste via the right click menu. I've tried debugging, but I'm not sure why the mesh information doesn't seem to be attached to an entity at times. |
this could be because the preview visual is not removed properly. I noticed that it's calling
That turns out to be the WireBox that is attached to the model when it is selected. We'll need to be careful about other visualizations such as joint, CoM, inertia visuals that can be attached to the model visual. So maybe instead of recursively copying all the child visuals, we may need to figure out a way to omit these gui-only visuals. One idea is to tag these gui-only visuals using user-data and in the SceneManager::CopyVisual function, you can selectively clone visuals that do not have this tag. |
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
This is ready for another round of review. I have added some details to the PR description that show a demo and instructions for testing. I have a few questions/notes for my reviewers (@chapulina @iche033):
|
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
#1103) Signed-off-by: Ashton Larkin <[email protected]>
I just merged #1103 into this PR, which means that this PR no longer depends on gazebosim/gz-rendering#442. |
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
I've updated this PR to support copy/paste via |
Signed-off-by: Ashton Larkin [email protected]
🎉 New feature
Closes #102
Requires:
Summary
This PR builds on top of #959 to provide GUI support for copy/paste. Copy/paste is available via the GUI plugin buttons, right click, and
ctrl-c
+ctrl-v
.Test it
ign gazebo pendulum_links.sdf
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge