Skip to content

Commit

Permalink
mark virtual and override
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jul 7, 2022
1 parent 64cd0ca commit d1bcce0
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
3 changes: 1 addition & 2 deletions include/gz/sensors/AirPressureSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
/// \brief Data pointer for private data
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/AltimeterSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
/// \brief Data pointer for private data
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/ForceTorqueSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
/// \brief Data pointer for private data
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/GpuLidarSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

/// \brief Connect function pointer to internal GpuRays callback
/// \return gz::common::Connection pointer
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/ImuSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
/// \brief Data pointer for private data
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/Lidar.hh
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ namespace gz

/// \brief Check if there are any subscribers for sensor data
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

/// \brief Get the visibility mask
/// \return Visibility mask
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/LogicalCameraSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

/// \brief Get the latest image. An image is an instance of
/// msgs::LogicalCameraImage, which contains a list of detected models.
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/MagnetometerSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
/// \brief Data pointer for private data
Expand Down
3 changes: 1 addition & 2 deletions include/gz/sensors/NavSatSensor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ namespace gz

/// \brief Check if there are any subscribers
/// \return True if there are subscribers, false otherwise
/// \todo(iche033) Make this function virtual on Garden
public: bool HasConnections() const;
public: virtual bool HasConnections() const override;

/// \brief Easy short hand for setting the position of the sensor.
/// \param[in] _latitude Latitude angle.
Expand Down

0 comments on commit d1bcce0

Please sign in to comment.