-
Notifications
You must be signed in to change notification settings - Fork 276
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
DetachableJoint plugin: Reattached model when world is resetted #2131
Conversation
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Codecov Report
@@ Coverage Diff @@
## gz-sim8 #2131 +/- ##
===========================================
+ Coverage 65.45% 65.46% +0.01%
===========================================
Files 323 323
Lines 30704 30708 +4
===========================================
+ Hits 20097 20103 +6
+ Misses 10607 10605 -2
... and 1 file with indirect coverage changes 📢 Have feedback on the report? Share it here. |
I tried out the PR but I'm still getting that the detachable joints are disappearing when I press reset and creates new entities. This is the output I get when I click reset: [Dbg] [SimulationRunner.cc:319] Rewinding simulation back to initial time.
[Dbg] [Physics.cc:925] Resetting Physics
[Dbg] [Physics.cc:2019] Detaching joint [45]
[Dbg] [Physics.cc:2019] Detaching joint [46]
[Dbg] [Physics.cc:2019] Detaching joint [47]
[Msg] Create service on [/world/detachable_joint/create]
[Msg] Remove service on [/world/detachable_joint/remove]
[Msg] Pose service on [/world/detachable_joint/set_pose]
[Msg] Pose service on [/world/detachable_joint/set_pose_vector]
[Msg] Light configuration service on [/world/detachable_joint/light_config]
[Msg] Physics service on [/world/detachable_joint/set_physics]
[Msg] SphericalCoordinates service on [/world/detachable_joint/set_spherical_coordinates]
[Msg] Enable collision service on [/world/detachable_joint/enable_collision]
[Msg] Disable collision service on [/world/detachable_joint/disable_collision]
[Msg] Material service on [/world/detachable_joint/visual_config]
[Msg] Material service on [/world/detachable_joint/wheel_slip]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::UserCommands] for entity [1]
[Msg] DiffDrive subscribing to twist messages on [/model/vehicle_blue/cmd_vel]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::DiffDrive] for entity [8]
[Dbg] [DetachableJoint.cc:268] Attaching entity: 48
[Dbg] [DetachableJoint.cc:268] Attaching entity: 49
[Dbg] [DetachableJoint.cc:268] Attaching entity: 50
[Dbg] [Physics.cc:1864] Creating detachable joint [48]
Msg [NameManager::issueNewName] (Skeleton::Joint | vehicle_blue) The name [fixed] is a duplicate, so it has been renamed to [fixed(1)]
[Dbg] [Physics.cc:1864] Creating detachable joint [49]
Msg [NameManager::issueNewName] (Skeleton::Joint | vehicle_blue) The name [fixed] is a duplicate, so it has been renamed to [fixed(2)]
[Dbg] [Physics.cc:1864] Creating detachable joint [50]
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model
[GUI] [Wrn] [Model.hh:98] Unable to deserialize sdf::Model I'm not sure if this is the expected behavior. |
I'm not able to reproduce the problem locally. Reset seems to work as expected on Screen.recording.2023-09-19.15.43.16.webm |
Removing |
@ahcorde can you try this one more time? |
🦟 Bug fix
Fixes gazebosim/gazebo_test_cases#238
Summary
When a world with detachable joint is resetted the joint disappears, this should fix the issue
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.