-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simulating lidar in foggy environment (#725)
- Loading branch information
Showing
6 changed files
with
138 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.5"> | ||
<model name="foggy_lidar"> | ||
<link name="link"> | ||
|
||
<inertial> | ||
<pose>0 0 0 0 0 0</pose> | ||
<mass>0.19</mass> | ||
<inertia> | ||
<ixx>4.15e-6</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>2.407e-6</iyy> | ||
<iyz>0</iyz> | ||
<izz>2.407e-6</izz> | ||
</inertia> | ||
</inertial> | ||
|
||
<visual name="visual"> | ||
<geometry> | ||
<box> | ||
<size>0.02 0.05 0.05</size> | ||
</box> | ||
</geometry> | ||
</visual> | ||
|
||
<sensor name="laser" type="ray"> | ||
<pose>0 0 0 0 1.51 0</pose> | ||
<always_on>1</always_on> | ||
<update_rate>5.5</update_rate> | ||
<visualize>true</visualize> | ||
<ray> | ||
<scan> | ||
<horizontal> | ||
<samples>360</samples> | ||
<resolution>1</resolution> | ||
<min_angle>-3.14</min_angle> | ||
<max_angle>3.14</max_angle> | ||
</horizontal> | ||
</scan> | ||
<range> | ||
<min>0.06</min> | ||
<max>120</max> | ||
<resolution>0.05</resolution> | ||
</range> | ||
<noise> | ||
<type>gaussian</type> | ||
<mean>0.0</mean> | ||
<stddev>1.0</stddev> | ||
</noise> | ||
</ray> | ||
<plugin name="LaserPlugin" | ||
filename="libgazebo_lidar_plugin.so"> | ||
<robotNamespace></robotNamespace> | ||
<min_distance>0.1</min_distance> | ||
<max_distance>100.0</max_distance> | ||
<simulate_fog>true</simulate_fog> | ||
</plugin> | ||
</sensor> | ||
</link> | ||
</model> | ||
</sdf> | ||
|
||
<!-- vim: set et fenc= ff=unix sts=0 sw=2 ts=2 : --> |
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,18 @@ | ||
<?xml version="1.0"?> | ||
|
||
<model> | ||
<name>foggy_lidar</name> | ||
<version>1.0</version> | ||
<sdf>foggy_lidar.sdf</sdf> | ||
|
||
<author> | ||
<name>David Jablonski</name> | ||
<email>[email protected]</email> | ||
</author> | ||
|
||
<description> | ||
This lidar simulates a foggy environment with an average distance measurement of 2m and a standard deviation of 1. | ||
</description> | ||
</model> | ||
|
||
<!-- vim: set noet fenc= ff=unix sts=0 sw=2 ts=2 : --> |
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,29 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version='1.5'> | ||
<model name='iris_foggy_lidar'> | ||
|
||
<include> | ||
<uri>model://iris</uri> | ||
</include> | ||
|
||
<include> | ||
<uri>model://foggy_lidar</uri> | ||
<pose>0 0 0.1 0 1.571 0</pose> | ||
</include> | ||
<joint name="foggy_lidar_joint" type="revolute"> | ||
<parent>iris::base_link</parent> | ||
<child>foggy_lidar::link</child> | ||
<pose>0 0 0.1 0 1.571 0</pose> | ||
<axis> | ||
<xyz>0 0 1</xyz> | ||
<limit> | ||
<upper>0</upper> | ||
<lower>0</lower> | ||
</limit> | ||
</axis> | ||
</joint> | ||
|
||
</model> | ||
</sdf> | ||
<!-- vim: set noet fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : --> | ||
|
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,15 @@ | ||
<?xml version="1.0"?> | ||
<model> | ||
<name>3DR Iris with a foggy lidar measurement</name> | ||
<version>1.0</version> | ||
<sdf>iris_foggy_lidar.sdf</sdf> | ||
|
||
<author> | ||
<name>David Jablonski</name> | ||
<email>[email protected]</email> | ||
</author> | ||
|
||
<description> | ||
This is a model of the 3DR Iris Quadrotor with a foggy lidar measurement. | ||
</description> | ||
</model> |
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