Sensors
Sensors are parts fitted into slots. The concepts live in Slots and assembly, the vehicle’s slots and their accepted types in the configuration page, and new sensors can be added following the Add a sensor part walkthrough. The grippers live with the actuators.
The sensors have no visual: the cameras, sonars and DVL work from their part frames, and the parts will gain glTF visuals when they are commissioned.
Available sensors
Sensor |
Part |
Slot |
Fitted in the shipped config |
|---|---|---|---|
IMU, compass, Bar30 depth sensor |
the vehicle itself |
always |
|
exploreHD camera |
|
|
yes |
MarineSitu C3 stereo camera |
|
|
no |
Ping360 scanning sonar |
|
|
no |
A50 DVL |
|
|
no |
Sonoptix ECHO imaging sonar |
|
free placed |
no ( |
Sensors ROS API
On board
The vehicle always carries these, as the real one does; they are not parts. Each has noise.
ROS Topic |
Description |
Message type |
|---|---|---|
|
The Navigator’s IMU, 100 Hz, in |
|
|
The Navigator’s compass, 50 Hz, in tesla where the world’s magnetometer system sets |
|
|
The Bar30: absolute water pressure, 20 Hz, 0.2 mbar of noise, in |
The world needs gz-sim-imu-system, gz-sim-magnetometer-system and, for
the Bar30, gz-maritime’s gz-maritime-water-pressure-system; without the
last the pressure topic stays silent. The water, pool and playground worlds
here run the first two. The SITL world runs the IMU system alone, so the
compass topic is silent there.
The IMU’s orientation is against the world’s east, north and up: a vehicle facing north reads a yaw of 90 degrees wherever it was spawned.
Camera
ROS Topic |
Description |
Message type |
|---|---|---|
|
Camera image |
|
|
Camera intrinsics |
Stereo camera
ROS Topic |
Description |
Message type |
|---|---|---|
|
RGB image |
|
|
Depth image |
|
|
Point cloud |
|
|
Camera intrinsics |
Scanning sonar
ROS Topic |
Description |
Message type |
|---|---|---|
|
Horizontal range scan (modeled as a planar gpu_lidar; no acoustics) |
DVL
The DVL needs gz-sim-dvl-system in the world. The worlds of this repository do not load it, because it slows the simulation down as soon as a camera or a sonar runs, whether a DVL is fitted or not. Add it to the world you run a DVL in:
<plugin filename="gz-sim-dvl-system"
name="gz::sim::systems::DopplerVelocityLogSystem"/>
ROS Topic |
Description |
Message type |
|---|---|---|
|
Bottom track velocity |
Sonars
The sonar parts (sonoptix_echo_multibeam, omniscan_450_sidescan, surveyor_multibeam) fit either vehicle. gz-maritime’s gz_sonar simulates them, which needs gz-maritime-sonar-system in the world, and kai_sonar_bridge, started by the launch, brings them to ROS 2. bluerov2_sonar.yaml fits a forward imaging sonar (sonar_forward), pitched down 15°; the topic follows that name.
ROS Topic |
Description |
Message type |
|---|---|---|
|
Imaging sonar (Sonoptix ECHO): one fan per ping, stamped in |
|
|
The same fan drawn as an image, for looking at |
Images are stamped in a part’s _acoustic frame, whose Z axis is the beam’s look direction, as ProjectedSonarImage expects; the conventions are in the sonar design, and a part’s sonar: entry sets its parameters (Add a sonar).
<name> is the instance name, bluerov2 for the default instance, or
whatever the vehicle was spawned as (Several vehicles).
A part topic follows the part’s own name (camera above), so a part
renamed or removed in the config moves or drops its topics
(Configuration). Sensor messages other than the sonars’ carry the part’s own
link as frame_id, under the instance name (<name>/camera), which is
how TF carries it; cameras deliberately use the body frame (x forward),
not a REP 145 optical frame.
Sonar settings
A sonar part’s entry in the vehicle config takes a sonar: dict that sets the sensor’s parameters:
- {type: sonoptix_echo_multibeam, name: sonar_forward, xyz: "0.25 0 0.12", rpy: "0 0.2618 0",
sonar: {rate: 5, range_max: 15, samples: 768, labels: true}}
rateis the pings per second (10 if unset); lowering it is the first thing to try when the simulation runs slower than real time.Every other key is one of gz_sonar’s
<gz:sonar>parameters, such asrange_min,range_max,samples,beams,gain,noise_floor,speckleandlabels; the sonar design lists them all with their defaults. On the sidescan the dict applies to both sides.A key that is not a sonar parameter is refused when the model is generated, at build or launch, with the nearest known key as a hint (
range_mx: “did you mean ‘range_max’?”).Values are checked when the world loads: a value the sonar cannot use (
samples: 76.5,labels: maybe) refuses that one sensor, with an error in the Gazebo server’s log, and the sonar’s topics never appear.