From 5ce1bf4b07b05ee7b3a408f533136203bcabcfcf Mon Sep 17 00:00:00 2001 From: rickstaa Date: Tue, 23 Nov 2021 22:32:36 +0100 Subject: [PATCH 1/2] fix(franka_gazebo): improve 'stone.world' models --- CHANGELOG.md | 1 + franka_gazebo/models/pick_tray/model.config | 11 + franka_gazebo/models/pick_tray/model.sdf | 104 ++++++ franka_gazebo/models/place_tray/model.config | 11 + franka_gazebo/models/place_tray/model.sdf | 104 ++++++ franka_gazebo/models/stone/model.config | 11 + franka_gazebo/models/stone/model.sdf | 104 ++++++ franka_gazebo/models/table/model.config | 11 + franka_gazebo/models/table/model.sdf | 98 +++++ franka_gazebo/package.xml | 4 + franka_gazebo/world/stone.sdf | 364 ------------------- franka_gazebo/worlds/stone.world | 36 ++ 12 files changed, 495 insertions(+), 364 deletions(-) create mode 100644 franka_gazebo/models/pick_tray/model.config create mode 100644 franka_gazebo/models/pick_tray/model.sdf create mode 100644 franka_gazebo/models/place_tray/model.config create mode 100644 franka_gazebo/models/place_tray/model.sdf create mode 100644 franka_gazebo/models/stone/model.config create mode 100644 franka_gazebo/models/stone/model.sdf create mode 100644 franka_gazebo/models/table/model.config create mode 100644 franka_gazebo/models/table/model.sdf delete mode 100644 franka_gazebo/world/stone.sdf create mode 100644 franka_gazebo/worlds/stone.world diff --git a/CHANGELOG.md b/CHANGELOG.md index 83f4b2d08..b7baac45d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Make finger collisions primitive in `franka_gazebo` * add 'gravity_vector' gravity ROS parameter to FrankaHWSim * Fix "Failed to create robot simulation interface loader" bug when installing from APT +* Improve Gazebo 'stone' world objects ## 0.8.1 - 2021-09-08 diff --git a/franka_gazebo/models/pick_tray/model.config b/franka_gazebo/models/pick_tray/model.config new file mode 100644 index 000000000..009e06bc6 --- /dev/null +++ b/franka_gazebo/models/pick_tray/model.config @@ -0,0 +1,11 @@ + + + pick_tray + 1.0 + model.sdf + + Franka Emika + support@franka.de + + Simple blue coloured tray. + diff --git a/franka_gazebo/models/pick_tray/model.sdf b/franka_gazebo/models/pick_tray/model.sdf new file mode 100644 index 000000000..15a85487b --- /dev/null +++ b/franka_gazebo/models/pick_tray/model.sdf @@ -0,0 +1,104 @@ + + + + + 0.0 0.0 0.011674 0 -0 0 + + + 0.7634836885523328 + + 0.00137101 + 0 + 0 + 0.00354935 + 0 + 0.00485098 + + 0 0 0 0 -0 0 + + 0 + 0 + 0 + 0 0 0 0 -0 0 + + + + 0.235035 0.144926 0.023348 + + + + + + + 0 0 0 0 -0 0 + 0 + 1 + + + 0 + 10 + 0 0 0 0 -0 0 + + + 0.235035 0.144926 0.023348 + + + + + + + 0.6 + 0.6 + 0 0 0 + 0 + 0 + + + 1 + 0 + 0 + 1 + + 0 + + + + + 0 + 1e+06 + + + 0 + 1 + 1 + + 0 + 0.2 + 1e+13 + 1 + 0.01 + 0 + + + 1 + -0.01 + 0 + 0.2 + 1e+13 + 1 + + + + + + 0 + 1 + + diff --git a/franka_gazebo/models/place_tray/model.config b/franka_gazebo/models/place_tray/model.config new file mode 100644 index 000000000..1b1689563 --- /dev/null +++ b/franka_gazebo/models/place_tray/model.config @@ -0,0 +1,11 @@ + + + place_tray + 1.0 + model.sdf + + Franka Emika + support@franka.de + + A simple red coloured tray. + diff --git a/franka_gazebo/models/place_tray/model.sdf b/franka_gazebo/models/place_tray/model.sdf new file mode 100644 index 000000000..41f91644c --- /dev/null +++ b/franka_gazebo/models/place_tray/model.sdf @@ -0,0 +1,104 @@ + + + + + 0.0 0.0 0.011674 0 -0 0 + + + 0.7634836885523328 + + 0.00137101 + 0 + 0 + 0.00354935 + 0 + 0.00485098 + + 0 0 0 0 -0 0 + + 0 + 0 + 0 + 0 0 0 0 -0 0 + + + + 0.235035 0.144926 0.023348 + + + + + + + 0 0 0 0 -0 0 + 0 + 1 + + + 0 + 10 + 0 0 0 0 -0 0 + + + 0.235035 0.144926 0.023348 + + + + + + + 0.6 + 0.6 + 0 0 0 + 0 + 0 + + + 1 + 0 + 0 + 1 + + 0 + + + + + 0 + 1e+06 + + + 0 + 1 + 1 + + 0 + 0.2 + 1e+13 + 1 + 0.01 + 0 + + + 1 + -0.01 + 0 + 0.2 + 1e+13 + 1 + + + + + + 0 + 1 + + diff --git a/franka_gazebo/models/stone/model.config b/franka_gazebo/models/stone/model.config new file mode 100644 index 000000000..4d3cefa04 --- /dev/null +++ b/franka_gazebo/models/stone/model.config @@ -0,0 +1,11 @@ + + + stone + 1.0 + model.sdf + + Franka Emika + support@franka.de + + A simple stone. + diff --git a/franka_gazebo/models/stone/model.sdf b/franka_gazebo/models/stone/model.sdf new file mode 100644 index 000000000..f1c058f85 --- /dev/null +++ b/franka_gazebo/models/stone/model.sdf @@ -0,0 +1,104 @@ + + + + + 0.0 0.0 0.032 0 -0 0 + + + 0.08192 + + 3.49525333e-05 + 0 + 0 + 3.06926933e-05 + 0 + 9.72117333e-06 + + 0 0 0 0 -0 0 + + 0 + 0 + 0 + 0 0 0 0 -0 0 + + + + 0.02 0.032 0.064 + + + + + + + 0 0 0 0 -0 0 + 0 + 1 + + + 0 + 10 + 0 0 0 0 -0 0 + + + 0.02 0.032 0.064 + + + + + + + 0.6 + 0.6 + 0 0 0 + 0 + 0 + + + 1 + 0 + 0 + 1 + + 0 + + + + + 0 + 1e+06 + + + 0 + 1 + 1 + + 0 + 0.2 + 1e+13 + 1 + 0 + 0.003 + + + 1 + -0.01 + 0 + 0.2 + 1e+13 + 1 + + + + + + 0 + 1 + + diff --git a/franka_gazebo/models/table/model.config b/franka_gazebo/models/table/model.config new file mode 100644 index 000000000..aac78c9b8 --- /dev/null +++ b/franka_gazebo/models/table/model.config @@ -0,0 +1,11 @@ + + + table + 1.0 + model.sdf + + Franka Emika + support@franka.de + + A simple table. + diff --git a/franka_gazebo/models/table/model.sdf b/franka_gazebo/models/table/model.sdf new file mode 100644 index 000000000..ad3fa134a --- /dev/null +++ b/franka_gazebo/models/table/model.sdf @@ -0,0 +1,98 @@ + + + + + 0 0 0.2099115 0 -0 0 + + 0 0 0 0 -0 0 + 10 + + 0.166667 + 0 + 0 + 0.166667 + 0 + 0.166667 + + + 0 + 0 + 0 + + 0 0 0 0 -0 0 + + + 0.453157 0.642049 0.419823 + + + + + + + 0 0 0 0 -0 0 + 0 + 1 + + + 0 + 10 + 0 0 0 0 -0 0 + + + 0.453157 0.642049 0.419823 + + + + + + 1 + 1 + 0 0 0 + 0 + 0 + + + 1 + 0 + 0 + 1 + + 0 + + + + + 0 + 1e+06 + + + 0 + 1 + 1 + + 0 + 0.2 + 1e+13 + 1 + 0.01 + 0 + + + 1 + -0.01 + 0 + 0.2 + 1e+13 + 1 + + + + + + 1 + 1 + + diff --git a/franka_gazebo/package.xml b/franka_gazebo/package.xml index 901863799..11c41dbbd 100644 --- a/franka_gazebo/package.xml +++ b/franka_gazebo/package.xml @@ -43,5 +43,9 @@ + + + + diff --git a/franka_gazebo/world/stone.sdf b/franka_gazebo/world/stone.sdf deleted file mode 100644 index e3911a288..000000000 --- a/franka_gazebo/world/stone.sdf +++ /dev/null @@ -1,364 +0,0 @@ - - - - 0 0 - 0 0 - 1624534445 711523457 - 0 - - 0 0 0 0 -0 0 - 1 1 1 - - 0 0 0 0 -0 0 - 0 0 0 0 -0 0 - 0 0 0 0 -0 0 - 0 0 0 0 -0 0 - - - - -0.004103 0.219654 0.431426 -0.000112 -9.6e-05 0.01087 - 1 1 1 - - -0.004103 0.219654 0.431426 -0.000112 -9.6e-05 0.01087 - 0 0 0 0 -0 0 - 0 0 -9.8 0 -0 0 - 0 0 -9.8 0 -0 0 - - - - 0.009179 -0.219554 0.430776 3.5e-05 -1.8e-05 -0.006066 - 1 1 1 - - 0.009179 -0.219554 0.430776 3.5e-05 -1.8e-05 -0.006066 - 0 0 0 0 -0 0 - 0 -0 -10.78 0.181358 -0.160514 0 - 0 -0 -10.78 0 -0 0 - - - - 0.000286 -0.221972 0.475172 7.5e-05 3.5e-05 0.003179 - 1 1 1 - - 0.000286 -0.221972 0.475172 7.5e-05 3.5e-05 0.003179 - 0 0 0 0 -0 0 - 0 0 -9.8 0 -0 0 - 0 0 -0.49 0 -0 0 - - - - -0.016428 0.000584 0.209863 -4.5e-05 -1.6e-05 1.8e-05 - 0.148528 0.465925 0.163403 - - -0.016428 0.000584 0.209863 -4.5e-05 -1.6e-05 1.8e-05 - 0 0 0 0 -0 0 - 0.545345 -1.28786 -23.3914 2.21988 -1.56308 -2.85983 - 0.545345 -1.28786 -23.3914 0 -0 0 - - - - 0 0 2 0 0 0 - - - - 1 - 1 1 1 1 - 0.8 0.8 0.8 1 - -0.5 -0.5 -1 - 0 0 2 0 0 0 - - 1000 - 1 - 1 - 0.001 - - - - 1 - - - - - 100 100 - 0 0 1 - - - 10 - - - - - - - - - - - - - - - - - 100 100 - 0 0 1 - - - - - - - 1 - 0 - 0 - - - - - - 0.05 - - 0.001 - 0 - 0 - 0.001 - 0 - 0.001 - - - - - - 0.02 0.032 0.064 - - - 10 - - - - 0 - 0.003 - - - - - 1.13 - 1.13 - - - - - - - - - - - - 0.02 0.032 0.064 - - - - - - - 0 - 0 - 0 - - - 0 0 -9.8 - 6e-06 2.3e-05 -4.2e-05 - - - 0.001 - 1 - 1000 - - - 0.4 0.4 0.4 1 - 0.7 0.7 0.7 1 - 1 - - - - - EARTH_WGS84 - 0 - 0 - 0 - 0 - - - -0.045922 0.225094 0.5 0 -0 0 - - - 1 - - 0.166667 - 0 - 0 - 0.166667 - 0 - 0.166667 - - - - - - 0.235035 0.144926 0.023348 - - - 10 - - - - - - - - - - - - - - - - - 0.235035 0.144926 0.023348 - - - - - - - 0 - 0 - 0 - - - - - 1.21935 -0.642908 0.9243 0 0.381797 2.69376 - orbit - perspective - - - - 1 - 0 0 0.5 0 -0 0 - - - 1 - - 0.166667 - 0 - 0 - 0.166667 - 0 - 0.166667 - - - - - - 3.05099 1.37801 2.56925 - - - 10 - - - - - - - - - - - - - - - - - 3.05099 1.37801 2.56925 - - - - - - - 0 - 0 - 0 - - - - 0.009381 -0.218515 0.445328 -0.000167 -7.4e-05 -0.002119 - - - 1 - - 0.166667 - 0 - 0 - 0.166667 - 0 - 0.166667 - - - - - - 0.235035 0.144926 0.023348 - - - 10 - - - - - - - - - - - - - - - - - 0.235035 0.144926 0.023348 - - - - - - - 0 - 0 - 0 - - - - diff --git a/franka_gazebo/worlds/stone.world b/franka_gazebo/worlds/stone.world new file mode 100644 index 000000000..9f2315654 --- /dev/null +++ b/franka_gazebo/worlds/stone.world @@ -0,0 +1,36 @@ + + + + + + model://sun + + + + model://ground_plane + + + + model://table + 0.016428 0.000584 0.0 0 -0 0 + 1 + + + + model://pick_tray + 0.008578 -0.215704 0.419773 0 -0 -0 + 1 + + + + model://place_tray + 0.004103 0.219654 0.419764 0 -0 -0 + 1 + + + + model://stone + 0.000286 -0.221972 0.475172 0 -0 -0 + + + From b5d4dc6cd87af3e4b4af3817904fcc8b7d6316f1 Mon Sep 17 00:00:00 2001 From: rickstaa Date: Fri, 10 Dec 2021 11:13:04 +0100 Subject: [PATCH 2/2] style: improve model structure and code style Co-authored-by: Marco Boneberger --- franka_gazebo/models/pick_tray/model.config | 2 +- franka_gazebo/models/pick_tray/model.sdf | 2 +- franka_gazebo/models/place_tray/model.config | 2 +- franka_gazebo/models/place_tray/model.sdf | 2 +- franka_gazebo/models/stone/model.config | 2 +- franka_gazebo/models/stone/model.sdf | 4 ++-- franka_gazebo/models/table/model.config | 2 +- franka_gazebo/models/table/model.sdf | 2 +- franka_gazebo/package.xml | 2 +- franka_gazebo/{worlds/stone.world => world/stone.sdf} | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename franka_gazebo/{worlds/stone.world => world/stone.sdf} (97%) diff --git a/franka_gazebo/models/pick_tray/model.config b/franka_gazebo/models/pick_tray/model.config index 009e06bc6..3ab7eb58c 100644 --- a/franka_gazebo/models/pick_tray/model.config +++ b/franka_gazebo/models/pick_tray/model.config @@ -2,7 +2,7 @@ pick_tray 1.0 - model.sdf + model.sdf Franka Emika support@franka.de diff --git a/franka_gazebo/models/pick_tray/model.sdf b/franka_gazebo/models/pick_tray/model.sdf index 15a85487b..3ad696a03 100644 --- a/franka_gazebo/models/pick_tray/model.sdf +++ b/franka_gazebo/models/pick_tray/model.sdf @@ -1,5 +1,5 @@ - + 0.0 0.0 0.011674 0 -0 0 diff --git a/franka_gazebo/models/place_tray/model.config b/franka_gazebo/models/place_tray/model.config index 1b1689563..3e44ee5e7 100644 --- a/franka_gazebo/models/place_tray/model.config +++ b/franka_gazebo/models/place_tray/model.config @@ -2,7 +2,7 @@ place_tray 1.0 - model.sdf + model.sdf Franka Emika support@franka.de diff --git a/franka_gazebo/models/place_tray/model.sdf b/franka_gazebo/models/place_tray/model.sdf index 41f91644c..b6e85bfb2 100644 --- a/franka_gazebo/models/place_tray/model.sdf +++ b/franka_gazebo/models/place_tray/model.sdf @@ -1,5 +1,5 @@ - + 0.0 0.0 0.011674 0 -0 0 diff --git a/franka_gazebo/models/stone/model.config b/franka_gazebo/models/stone/model.config index 4d3cefa04..ab10209f0 100644 --- a/franka_gazebo/models/stone/model.config +++ b/franka_gazebo/models/stone/model.config @@ -2,7 +2,7 @@ stone 1.0 - model.sdf + model.sdf Franka Emika support@franka.de diff --git a/franka_gazebo/models/stone/model.sdf b/franka_gazebo/models/stone/model.sdf index f1c058f85..2d5d42aa4 100644 --- a/franka_gazebo/models/stone/model.sdf +++ b/franka_gazebo/models/stone/model.sdf @@ -1,8 +1,8 @@ - + - 0.0 0.0 0.032 0 -0 0 + 0.0 0.0 0.0 0 -0 0 - + diff --git a/franka_gazebo/worlds/stone.world b/franka_gazebo/world/stone.sdf similarity index 97% rename from franka_gazebo/worlds/stone.world rename to franka_gazebo/world/stone.sdf index 9f2315654..38f9c25c3 100644 --- a/franka_gazebo/worlds/stone.world +++ b/franka_gazebo/world/stone.sdf @@ -1,5 +1,5 @@ - +