BluEye-Robotics / blueye.sdk

A Python package for remote control of Blueye underwater drones.
GNU Lesser General Public License v3.0
17 stars 4 forks source link

Add option to connect the Drone as an observer #167

Closed follesoe closed 1 month ago

follesoe commented 1 month ago

The ClientInfo message passed in the ConnectClientReq has a field called is_observer that can be set to true to indicate to the drone that the client does not want to get promoted to be client_id_in_control.

We should expose this as an attribute on the Drone object, similar to how we can specify disconnect_other_clients.

For backward compatibility, the default value of is_observer should be false. For instance, we need this field for the Foxglove Bridge, to prevent it from "occupying" the drone if all we want is to forward telemetry messages.