From 77123a4f659180480d429ec82700430cd2e79abe Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Wed, 20 Dec 2023 10:59:46 +0000 Subject: [PATCH] Models: update world orientation and fixes for Harmonic - Anemometer: use degrees. - Gimbal 1D: use degrees in pose. - Gimbal 2D: use degrees in pose. - Parachute: update plugin filename. - Iris: use degrees, replace -0 with 0. - Iris: remove z-offset from iris_with_standoffs model. - Remove z-offset from iris_with_standoffs, so model origin is at CoM. - Set pose in world file. - Zephyr: use degrees. - Zephyr: update parachute plugin name. - Zephyr: disable moment coefficient contribution. - Required due to changed behaviour in Gazebo Harmonic. - Update gimbal pose in iris_with_gimbal world. - Update iris_warehouse world. Signed-off-by: Rhys Mainwaring --- models/gimbal_small_1d/model.sdf | 2 +- models/gimbal_small_2d/model.sdf | 2 +- models/iris_with_ardupilot/model.sdf | 88 +++++++++++++------------- models/iris_with_gimbal/model.sdf | 6 +- models/iris_with_standoffs/model.sdf | 36 +++++------ models/parachute_small/model.sdf | 4 +- models/zephyr/model.sdf | 4 +- models/zephyr_with_ardupilot/model.sdf | 14 ++-- models/zephyr_with_parachute/model.sdf | 16 ++--- tests/worlds/test_anemometer.sdf | 6 +- worlds/iris_runway.sdf | 2 +- worlds/iris_warehouse.sdf | 26 ++++---- worlds/zephyr_parachute.sdf | 4 +- 13 files changed, 105 insertions(+), 105 deletions(-) diff --git a/models/gimbal_small_1d/model.sdf b/models/gimbal_small_1d/model.sdf index bd128e45..adbe05b9 100644 --- a/models/gimbal_small_1d/model.sdf +++ b/models/gimbal_small_1d/model.sdf @@ -108,7 +108,7 @@ - 0 0 0 -1.57 -1.57 0 + 0 0 0 -90 -90 0 2.0 diff --git a/models/gimbal_small_2d/model.sdf b/models/gimbal_small_2d/model.sdf index 5d6b9921..9a559b96 100644 --- a/models/gimbal_small_2d/model.sdf +++ b/models/gimbal_small_2d/model.sdf @@ -144,7 +144,7 @@ - 0 0 0 -1.57 -1.57 0 + 0 0 0 -90 -90 0 2.0 diff --git a/models/iris_with_ardupilot/model.sdf b/models/iris_with_ardupilot/model.sdf index 3381f2ca..6a57b73e 100755 --- a/models/iris_with_ardupilot/model.sdf +++ b/models/iris_with_ardupilot/model.sdf @@ -79,9 +79,9 @@ 0 - 0.13 -0.22 0.216 0 -0 0 + 0.13 -0.22 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -93,7 +93,7 @@ - -0.12 0 0 0 -0 0 + -0.12 0 0 0 0 0 0.01 @@ -105,7 +105,7 @@ - -0.084 0 0 0 -0 0 + -0.084 0 0 0 0 0 0.003 @@ -117,7 +117,7 @@ - -0.084 -0.02 0 0 -0 0 + -0.084 -0.02 0 0 0 0 0.003 @@ -129,7 +129,7 @@ - -0.084 0 0.02 0 -0 0 + -0.084 0 0.02 0 0 0 0.003 @@ -166,9 +166,9 @@ 0 - -0.13 0.2 0.216 0 -0 0 + -0.13 0.2 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -180,7 +180,7 @@ - 0.12 0 0 0 -0 0 + 0.12 0 0 0 0 0 0.01 @@ -192,7 +192,7 @@ - 0.084 0 0 0 -0 0 + 0.084 0 0 0 0 0 0.003 @@ -204,7 +204,7 @@ - 0.084 0.02 0 0 -0 0 + 0.084 0.02 0 0 0 0 0.003 @@ -216,7 +216,7 @@ - 0.084 0 0.02 0 -0 0 + 0.084 0 0.02 0 0 0 0.003 @@ -230,9 +230,9 @@ 0 - -0.13 0.2 0.216 0 -0 0 + -0.13 0.2 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -244,7 +244,7 @@ - -0.12 0 0 0 -0 0 + -0.12 0 0 0 0 0 0.01 @@ -256,7 +256,7 @@ - -0.084 0 0 0 -0 0 + -0.084 0 0 0 0 0 0.003 @@ -268,7 +268,7 @@ - -0.084 -0.02 0 0 -0 0 + -0.084 -0.02 0 0 0 0 0.003 @@ -280,7 +280,7 @@ - -0.084 0 0.02 0 -0 0 + -0.084 0 0.02 0 0 0 0.003 @@ -317,9 +317,9 @@ 0 - 0.13 0.22 0.216 0 -0 0 + 0.13 0.22 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -331,7 +331,7 @@ - 0.12 0 0 0 -0 0 + 0.12 0 0 0 0 0 0.01 @@ -343,7 +343,7 @@ - 0.084 0 0 0 -0 0 + 0.084 0 0 0 0 0 0.003 @@ -355,7 +355,7 @@ - 0.084 -0.02 0 0 -0 0 + 0.084 -0.02 0 0 0 0 0.003 @@ -367,7 +367,7 @@ - 0.084 0 0.02 0 -0 0 + 0.084 0 0.02 0 0 0 0.003 @@ -381,9 +381,9 @@ 0 - 0.13 0.22 0.216 0 -0 0 + 0.13 0.22 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -395,7 +395,7 @@ - -0.12 0 0 0 -0 0 + -0.12 0 0 0 0 0 0.01 @@ -407,7 +407,7 @@ - -0.084 0 0 0 -0 0 + -0.084 0 0 0 0 0 0.003 @@ -419,7 +419,7 @@ - -0.084 0.02 0 0 -0 0 + -0.084 0.02 0 0 0 0 0.003 @@ -431,7 +431,7 @@ - -0.084 0 0.02 0 -0 0 + -0.084 0 0.02 0 0 0 0.003 @@ -468,9 +468,9 @@ 0 - -0.13 -0.2 0.216 0 -0 0 + -0.13 -0.2 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -482,7 +482,7 @@ - 0.12 0 0 0 -0 0 + 0.12 0 0 0 0 0 0.01 @@ -494,7 +494,7 @@ - 0.084 0 0 0 -0 0 + 0.084 0 0 0 0 0 0.003 @@ -506,7 +506,7 @@ - 0.084 -0.02 0 0 -0 0 + 0.084 -0.02 0 0 0 0 0.003 @@ -518,7 +518,7 @@ - 0.084 0 0.02 0 -0 0 + 0.084 0 0.02 0 0 0 0.003 @@ -532,9 +532,9 @@ 0 - -0.13 -0.2 0.216 0 -0 0 + -0.13 -0.2 0.216 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.01 @@ -546,7 +546,7 @@ - -0.12 0 0 0 -0 0 + -0.12 0 0 0 0 0 0.01 @@ -558,7 +558,7 @@ - -0.084 0 0 0 -0 0 + -0.084 0 0 0 0 0 0.003 @@ -570,7 +570,7 @@ - -0.084 0.02 0 0 -0 0 + -0.084 0.02 0 0 0 0 0.003 @@ -582,7 +582,7 @@ - -0.084 0 0.02 0 -0 0 + -0.084 0 0.02 0 0 0 0.003 @@ -791,8 +791,8 @@ - 0 0 0 3.141593 0 0 - 0 0 0 3.141593 0 1.57079632 + 0 0 0 180 0 0 + 0 0 0 180 0 90 iris_with_standoffs::imu_link::imu_sensor diff --git a/models/iris_with_gimbal/model.sdf b/models/iris_with_gimbal/model.sdf index 4f417c8d..94311401 100755 --- a/models/iris_with_gimbal/model.sdf +++ b/models/iris_with_gimbal/model.sdf @@ -8,7 +8,7 @@ model://gimbal_small_2d gimbal - 0 -0.01 0.070 1.57 0 1.57 + 0 -0.01 -0.124923 90 0 90 @@ -195,8 +195,8 @@ - 0 0 0 3.141593 0 0 - 0 0 0 3.141593 0 1.57079632 + 0 0 0 180 0 0 + 0 0 0 180 0 90 iris_with_standoffs::imu_link::imu_sensor diff --git a/models/iris_with_standoffs/model.sdf b/models/iris_with_standoffs/model.sdf index 0978a93b..ad4980cc 100755 --- a/models/iris_with_standoffs/model.sdf +++ b/models/iris_with_standoffs/model.sdf @@ -1,7 +1,7 @@ - 0 0 0.194923 0 0 0 + 0 0 0 0 0 0 0.0 @@ -155,7 +155,7 @@ - 0 0 0 3.141593 0 0 + 0 0 0 180 0 0 1 1000.0 @@ -177,9 +177,9 @@ - 0.13 -0.22 0.023 0 -0 0 + 0.13 -0.22 0.023 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.025 9.75e-06 @@ -191,7 +191,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.005 @@ -208,7 +208,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 1 1 1 @@ -251,9 +251,9 @@ - -0.13 0.2 0.023 0 -0 0 + -0.13 0.2 0.023 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.025 9.75e-06 @@ -265,7 +265,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.005 @@ -282,7 +282,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 1 1 1 @@ -325,9 +325,9 @@ - 0.13 0.22 0.023 0 -0 0 + 0.13 0.22 0.023 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.025 9.75e-06 @@ -339,7 +339,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.005 @@ -356,7 +356,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 1 1 1 @@ -399,9 +399,9 @@ - -0.13 -0.2 0.023 0 -0 0 + -0.13 -0.2 0.023 0 0 0 - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.025 9.75e-06 @@ -413,7 +413,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 0.005 @@ -430,7 +430,7 @@ - 0 0 0 0 -0 0 + 0 0 0 0 0 0 1 1 1 diff --git a/models/parachute_small/model.sdf b/models/parachute_small/model.sdf index 115ba952..195f9d58 100644 --- a/models/parachute_small/model.sdf +++ b/models/parachute_small/model.sdf @@ -47,8 +47,8 @@ - + 0 0 1.75 diff --git a/models/zephyr/model.sdf b/models/zephyr/model.sdf index c0ca4ebf..365dcb4a 100644 --- a/models/zephyr/model.sdf +++ b/models/zephyr/model.sdf @@ -96,7 +96,7 @@ - 0 0.07 0.008 0 1.5707 0 + 0 0.07 0.008 0 90 0 .05 @@ -260,7 +260,7 @@ - 0 0 0 3.141593 0 -1.5707963 + 0 0 0 180 0 -90 1 1000.0 diff --git a/models/zephyr_with_ardupilot/model.sdf b/models/zephyr_with_ardupilot/model.sdf index af2ce62b..08ba7b13 100644 --- a/models/zephyr_with_ardupilot/model.sdf +++ b/models/zephyr_with_ardupilot/model.sdf @@ -19,7 +19,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 0 -0.1 0 0.50 1.2041 @@ -37,7 +37,7 @@ 0.6391428111 -3.85 -0.9233984055 - 0 + 0.0 0.7 0.20 0 0.10 1.2041 @@ -57,7 +57,7 @@ 0.6391428111 -3.85 -0.9233984055 - 0 + 0.0 -0.7 0.20 0 0.10 1.2041 @@ -77,7 +77,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 -0.76 0.30 0.025 0.12 1.2041 @@ -95,7 +95,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 0.76 0.30 0.025 0.12 1.2041 @@ -170,8 +170,8 @@ Zephyr is oriented x-left, y-back, z-up --> - 0 0 0 3.141593 0 -1.5707963 - 0 0 0 3.141593 0 1.57079632 + 0 0 0 180 0 -90 + 0 0 0 180 0 90 zephyr::imu_link::imu_sensor diff --git a/models/zephyr_with_parachute/model.sdf b/models/zephyr_with_parachute/model.sdf index ff27d9a6..4a5be9d1 100644 --- a/models/zephyr_with_parachute/model.sdf +++ b/models/zephyr_with_parachute/model.sdf @@ -11,7 +11,7 @@ must be fixed. --> - 0 0 0.1 0 0 -1.5707963 + 0 0 0.1 0 0 -90 0 0 0 0 0 0 0.1 @@ -51,7 +51,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 0 -0.1 0 0.50 1.2041 @@ -69,7 +69,7 @@ 0.6391428111 -3.85 -0.9233984055 - 0 + 0.0 0.7 0.20 0 0.10 1.2041 @@ -89,7 +89,7 @@ 0.6391428111 -3.85 -0.9233984055 - 0 + 0.0 -0.7 0.20 0 0.10 1.2041 @@ -109,7 +109,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 -0.76 0.30 0.025 0.12 1.2041 @@ -127,7 +127,7 @@ 0.3391428111 -3.85 -0.9233984055 - 0 + 0.0 0.76 0.30 0.025 0.12 1.2041 @@ -202,8 +202,8 @@ Zephyr is oriented x-left, y-back, z-up --> - 0 0 0 3.141593 0 -1.5707963 - 0 0 0 3.141593 0 1.57079632 + 0 0 0 180 0 -90 + 0 0 0 180 0 90 zephyr::imu_link::imu_sensor diff --git a/tests/worlds/test_anemometer.sdf b/tests/worlds/test_anemometer.sdf index 256e589d..584cb433 100644 --- a/tests/worlds/test_anemometer.sdf +++ b/tests/worlds/test_anemometer.sdf @@ -10,7 +10,7 @@ SITL - sim_vehicle.py -D -v Rover -f JSON -/-console -/-map + sim_vehicle.py -D -v Rover -/-model JSON -/-console -/-map MANUAL> param set WNDVN_TYPE 11 MANUAL> param set WNDVN_SPEED_TYPE 11 @@ -289,8 +289,8 @@ 9002 5 1 - 0 0 0 3.141593 0 1.57079632 - 0 0 0 3.141593 0 0 + 0 0 0 180 0 90 + 0 0 0 180 0 0 imu_link::imu_sensor anemometer_link::anemometer diff --git a/worlds/iris_runway.sdf b/worlds/iris_runway.sdf index a9ccd10f..8f87d99e 100755 --- a/worlds/iris_runway.sdf +++ b/worlds/iris_runway.sdf @@ -117,7 +117,7 @@ model://iris_with_ardupilot - 0 0 0 0 0 90 + 0 0 0.195 0 0 90 diff --git a/worlds/iris_warehouse.sdf b/worlds/iris_warehouse.sdf index cd3aeada..80010aca 100644 --- a/worlds/iris_warehouse.sdf +++ b/worlds/iris_warehouse.sdf @@ -267,44 +267,44 @@ https://fuel.gazebosim.org/1.0/OpenRobotics/models/fog emitter - + - + - + - -9.0 -6.21 5.0 0 0.9 -3.14 + -9.0 -6.21 5.0 0 51.5 -180 true https://fuel.gazebosim.org/1.0/OpenRobotics/models/16-Bit Thermal Camera - -9.0 -5.95 5.0 0 0.9 -3.14 + -9.0 -5.95 5.0 0 51.5 -180 true https://fuel.gazebosim.org/1.0/OpenRobotics/models/8-Bit Thermal Camera - -9.075 -6.15 4.995 0 0.9 -3.14 + -9.075 -6.15 4.995 0 51.5 -180 true https://fuel.gazebosim.org/1.0/OpenRobotics/models/Camera - - -9.04 -6.04 4.97 0 0.9 -3.14 + + -9.04 -6.04 4.97 0 51.5 -180 true https://fuel.gazebosim.org/1.0/OpenRobotics/models/Depth Camera diff --git a/worlds/zephyr_parachute.sdf b/worlds/zephyr_parachute.sdf index 936a7517..f44fb0b4 100755 --- a/worlds/zephyr_parachute.sdf +++ b/worlds/zephyr_parachute.sdf @@ -78,7 +78,7 @@ SITL ==== - sim_vehicle.py -D -v ArduPlane -f gazebo-zephyr \-\-model JSON \-\-map \-\-console + sim_vehicle.py -D -v ArduPlane -f gazebo-zephyr -\-model JSON -\-map -\-console MAVProxy ======== @@ -206,7 +206,7 @@ model://zephyr_with_parachute 0 0 0.422 -90 0 180 - + parachute_attachment_link parachute_small chute