Expand description
Sonar/ultrasonic perception pipeline — beam forming, echo detection, spatial mapping.
Structs§
- Echo
- A detected echo with timing and amplitude.
- Pulse
Config - Sonar pulse parameters.
- Spatial
Point - A point in a sonar spatial map.
Constants§
- SPEED_
OF_ SOUND - Speed of sound in air (m/s).
Functions§
- beamform
- Simple delay-and-sum beamforming.
- build_
spatial_ map - Build a spatial map from multiple sonar sweeps at different angles.
- compute_
snr - Compute signal-to-noise ratio of a signal.
- detect_
echoes - Detect echoes in a return signal using threshold-based peak detection.
- echo_
to_ spatial - Convert an echo to a spatial point given sensor angle (radians from forward).
- generate_
pulse - Generate a sonar pulse signal.
- matched_
filter - Simple matched filter (cross-correlation with template).