Skip to content

Commit

Permalink
Fix tiltrotor model (#675)
Browse files Browse the repository at this point in the history
This commit fixes the tiltrotor model to fly better
  • Loading branch information
Jaeyoung-Lim authored Dec 17, 2020
1 parent 0e2d63a commit 563f087
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions models/tiltrotor/tiltrotor.sdf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
<surface>
<contact>
<ode>
<max_vel>10</max_vel>
<min_depth>0.01</min_depth>
<kp>100000</kp>
<kd>1.0</kd>
<max_vel>0.1</max_vel>
<min_depth>0.001</min_depth>
</ode>
</contact>
<!--<friction>
<friction>
<ode/>
</friction>-->
</friction>
</surface>
</collision>
<visual name='base_link_visual'>
Expand Down Expand Up @@ -877,9 +879,6 @@
<child>gps::link</child>
<parent>base_link</parent>
</joint>
<plugin name='groundtruth_plugin' filename='libgazebo_groundtruth_plugin.so'>
<robotNamespace/>
</plugin>
<plugin name="left_wing" filename="libLiftDragPlugin.so">
<a0>0.05984281113</a0>
<cla>4.752798721</cla>
Expand All @@ -898,8 +897,9 @@
<control_joint_name>
left_elevon_joint
</control_joint_name>
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
<control_joint_rad_to_cl>-1.0</control_joint_rad_to_cl>
<robotNamespace></robotNamespace>
<windSubTopic>world_wind</windSubTopic>
</plugin>
<plugin name="right_wing" filename="libLiftDragPlugin.so">
<a0>0.05984281113</a0>
Expand All @@ -919,8 +919,9 @@
<control_joint_name>
right_elevon_joint
</control_joint_name>
<control_joint_rad_to_cl>-0.5</control_joint_rad_to_cl>
<control_joint_rad_to_cl>-1.0</control_joint_rad_to_cl>
<robotNamespace></robotNamespace>
<windSubTopic>world_wind</windSubTopic>
</plugin>
<plugin name="elevator" filename="libLiftDragPlugin.so">
<a0>-0.2</a0>
Expand All @@ -940,8 +941,9 @@
<control_joint_name>
elevator_joint
</control_joint_name>
<control_joint_rad_to_cl>-4.0</control_joint_rad_to_cl>
<control_joint_rad_to_cl>-12.0</control_joint_rad_to_cl>
<robotNamespace></robotNamespace>
<windSubTopic>world_wind</windSubTopic>
</plugin>
<plugin name="rudder" filename="libLiftDragPlugin.so">
<a0>0.0</a0>
Expand All @@ -959,6 +961,7 @@
<upward>0 1 0</upward>
<link_name>base_link</link_name>
<robotNamespace></robotNamespace>
<windSubTopic>world_wind</windSubTopic>
</plugin>
<plugin name='front_right_motor_model' filename='libgazebo_motor_model.so'>
<robotNamespace></robotNamespace>
Expand Down Expand Up @@ -1041,6 +1044,9 @@
<accelerometerBiasCorrelationTime>300.0</accelerometerBiasCorrelationTime>
<accelerometerTurnOnBiasSigma>0.196</accelerometerTurnOnBiasSigma>
</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>
Expand Down Expand Up @@ -1222,4 +1228,4 @@
</plugin>
<static>0</static>
</model>
</sdf>
</sdf>

0 comments on commit 563f087

Please sign in to comment.