From 3aa06768d04bb8c6beccc59d48187513db2b6ff7 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Mon, 3 Feb 2020 10:46:08 +0800 Subject: [PATCH 1/5] Ported collide bitmask example to ignition gazebo --- examples/worlds/shapes_bitmask.sdf | 278 +++++++++++++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 examples/worlds/shapes_bitmask.sdf diff --git a/examples/worlds/shapes_bitmask.sdf b/examples/worlds/shapes_bitmask.sdf new file mode 100644 index 0000000000..2c259be4ad --- /dev/null +++ b/examples/worlds/shapes_bitmask.sdf @@ -0,0 +1,278 @@ + + + + + + 0.001 + 1.0 + + + + + + + + + + 1.0 1.0 1.0 + 0.8 0.8 0.8 + + + + + + + + 3D View + false + docked + + + ogre2 + scene + 1.0 1.0 1.0 + 0.8 0.8 0.8 + -6 0 6 0 0.5 0 + + + + + + World control + false + false + 72 + 121 + 1 + + floating + + + + + + + true + true + true + /world/shapes/control + /world/shapes/stats + + + + + + + World stats + false + false + 110 + 290 + 1 + + floating + + + + + + + true + true + true + true + /world/shapes/stats + + + + + + + false + docked + + + + + + + + + + + true + 0 0 10 0 0 0 + 0.8 0.8 0.8 1 + 0.8 0.8 0.8 1 + + 1000 + 0.9 + 0.01 + 0.001 + + -0.5 0.1 -0.9 + + + + true + + + + + 0 0 1 + + + + + + + 0 0 1 + 100 100 + + + + 0.8 0.8 0.8 1 + 0.8 0.8 0.8 1 + 0.8 0.8 0.8 1 + + + + + + + 0 0 1.0 0 0 0 + + + + 1 + 0 + 0 + 1 + 0 + 1 + + 1.0 + + + + + 1 1 1 + + + + + 0x01 + + + + + + + 1 1 1 + + + 1 0 0 1 + 1 0 0 1 + 1 0 0 1 + + + + + + + + 0 0 3.0 0 0 0 + + + + 1 + 0 + 0 + 1 + 0 + 1 + + 1.0 + + + + + 1 1 1 + + + + + 0x02 + + + + + + + 1 1 1 + + + + 1 0 0 1 + 1 0 0 1 + 1 0 0 1 + + + + + + + 0 0 6.0 0 0 0 + + + + 1 + 0 + 0 + 1 + 0 + 1 + + 1.0 + + + + + 1 1 1 + + + + + 0x03 + + + + + + + 1 1 1 + + + 1 0 0 1 + 1 0 0 1 + 1 0 0 1 + + + + + + + + From a06f8763ea42691a1cee5c467aa26ef023458aab Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Mon, 3 Feb 2020 11:00:13 +0800 Subject: [PATCH 2/5] Fix names in world --- examples/worlds/shapes_bitmask.sdf | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/examples/worlds/shapes_bitmask.sdf b/examples/worlds/shapes_bitmask.sdf index 2c259be4ad..40a10ad030 100644 --- a/examples/worlds/shapes_bitmask.sdf +++ b/examples/worlds/shapes_bitmask.sdf @@ -1,13 +1,6 @@ - - + 0.001 1.0 @@ -67,8 +60,8 @@ Try moving a model: true true true - /world/shapes/control - /world/shapes/stats + /world/shapes_bitmask/control + /world/shapes_bitmask/stats @@ -93,7 +86,7 @@ Try moving a model: true true true - /world/shapes/stats + /world/shapes_bitmask/stats From 7ac78f81f65289f6e2ead55bd12d4369c930bdb0 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Mon, 3 Feb 2020 18:10:44 -0800 Subject: [PATCH 3/5] fix material sdf elem --- examples/worlds/shapes_bitmask.sdf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/worlds/shapes_bitmask.sdf b/examples/worlds/shapes_bitmask.sdf index 40a10ad030..4258985d6e 100644 --- a/examples/worlds/shapes_bitmask.sdf +++ b/examples/worlds/shapes_bitmask.sdf @@ -175,12 +175,12 @@ 1 1 1 + 1 0 0 1 1 0 0 1 1 0 0 1 - @@ -218,9 +218,9 @@ - 1 0 0 1 - 1 0 0 1 - 1 0 0 1 + 0 1 0 1 + 0 1 0 1 + 0 1 0 1 @@ -257,12 +257,12 @@ 1 1 1 + - 1 0 0 1 - 1 0 0 1 - 1 0 0 1 + 1 1 0 1 + 1 1 0 1 + 1 1 0 1 - From 7e5d885f67303c7e44711f22a1c25e1444245c1d Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Tue, 4 Feb 2020 16:39:07 +0800 Subject: [PATCH 4/5] Add changelog --- Changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Changelog.md b/Changelog.md index cd10e66158..863328c5d6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,9 @@ ### Ignition Gazebo 3.0.0 (2019-12-10) +1. Add example world for collide bitmask feature + * [Pull Request 525](https://bitbucket.org/ignitionrobotics/ign-gazebo/pull-requests/525) + 1. Remove sdf element from visuals that do not emit light in the example worlds * [Pull Request 478](https://bitbucket.org/ignitionrobotics/ign-gazebo/pull-requests/478) * [Pull Request 480](https://bitbucket.org/ignitionrobotics/ign-gazebo/pull-requests/480) From 342edb4c41ef509a727ea02b91c8c68ebca853b1 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Wed, 4 Mar 2020 06:54:24 +0000 Subject: [PATCH 5/5] Close branch collide_bitmask_example