Skip to content

Add list of supported sensors with API and SDF links to README#511

Merged
iche033 merged 7 commits intogazebosim:gz-sensors9from
ganatrask:update-readme-sensors-list
Apr 4, 2025
Merged

Add list of supported sensors with API and SDF links to README#511
iche033 merged 7 commits intogazebosim:gz-sensors9from
ganatrask:update-readme-sensors-list

Conversation

@ganatrask
Copy link
Contributor

@ganatrask ganatrask commented Apr 1, 2025

🎉 New feature

Closes #103

Summary

This PR adds a new section to the README.md that lists all supported sensors in the gz-sensors library.
The list includes:

  • Sensor name
  • API documentation link
  • SDF specification link
  • Example integration test file
  • Notes for each sensor

This improves discoverability for new users visiting the repository or the Gazebo Sim sensor docs page.

Test it

You can view the updated README.md and verify the new "Supported Sensors" section is rendered properly in Markdown preview mode.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (README.md)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • [] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

It's looking good. I made some comments inline. Here are a few more comments:

  • For the SDF spec column, I see that it's pointing to the respective SDF element in the spec page. Can you change each row's text to the actual SDF element string? e.g. SDF Air Pressure -> <air_pressure> ?
  • Can you remove the Example column for now? They are pointing to test source code, which may not be the best examples for users to look at.
  • Add Segmentation camera sensor to the table

README.md Outdated
| **Air Pressure Sensor** | [AirPressureSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirPressureSensor.html) | [SDF Air Pressure](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_air_pressure) | [air_pressure.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/air_pressure.cc) | Measures atmospheric pressure |
| **Air Speed Sensor** | [AirSpeedSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirSpeedSensor.html) | [SDF Air Speed](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_air_speed) | [air_speed.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/air_speed.cc) | Measures the speed of air relative to the sensor |
| **Altimeter** | [AltimeterSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AltimeterSensor.html) | [SDF Altimeter](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_altimeter) | [altimeter.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/altimeter.cc) | Measures altitude above a reference point |
| **Bounding Box Camera** | [BoundingBoxCameraSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1BoundingBoxCameraSensor.html) | [SDF Bounding Box Camera](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_boundingbox_camera) | [boundingbox_camera.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/boundingbox_camera.cc) | Captures images with bounding box annotations |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the SDF Spec column, I noticed that not all links are not valid, e.g. http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_boundingbox_camera. That's because there may not be a dedicated SDF element for that sensor.

For boundingbox camera, segmentation camera, thermal camera, and wide angle camera types, you can point to <camera>: http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_camera

README.md Outdated
| **Sensor Name** | **API Link** | **SDF Spec** | **Example** | **Notes** |
|---------------------------|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|
| **Air Pressure Sensor** | [AirPressureSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirPressureSensor.html) | [SDF Air Pressure](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_air_pressure) | [air_pressure.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/air_pressure.cc) | Measures atmospheric pressure |
| **Air Speed Sensor** | [AirSpeedSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirSpeedSensor.html) | [SDF Air Speed](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_air_speed) | [air_speed.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/air_speed.cc) | Measures the speed of air relative to the sensor |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

air speed sensor is not available in sdf spec 1.9. Can you update all the SDF links to point to the latest 1.12 spec?

README.md Outdated
| **Depth Camera** | [DepthCameraSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1DepthCameraSensor.html) | [SDF Depth Camera](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_depth_camera) | [depth_camera.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/depth_camera.cc) | Captures depth information |
| **Doppler Velocity Log** | [DopplerVelocityLog](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1DopplerVelocityLog.html) | [SDF DVL](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_dvl) | [dvl.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/dvl.cc) | Measures velocity relative to a water body |
| **Force-Torque** | [ForceTorqueSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1ForceTorqueSensor.html) | [SDF Force-Torque](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_force_torque) | [force_torque.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/force_torque.cc) | Measures forces and torques on a joint |
| **GPU Lidar** | [GpuLidarSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1GpuLidarSensor.html) | [SDF GPU Lidar](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_gpu_lidar) | [gpu_lidar_sensor.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/gpu_lidar_sensor.cc) | Simulates a 3D laser scanner using GPU acceleration|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update link:

Suggested change
| **GPU Lidar** | [GpuLidarSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1GpuLidarSensor.html) | [SDF GPU Lidar](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_gpu_lidar) | [gpu_lidar_sensor.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/gpu_lidar_sensor.cc) | Simulates a 3D laser scanner using GPU acceleration|
| **GPU Lidar** | [GpuLidarSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1GpuLidarSensor.html) | [SDF GPU Lidar](http://sdformat.org/spec?ver=1.9&elem=sensor#sensor_lidar) | [gpu_lidar_sensor.cc](https://github.com/gazebosim/gz-sensors/blob/main/test/integration/gpu_lidar_sensor.cc) | Simulates a 3D laser scanner using GPU acceleration|

ganatrask and others added 4 commits April 3, 2025 10:20
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Shyam Ganatra  <shyam2010ganatra@gmail.com>
Co-authored-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Shyam Ganatra  <shyam2010ganatra@gmail.com>
updated SDF links for Air Speed Sensor, Doppler Velocity Log, RGBD Camera

Signed-off-by: Shyam Ganatra  <shyam2010ganatra@gmail.com>
@ganatrask
Copy link
Contributor Author

Thank you, @iche033 , for all the suggestions. I have made edits and updated the README. However, I was unable to find the SDF element links for the Air Speed Sensor, Doppler Velocity Log, and RGBD Camera. For now, I've marked them as "Not in SDF 1.12." Please let me know if any changes are needed.

Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a couple minor comments, otherwise looks good!

README.md Outdated
| **Logical Camera** | [LogicalCameraSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1LogicalCameraSensor.html) | [`<logical_camera>`](http://sdformat.org/spec?ver=1.12&elem=sensor#sensor_logical_camera) | Detects models within a specified volume |
| **Magnetometer** | [MagnetometerSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1MagnetometerSensor.html) | [`<magnetometer>`](http://sdformat.org/spec?ver=1.12&elem=sensor#sensor_magnetometer) | Measures magnetic field strength and direction |
| **NavSat (GPS)** | [NavSatSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1NavSatSensor.html) | [`<navsat>`](http://sdformat.org/spec?ver=1.12&elem=sensor#sensor_navsat) | Simulates GPS-like positioning sensor |
| **RGBD Camera** | [RGBDCameraSensor](https://gazebosim.org/api/sensors/7/classgz_1_1sensors_1_1RgbdCameraSensor.html) | (Not in SDF 1.12) | Captures RGB + Depth streams |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for RGBD camera, can you also link to <camera>?

README.md Outdated
| **Sensor Name** | **API Link** | **SDF Element** | **Notes** |
|---------------------------|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|----------------------------------------------------|
| **Air Pressure Sensor** | [AirPressureSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirPressureSensor.html) | [`<air_pressure>`](http://sdformat.org/spec?ver=1.12&elem=sensor#sensor_air_pressure) | Measures atmospheric pressure |
| **Air Speed Sensor** | [AirSpeedSensor](https://gazebosim.org/api/sensors/9/classgz_1_1sensors_1_1AirSpeedSensor.html) | *(Not in SDF 1.12)* | Measures the speed of air relative to the sensor |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put N/A instead of (Not in SDF 1.12) for this entry and also DVL?

Signed-off-by: Shyam Ganatra  <shyam2010ganatra@gmail.com>
@ganatrask
Copy link
Contributor Author

Ok, I just made an update.

Signed-off-by: Ian Chen <ichen@openrobotics.org>
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Apr 4, 2025
@iche033 iche033 enabled auto-merge (squash) April 4, 2025 02:57
@iche033
Copy link
Contributor

iche033 commented Apr 4, 2025

thanks for the contribution!

@iche033 iche033 merged commit a0b8c40 into gazebosim:gz-sensors9 Apr 4, 2025
10 of 11 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Apr 4, 2025
@kscottz
Copy link

kscottz commented Apr 4, 2025

@ganatrask Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

List all available sensors on the README

3 participants