-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multiple airspeed sensors in SITL with multi HIL_SENSOR instances (#731)
* Add sensor interface Abstracts sensor interface for the mavlink class Add sensor msg mutex * Enable multiple instances of HIL messages This commit enables having multiple instances of HILdata instances in order to support multi-sensor setups for sensors that are included in the HIL_SENSOR mavlink message * Register new HIL sensor instance if id has never been seen This commit enables registering new sensor istances if the ids have never been seen before. This enables using non-sequential instance IDs * Convert airspeed plugin into a sensor plugin This commit sets the airspeed plugin into a sensor plugin. This allows the gazebo_mavlink_interface to automatically subscribes to the sensor topics
- Loading branch information
1 parent
1f339cd
commit 3e5fed0
Showing
15 changed files
with
453 additions
and
349 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,42 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.6"> | ||
<model name="airspeed"> | ||
<link name="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> | ||
<visual name="visual"> | ||
<geometry> | ||
<cylinder> | ||
<radius>0.01</radius> | ||
<length>0.1</length> | ||
</cylinder> | ||
</geometry> | ||
<material> | ||
<script> | ||
<name>Gazebo/Black</name> | ||
</script> | ||
</material> | ||
</visual> | ||
<sensor name="airspeed" type="gps"> | ||
<pose>0 0 0 0 0 0</pose> | ||
<update_rate>5.0</update_rate> | ||
<always_on>true</always_on> | ||
<visualize>false</visualize> | ||
<plugin name='airspeed_plugin' filename='libgazebo_airspeed_plugin.so'> | ||
<robotNamespace/> | ||
</plugin> | ||
</sensor> | ||
</link> | ||
</model> | ||
</sdf> |
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>GPS</name> | ||
<version>1.0</version> | ||
<sdf version='1.6'>airspeed.sdf</sdf> | ||
|
||
<author> | ||
<name>Jaeyoung Lim</name> | ||
<email>[email protected]</email> | ||
</author> | ||
|
||
<description> | ||
Airspeed sensor model | ||
</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
Oops, something went wrong.