You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
668 lines
20 KiB
668 lines
20 KiB
<?xml version="1.0"?>
|
|
<sdf version='1.5'>
|
|
<model name='glider'>
|
|
<pose>0 0 0.246 0 0 0</pose>
|
|
<link name='base_link'>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<inertial>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<mass>1.5</mass>
|
|
<inertia>
|
|
<ixx>0.197563</ixx>
|
|
<ixy>0</ixy>
|
|
<ixz>0</ixz>
|
|
<iyy>0.1458929</iyy>
|
|
<iyz>0</iyz>
|
|
<izz>0.1477</izz>
|
|
</inertia>
|
|
</inertial>
|
|
<collision name='base_link_collision'>
|
|
<pose>0 0 -0.07 0 0 0</pose>
|
|
<geometry>
|
|
<box>
|
|
<size>0.47 0.47 0.11</size>
|
|
</box>
|
|
</geometry>
|
|
<surface>
|
|
<contact>
|
|
<ode>
|
|
<max_vel>10</max_vel>
|
|
<min_depth>0.01</min_depth>
|
|
</ode>
|
|
</contact>
|
|
<!--<friction>
|
|
<ode/>
|
|
</friction>-->
|
|
</surface>
|
|
</collision>
|
|
<visual name='base_link_visual'>
|
|
<pose>0.07 0 -0.08 0 0 0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/body.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/DarkGrey</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
</visual>
|
|
<gravity>1</gravity>
|
|
<velocity_decay/>
|
|
<self_collide>0</self_collide>
|
|
</link>
|
|
<link name='plane/imu_link'>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<inertial>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<mass>0.015</mass>
|
|
<inertia>
|
|
<ixx>1e-05</ixx>
|
|
<ixy>0</ixy>
|
|
<ixz>0</ixz>
|
|
<iyy>1e-05</iyy>
|
|
<iyz>0</iyz>
|
|
<izz>1e-05</izz>
|
|
</inertia>
|
|
</inertial>
|
|
</link>
|
|
<joint name='plane/imu_joint' type='revolute'>
|
|
<child>plane/imu_link</child>
|
|
<parent>base_link</parent>
|
|
<axis>
|
|
<xyz>1 0 0</xyz>
|
|
<limit>
|
|
<lower>0</lower>
|
|
<upper>0</upper>
|
|
<effort>0</effort>
|
|
<velocity>0</velocity>
|
|
</limit>
|
|
<dynamics>
|
|
<spring_reference>0</spring_reference>
|
|
<spring_stiffness>0</spring_stiffness>
|
|
</dynamics>
|
|
<use_parent_model_frame>1</use_parent_model_frame>
|
|
</axis>
|
|
</joint>
|
|
<include>
|
|
<uri>model://airspeed</uri>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<name>airspeed</name>
|
|
</include>
|
|
<joint name='airspeed_joint' type='fixed'>
|
|
<child>airspeed::link</child>
|
|
<parent>base_link</parent>
|
|
</joint>
|
|
<link name="left_elevon">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose>0 0.3 0 0.00 0 0.0</pose>
|
|
</inertial>
|
|
<visual name='left_elevon_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/left_aileron.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
<plugin name="left_elevon_lift_visual" filename="libForceVisual.so">
|
|
<topic_name>lift_force/left_elevon</topic_name>
|
|
<color>Gazebo/Red</color>
|
|
</plugin>
|
|
</visual>
|
|
</link>
|
|
<link name="right_elevon">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose>0 -0.3 0 0.00 0 0.0</pose>
|
|
</inertial>
|
|
<visual name='right_elevon_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/right_aileron.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
<plugin name="right_elevon_lift_visual" filename="libForceVisual.so">
|
|
<topic_name>lift_force/right_elevon</topic_name>
|
|
<color>Gazebo/Green</color>
|
|
</plugin>
|
|
</visual>
|
|
</link>
|
|
<link name="left_flap">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose>0 0.15 0 0.00 0 0.0</pose>
|
|
</inertial>
|
|
<visual name='left_flap_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/left_flap.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
</visual>
|
|
</link>
|
|
<link name="right_flap">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose>0 -0.15 0 0.00 0 0.0</pose>
|
|
</inertial>
|
|
<visual name='right_flap_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/right_flap.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
</visual>
|
|
</link>
|
|
<link name="elevator">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose> -0.5 0 0 0.00 0 0.0</pose>
|
|
</inertial>
|
|
<visual name='elevator_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/elevators.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
</visual>
|
|
</link>
|
|
<link name="rudder">
|
|
<inertial>
|
|
<mass>0.00000001</mass>
|
|
<inertia>
|
|
<ixx>0.000001</ixx>
|
|
<ixy>0.0</ixy>
|
|
<iyy>0.000001</iyy>
|
|
<ixz>0.0</ixz>
|
|
<iyz>0.0</iyz>
|
|
<izz>0.000001</izz>
|
|
</inertia>
|
|
<pose>-0.5 0 0.05 0 0 0 </pose>
|
|
</inertial>
|
|
<visual name='rudder_visual'>
|
|
<pose>0.07 0.0 -0.08 0.00 0 0.0</pose>
|
|
<geometry>
|
|
<mesh>
|
|
<scale>0.1 0.1 0.1</scale>
|
|
<uri>model://plane/meshes/rudder.dae</uri>
|
|
</mesh>
|
|
</geometry>
|
|
<material>
|
|
<script>
|
|
<name>Gazebo/Blue</name>
|
|
<uri>__default__</uri>
|
|
</script>
|
|
</material>
|
|
</visual>
|
|
</link>
|
|
<joint name='left_elevon_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>left_elevon</child>
|
|
<pose>-0.07 0.4 0.08 0.00 0 0.0</pose>
|
|
<axis>
|
|
<xyz>0 1 0</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<joint name='right_elevon_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>right_elevon</child>
|
|
<pose>-0.07 -0.4 0.08 0.00 0 0.0</pose>
|
|
<axis>
|
|
<xyz>0 1 0</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<joint name='left_flap_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>left_flap</child>
|
|
<pose>-0.07 0.2 0.08 0.00 0 0.0</pose>
|
|
<axis>
|
|
<xyz>0 1 0</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<joint name='right_flap_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>right_flap</child>
|
|
<pose>-0.07 -0.2 0.08 0.00 0 0.0</pose>
|
|
<axis>
|
|
<xyz>0 1 0</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<joint name='elevator_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>elevator</child>
|
|
<pose> -0.5 0 0 0 0 0</pose>
|
|
<axis>
|
|
<xyz>0 1 0</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<joint name='rudder_joint' type='revolute'>
|
|
<parent>base_link</parent>
|
|
<child>rudder</child>
|
|
<pose>-0.5 0 0.05 0.00 0 0.0</pose>
|
|
<axis>
|
|
<xyz>0 0 1</xyz>
|
|
<limit>
|
|
<!-- -30/+30 deg. -->
|
|
<lower>-0.53</lower>
|
|
<upper>0.53</upper>
|
|
</limit>
|
|
<dynamics>
|
|
<damping>1.000</damping>
|
|
</dynamics>
|
|
</axis>
|
|
<physics>
|
|
<ode>
|
|
<implicit_spring_damper>1</implicit_spring_damper>
|
|
</ode>
|
|
</physics>
|
|
</joint>
|
|
<include>
|
|
<uri>model://gps</uri>
|
|
<pose>0 0 0 0 0 0</pose>
|
|
<name>gps</name>
|
|
</include>
|
|
<joint name='gps_joint' type='fixed'>
|
|
<child>gps::link</child>
|
|
<parent>base_link</parent>
|
|
</joint>
|
|
<plugin name="left_wing" filename="libLiftDragPlugin.so">
|
|
<a0>0.05984281113</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.05 0.45 0.05</cp>
|
|
<area>0.6</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 0 1</upward>
|
|
<link_name>base_link</link_name>
|
|
<!--<topic_name>lift_force/left_elevon</topic_name> Uncomment to draw the force -->
|
|
<control_joint_name>
|
|
left_elevon_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name="right_wing" filename="libLiftDragPlugin.so">
|
|
<a0>0.05984281113</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.05 -0.45 0.05</cp>
|
|
<area>0.6</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 0 1</upward>
|
|
<link_name>base_link</link_name>
|
|
<!--<topic_name>lift_force/right_elevon</topic_name> Uncomment to draw the force -->
|
|
<control_joint_name>
|
|
right_elevon_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name="left_flap" filename="libLiftDragPlugin.so">
|
|
<a0>0.05984281113</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.05 0.15 0.05</cp>
|
|
<area>0.6</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 0 1</upward>
|
|
<link_name>base_link</link_name>
|
|
<control_joint_name>
|
|
left_flap_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name="right_flap" filename="libLiftDragPlugin.so">
|
|
<a0>0.05984281113</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.05 -0.15 0.05</cp>
|
|
<area>0.6</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 0 1</upward>
|
|
<link_name>base_link</link_name>
|
|
<control_joint_name>
|
|
right_flap_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name="elevator" filename="libLiftDragPlugin.so">
|
|
<a0>-0.2</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.5 0 0</cp>
|
|
<area>0.01</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 0 1</upward>
|
|
<link_name>base_link</link_name>
|
|
<control_joint_name>
|
|
elevator_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>-4.0</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name="rudder" filename="libLiftDragPlugin.so">
|
|
<a0>0.0</a0>
|
|
<cla>4.752798721</cla>
|
|
<cda>0.6417112299</cda>
|
|
<cma>0.0</cma>
|
|
<alpha_stall>0.3391428111</alpha_stall>
|
|
<cla_stall>-3.85</cla_stall>
|
|
<cda_stall>-0.9233984055</cda_stall>
|
|
<cma_stall>0</cma_stall>
|
|
<cp>-0.5 0 0.05</cp>
|
|
<area>0.02</area>
|
|
<air_density>1.2041</air_density>
|
|
<forward>1 0 0</forward>
|
|
<upward>0 1 0</upward>
|
|
<link_name>base_link</link_name>
|
|
<control_joint_name>
|
|
rudder_joint
|
|
</control_joint_name>
|
|
<control_joint_rad_to_cl>4.0</control_joint_rad_to_cl>
|
|
<robotNamespace></robotNamespace>
|
|
<windSubTopic>world_wind</windSubTopic>
|
|
</plugin>
|
|
<plugin name='gazebo_imu_plugin' filename='libgazebo_imu_plugin.so'>
|
|
<robotNamespace></robotNamespace>
|
|
<linkName>plane/imu_link</linkName>
|
|
<imuTopic>/imu</imuTopic>
|
|
</plugin>
|
|
<plugin name='groundtruth_plugin' filename='libgazebo_groundtruth_plugin.so'>
|
|
<robotNamespace/>
|
|
</plugin>
|
|
<plugin name='magnetometer_plugin' filename='libgazebo_magnetometer_plugin.so'>
|
|
<robotNamespace/>
|
|
<pubRate>100</pubRate>
|
|
<noiseDensity>0.0004</noiseDensity>
|
|
<randomWalk>6.4e-06</randomWalk>
|
|
<biasCorrelationTime>600</biasCorrelationTime>
|
|
<magTopic>/mag</magTopic>
|
|
</plugin>
|
|
<plugin name='barometer_plugin' filename='libgazebo_barometer_plugin.so'>
|
|
<robotNamespace/>
|
|
<pubRate>50</pubRate>
|
|
<baroTopic>/baro</baroTopic>
|
|
</plugin>
|
|
<plugin name='mavlink_interface' filename='libgazebo_mavlink_interface.so'>
|
|
<robotNamespace></robotNamespace>
|
|
<imuSubTopic>/imu</imuSubTopic>
|
|
<magSubTopic>/mag</magSubTopic>
|
|
<baroSubTopic>/baro</baroSubTopic>
|
|
<mavlink_addr>INADDR_ANY</mavlink_addr>
|
|
<mavlink_tcp_port>4560</mavlink_tcp_port>
|
|
<mavlink_udp_port>14560</mavlink_udp_port>
|
|
<serialEnabled>0</serialEnabled>
|
|
<serialDevice>/dev/ttyACM0</serialDevice>
|
|
<baudRate>921600</baudRate>
|
|
<qgc_addr>INADDR_ANY</qgc_addr>
|
|
<qgc_udp_port>14550</qgc_udp_port>
|
|
<sdk_addr>INADDR_ANY</sdk_addr>
|
|
<sdk_udp_port>14540</sdk_udp_port>
|
|
<hil_mode>0</hil_mode>
|
|
<hil_state_level>false</hil_state_level>
|
|
<enable_lockstep>true</enable_lockstep>
|
|
<use_tcp>true</use_tcp>
|
|
<motorSpeedCommandPubTopic>/gazebo/command/motor_speed</motorSpeedCommandPubTopic>
|
|
<control_channels>
|
|
<channel name="rudder">
|
|
<input_index>2</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>rudder_joint</joint_name>
|
|
</channel>
|
|
<channel name="rotor4">
|
|
<input_index>4</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>3500</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>velocity</joint_control_type>
|
|
<joint_name>rotor_puller_joint</joint_name>
|
|
</channel>
|
|
<channel name="left_elevon">
|
|
<input_index>5</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>left_elevon_joint</joint_name>
|
|
</channel>
|
|
<channel name="right_elevon">
|
|
<input_index>6</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>right_elevon_joint</joint_name>
|
|
</channel>
|
|
<channel name="elevator">
|
|
<input_index>7</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>elevator_joint</joint_name>
|
|
</channel>
|
|
<channel name="left_flap">
|
|
<input_index>3</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>-1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>left_flap_joint</joint_name>
|
|
</channel>
|
|
<channel name="right_flap">
|
|
<input_index>8</input_index>
|
|
<input_offset>0</input_offset>
|
|
<input_scaling>-1</input_scaling>
|
|
<zero_position_disarmed>0</zero_position_disarmed>
|
|
<zero_position_armed>0</zero_position_armed>
|
|
<joint_control_type>position_kinematic</joint_control_type>
|
|
<joint_name>right_flap_joint</joint_name>
|
|
</channel>
|
|
</control_channels>
|
|
</plugin>
|
|
<static>0</static>
|
|
<!--fixedwing catapult-->
|
|
<plugin name='catapult_plugin' filename='libgazebo_catapult_plugin.so'>
|
|
<robotNamespace/>
|
|
<link_name>base_link</link_name>
|
|
<commandSubTopic>/gazebo/command/motor_speed</commandSubTopic>
|
|
<motorNumber>4</motorNumber>
|
|
<force>30.0</force>
|
|
<duration>5.0</duration>
|
|
</plugin>
|
|
</model>
|
|
</sdf>
|
|
|