diff --git a/config/gazebo-iris-gimbal.parm b/config/gazebo-iris-gimbal.parm index c2d29622..dd36c19d 100644 --- a/config/gazebo-iris-gimbal.parm +++ b/config/gazebo-iris-gimbal.parm @@ -2,17 +2,18 @@ FRAME_CLASS 1 FRAME_TYPE 1 -# IRLOCK FEATURE -RC8_OPTION 39 -PLND_ENABLED 1 -PLND_TYPE 3 +# Match servo out for motors +MOT_PWM_MIN 1100 +MOT_PWM_MAX 1900 -# SONAR FOR IRLOCK -SIM_SONAR_SCALE 10 -RNGFND1_TYPE 1 -RNGFND1_SCALING 10 -RNGFND1_PIN 0 -RNGFND1_MAX_CM 5000 +# Gimbal on mount 1 has 3 DOF +MNT1_TYPE 1 # Servo +MNT1_PITCH_MAX 45 +MNT1_PITCH_MIN -135 +MNT1_ROLL_MAX 30 +MNT1_ROLL_MIN -30 +MNT1_YAW_MAX 160 +MNT1_YAW_MIN -160 # Gimbal RC in RC6_MAX 1900 diff --git a/models/gimbal_small_1d/model.sdf b/models/gimbal_small_1d/model.sdf index f449fae6..4fefeb56 100644 --- a/models/gimbal_small_1d/model.sdf +++ b/models/gimbal_small_1d/model.sdf @@ -140,11 +140,11 @@ 1 0 0 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0 0 0.02 0 0 0 diff --git a/models/gimbal_small_2d/model.sdf b/models/gimbal_small_2d/model.sdf index 794e9980..f8db885a 100644 --- a/models/gimbal_small_2d/model.sdf +++ b/models/gimbal_small_2d/model.sdf @@ -76,11 +76,11 @@ 0 0 1 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0.01 0 -0.04 0 0 0 @@ -176,11 +176,11 @@ 1 0 0 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0 0 0.02 0 0 0 diff --git a/models/gimbal_small_3d/model.sdf b/models/gimbal_small_3d/model.sdf index d265f7ea..0c4b0145 100644 --- a/models/gimbal_small_3d/model.sdf +++ b/models/gimbal_small_3d/model.sdf @@ -1,8 +1,8 @@ - 0 0 0.18 0 0 0 - + + 0.2 @@ -14,10 +14,10 @@ 0.0001 - + - model://gimbal_small_3d/meshes/base_plate.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/base_plate.dae @@ -26,7 +26,7 @@ 0.01 0.01 0.01 1.0 - + 0.01 0.075 -0.025 0 0 0 @@ -51,7 +51,7 @@ - model://gimbal_small_3d/meshes/yaw_arm.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/yaw_arm.dae @@ -63,22 +63,22 @@ - model://gimbal_small_3d/meshes/yaw_arm.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/yaw_arm.dae - base_link + gimbal_link yaw_link 0 1 0 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0.0105 0.065 -0.002 0 0 0 @@ -99,7 +99,7 @@ - model://gimbal_small_3d/meshes/roll_arm.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/roll_arm.dae @@ -111,7 +111,7 @@ - model://gimbal_small_3d/meshes/roll_arm.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/roll_arm.dae @@ -122,11 +122,11 @@ 0 0 1 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0.0099 0.002 -0.05 0 0 0 @@ -148,7 +148,7 @@ 0 0 0 0 0 0 - model://gimbal_small_3d/meshes/camera_enclosure.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/camera_enclosure.dae @@ -161,7 +161,7 @@ 0 0 0 0 0 0 - model://gimbal_small_3d/meshes/camera_enclosure.dae + package://ardupilot_gazebo/models/gimbal_small_3d/meshes/camera_enclosure.dae @@ -227,11 +227,11 @@ 1 0 0 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0.045 0.0021 0.0199 0 0 0 diff --git a/models/iris_with_gimbal/model.sdf b/models/iris_with_gimbal/model.sdf index 0840b239..a313a643 100755 --- a/models/iris_with_gimbal/model.sdf +++ b/models/iris_with_gimbal/model.sdf @@ -7,9 +7,9 @@ - package://ardupilot_gazebo/models/gimbal_small_2d + package://ardupilot_gazebo/models/gimbal_small_3d gimbal - 0 -0.01 -0.124923 90 0 90 + 0 -0.01 -0.124923 90 0 90 @@ -194,21 +194,6 @@ rotor_3_joint - - roll_joint - /gimbal/cmd_roll - 2 - - - tilt_joint - /gimbal/cmd_tilt - 2 - - lipo_3500mAh @@ -224,6 +209,7 @@ + 127.0.0.1 9002 5 @@ -238,7 +224,6 @@ imu_link::imu_sensor - + roll_joint - 3.14159265 + 1.047197551196 -0.5 1100 1900 COMMAND /gimbal/cmd_roll - 3 + 2 + + + + + pitch_joint + -3.14159265 + -0.75 + 1100 + 1900 + COMMAND + /gimbal/cmd_pitch + 2 - - tilt_joint - 3.14159265 + + + yaw_joint + -5.5850536 -0.5 1100 1900 COMMAND - /gimbal/cmd_tilt - 3 + /gimbal/cmd_yaw + 2 + + roll_joint + /gimbal/cmd_roll + 2 + + + pitch_joint + /gimbal/cmd_pitch + 2 + + + yaw_joint + /gimbal/cmd_yaw + 2 + + diff --git a/worlds/iris_runway.sdf b/worlds/iris_runway.sdf index 8f87d99e..259ac716 100755 --- a/worlds/iris_runway.sdf +++ b/worlds/iris_runway.sdf @@ -116,7 +116,7 @@ - model://iris_with_ardupilot + model://iris_with_gimbal 0 0 0.195 0 0 90 diff --git a/worlds/iris_warehouse.sdf b/worlds/iris_warehouse.sdf index 80010aca..a93cc61c 100644 --- a/worlds/iris_warehouse.sdf +++ b/worlds/iris_warehouse.sdf @@ -250,7 +250,7 @@ -6 0 0.25 0 0 0 - model://iris_with_ardupilot + model://iris_with_gimbal diff --git a/worlds/zephyr_parachute.sdf b/worlds/zephyr_parachute.sdf index 75fc1ddd..32899f18 100755 --- a/worlds/zephyr_parachute.sdf +++ b/worlds/zephyr_parachute.sdf @@ -128,14 +128,6 @@ EARTH_WGS84 - - -35.363262 - 149.165237 - 584 - 0 - EARTH_WGS84 - - true 0 0 10 0 0 0 @@ -150,13 +142,69 @@ -0.5 0.1 -0.9 + + 1 + + + 0 + 5 0 0.1 0 0 0 + + + 10 0.01 0.01 + + + + 1 0 0 0.8 + 1 0 0 0.8 + 1 0 0 0.8 + 0.5 0.5 0.5 0.8 + + + + 0 + 0 5 0.1 0 0 0 + + + 0.01 10 0.01 + + + + 0 1 0 0.8 + 0 1 0 0.8 + 0 1 0 0.8 + 0.5 0.5 0.5 0.8 + + + + 0 + 0 0 5.1 0 0 0 + + + 0.01 0.01 10 + + + + 0 0 1 0.8 + 0 0 1 0.8 + 0 0 1 0.8 + 0.5 0.5 0.5 0.8 + + + + 1 + 1 + + + + model://runway + -29 545 0 0 0 363 - 0 0 0.422 -1.5707963 0 1.5707963 model://zephyr_with_parachute + 0 0 0.422 -90 0 180 parachute_attachment_link @@ -170,4 +218,3 @@ -