diff --git a/config/gazebo-iris-gimbal.parm b/config/gazebo-iris-gimbal.parm index 3cf5d186..f8154e85 100644 --- a/config/gazebo-iris-gimbal.parm +++ b/config/gazebo-iris-gimbal.parm @@ -2,29 +2,35 @@ 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 on mount 1 has 2 DOF -MNT1_PITCH_MAX 90 -MNT1_PITCH_MIN -90 -MNT1_ROLL_MAX 90 -MNT1_ROLL_MIN -90 -MNT1_TYPE 1 +# Gimbal RC in +RC6_MAX 1900 +RC6_MIN 1100 +RC6_OPTION 212 # Mount1 Roll +RC7_MAX 1900 +RC7_MIN 1100 +RC7_OPTION 213 # Mount1 Pitch +RC8_MAX 1900 +RC8_MIN 1100 +RC8_OPTION 214 # Mount1 Yaw +RC8_REVERSED 0 # Normal +RC9_MAX 1900 +RC9_MIN 1100 +RC9_OPTION 0 # Do Nothing -# Gimbal roll and pitch RC -RC9_OPTION 212 -RC10_OPTION 213 - -# Gimbal roll and pitch servos -SERVO5_FUNCTION 8 -SERVO6_FUNCTION 7 +# Gimbal servo out +SERVO9_FUNCTION 8 # Mount1Roll +SERVO10_FUNCTION 7 # Mount1Pitch +SERVO11_FUNCTION 6 # Mount1Yaw \ No newline at end of file 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 cddceb05..cf2af733 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..22a866ae 100644 --- a/models/gimbal_small_3d/model.sdf +++ b/models/gimbal_small_3d/model.sdf @@ -74,11 +74,11 @@ 0 1 0 - 0.5 + 0.01 - -1.57079632 - 1.57079632 + -3.1415926 + 3.1415926 0.0105 0.065 -0.002 0 0 0 @@ -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 @@ -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 94311401..70935b39 100755 --- a/models/iris_with_gimbal/model.sdf +++ b/models/iris_with_gimbal/model.sdf @@ -6,7 +6,7 @@ - model://gimbal_small_2d + model://gimbal_small_3d gimbal 0 -0.01 -0.124923 90 0 90 @@ -280,26 +280,40 @@ 1 - + + gimbal::roll_joint - 3.14159265 + 1.047197551196 -0.5 1100 1900 COMMAND /gimbal/cmd_roll - 3 + 2 - - gimbal::tilt_joint - 3.14159265 + + + gimbal::pitch_joint + -3.14159265 + -0.75 + 1100 + 1900 + COMMAND + /gimbal/cmd_pitch + 2 + + + + + gimbal::yaw_joint + -5.5850536 -0.5 1100 1900 COMMAND - /gimbal/cmd_tilt - 3 + /gimbal/cmd_yaw + 2 @@ -314,8 +328,15 @@ - gimbal::tilt_joint - /gimbal/cmd_tilt + gimbal::pitch_joint + /gimbal/cmd_pitch + 2 + + + gimbal::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