Skip to content

Commit

Permalink
Add support for sonar sensors
Browse files Browse the repository at this point in the history
Add support for up to six sonar sensors
- Rename LoadRangeSensors to LoadSonarSensors
- Subscribe to topics specified in plugin XML
- Write JSON range elements if sonar data present

Add further checks when applying forces
- Add a check that the velocity or position component data arrays are not empty before accessing.

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Apr 14, 2022
1 parent aaffdc0 commit 9d08f68
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 100 deletions.
2 changes: 1 addition & 1 deletion include/ArduPilotPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ namespace systems
ignition::gazebo::EntityComponentManager &_ecm);

/// \brief Load Range sensors
private: void LoadRangeSensors(
private: void LoadSonarSensors(
sdf::ElementPtr _sdf,
ignition::gazebo::EntityComponentManager &_ecm);

Expand Down
Loading

0 comments on commit 9d08f68

Please sign in to comment.