-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thrust coefficient test and behavior updates
Signed-off-by: Marco A. Gutierrez <[email protected]>
- Loading branch information
Marco A. Gutierrez
committed
Sep 7, 2022
1 parent
79abb52
commit 7351aab
Showing
4 changed files
with
192 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.6"> | ||
<world name="thruster"> | ||
|
||
<physics name="fast" type="none"> | ||
<!-- Zero to run as fast as possible --> | ||
<real_time_factor>0</real_time_factor> | ||
</physics> | ||
|
||
<!-- prevent sinking --> | ||
<gravity>0 0 0</gravity> | ||
|
||
<plugin | ||
filename="ignition-gazebo-physics-system" | ||
name="ignition::gazebo::systems::Physics"> | ||
</plugin> | ||
<plugin | ||
filename="ignition-gazebo-scene-broadcaster-system" | ||
name="ignition::gazebo::systems::SceneBroadcaster"> | ||
</plugin> | ||
|
||
<light type="directional" name="sun"> | ||
<cast_shadows>true</cast_shadows> | ||
<pose>0 0 10 0 0 0</pose> | ||
<diffuse>1 1 1 1</diffuse> | ||
<specular>0.5 0.5 0.5 1</specular> | ||
<attenuation> | ||
<range>1000</range> | ||
<constant>0.9</constant> | ||
<linear>0.01</linear> | ||
<quadratic>0.001</quadratic> | ||
</attenuation> | ||
<direction>-0.5 0.1 -0.9</direction> | ||
</light> | ||
|
||
<model name="sub"> | ||
|
||
<link name="body"> | ||
<pose>0 0 0 0 1.57 0</pose> | ||
<inertial> | ||
<mass>100</mass> | ||
<inertia> | ||
<ixx>33.89</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>33.89</iyy> | ||
<iyz>0</iyz> | ||
<izz>1.125</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name="visual"> | ||
<geometry> | ||
<cylinder> | ||
<length>2</length> | ||
<radius>0.15</radius> | ||
</cylinder> | ||
</geometry> | ||
</visual> | ||
</link> | ||
|
||
<link name="propeller"> | ||
<pose>-1.05 0 0 0 0 0</pose> | ||
<inertial> | ||
<mass>0.1</mass> | ||
<inertia> | ||
<ixx>0.000354167</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.000021667</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.000334167</izz> | ||
</inertia> | ||
</inertial> | ||
<visual name="visual"> | ||
<geometry> | ||
<box> | ||
<size>0.01 0.25 0.05</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
</link> | ||
|
||
<joint name="propeller_joint" type="revolute"> | ||
<parent>body</parent> | ||
<child>propeller</child> | ||
<axis> | ||
<xyz>1 0 0</xyz> | ||
<limit> | ||
<lower>-1e+12</lower> | ||
<upper>1e+12</upper> | ||
<effort>1e6</effort> | ||
<velocity>1e6</velocity> | ||
</limit> | ||
</axis> | ||
</joint> | ||
|
||
<plugin | ||
filename="ignition-gazebo-thruster-system" | ||
name="ignition::gazebo::systems::Thruster"> | ||
<namespace>custom</namespace> | ||
<joint_name>propeller_joint</joint_name> | ||
<fluid_density>950</fluid_density> | ||
<propeller_diameter>0.25</propeller_diameter> | ||
<velocity_control>true</velocity_control> | ||
<max_thrust_cmd>300</max_thrust_cmd> | ||
<min_thrust_cmd>0</min_thrust_cmd> | ||
<wake_fraction>0.2</wake_fraction> | ||
<alpha_1>0.9</alpha_1> | ||
<alpha_2>0.01</alpha_2> | ||
</plugin> | ||
</model> | ||
|
||
</world> | ||
</sdf> |