A tick-tock release cycle allows easy migration to new software versions. Obsolete code is marked as deprecated for one major release. Deprecated code produces compile-time warnings. These warning serve as notification to users that their code should be upgraded. The next major release will remove the deprecated code.
-
The
ignition
namespace is deprecated and will be removed in future versions. Usegz
instead. -
Header files under
ignition/...
are deprecated and will be removed in future versions. Usegz/...
instead. -
The
ignition:type
SDF attribute is deprecated and will be removed. Please usegz:type
instead. -
The shared libraries have
gz
where there used to beignition
. -
Using the un-migrated version is still possible due to tick-tocks, but will be removed in future versions.
-
CameraSensor: the default anti-aliasing value has changed from
2
to4
.
- The project name has been changed to use the
gz-
prefix, you must use thegz
prefix!- This also means that any generated code that use the project name (e.g. CMake variables, in-source macros) would have to be migrated.
- Some non-exhaustive examples of this include:
GZ_<PROJECT>_<VISIBLE/HIDDEN>
- CMake
-config
files - Paths that depend on the project name
- Point Cloud Density flag (is_dense from GpuLidarSensor) is set to false if invalid points (NaN or +/-INF) are found, and true otherwise.
-
Sensors aren't loaded as plugins anymore. Instead, downstream libraries must link to the library of the sensor they're interested in, and instantiate new sensors knowing their type. For example:
auto camera = std::make_unique<gz::sensors::CameraSensor>();
auto camera = sensorFactory.CreateSensor<gz::sensors::CameraSensor>(_sdf);
auto camera = manager.CreateSensor<gz::sensors::CameraSensor>(_sdf);
-
include/sensors/SensorFactory.hh
- Deprecation SensorPlugin
- Replacement None; see above.
- Deprecation SensorTypePlugin
- Replacement None; see above.
- Deprecation std::unique_ptr CreateSensor(sdf::ElementPtr);
- Replacement template std::unique_ptr CreateSensor(sdf::ElementPtr);
- Deprecation std::unique_ptr CreateSensor(const sdf::Sensor &);
- Replacement template std::unique_ptr CreateSensor(const sdf::Sensor &);
- Deprecation void AddPluginPaths(const std::string &)
- Replacement None; see above.
- Deprecation IGN_SENSORS_REGISTER_SENSOR
- Replacement None; see above.
-
include/sensors/Manager.hh
- Deprecation SensorId CreateSensor(sdf::ElementPtr);
- Replacement template<typename SensorType, typename SdfType> SensorType> *CreateSensor(SdfType);
- Deprecation SensorId CreateSensor(const sdf::Sensor &);
- Replacement template<typename SensorType, typename SdfType> SensorType *CreateSensor(SdfType);
- Deprecation void AddPluginPaths(const std::string &)
- Replacement None; see above.
-
include/sensors/Sensor.hh
- Deprecation virtual bool Update(const gz::common::Time &)
- Replacement virtual bool Update(const std::chrono::steady_clock::duration &)
- Deprecation virtual bool Update(const gz::common::Time &, const bool)
- Replacement virtual bool Update(const std::chrono::steady_clock::duration &, const bool)
- Deprecation gz::common::Time NextUpdateTime() const
- Replacement std::chrono::steady_clock::duration NextDataUpdateTime() const
-
include/sensors/Manager.hh
- Deprecation void RunOnce(const gz::common::Time &, bool);
- Replacement void RunOnce(const std::chrono::steady_clock::duration &, bool)
-
include/sensors/Lidar.hh
- Deprecation virtual bool PublishLidarScan(const gz::common::Time &)
- Replacement virtual bool PublishLidarScan(const std::chrono::steady_clock::duration &)
-
The core gz-sensors library no longer depends on gz-rendering. All rendering sensors and noise models are now part of the
rendering
component -
New sensors: thermal camera
-
Depend on ignition-rendering3, ignition-msgs5 and ignition-transport8.
-
ImageGaussiaNoiseModel class is spearated out from GaussianNoiseModel source and header files. Similarly, noise models for rendering sensors need be created using the new ImageNoiseFactory class instead of NoiseFactory by including ImageNoise.hh.
-
Rendering sensors moved to
rendering
component. -
New sensors: altimeter, IMU, magnetometer, RGBD camera
- Depend on ignition-msgs4, ignition-rendering2, ignition-transport7.
-
include/sensors/Noise.hh
- Deprecation virtual void Load(sdf::ElementPtr _sdf)
- Replacement virtual void Load(const sdf::Noise &_sdf)
-
include/sensors/Events.hh
- Deprecation: public: static gz::common::ConnectionPtr ConnectSceneChangeCallback(std::function<void(const gz::rendering::ScenePtr &)>)
- Replacement: RenderingEvents::ConnectSceneChangeCallback
-
include/sensors/Manager.hh
-
Deprecation: public: bool Init(gz::rendering::ScenePtr);
-
Replacement: RenderingSensor::SetScene
-
Deprecation: public: void SetRenderingScene(gz::rendering::ScenePtr
-
Replacement: RenderingSensor::SetScene
-
Deprecation: public: gz::rendering::ScenePtr RenderingScene() const
-
Replacement: RenderingSensor::Scene()
-
-
include/sensors/Noise.hh
- Deprecation: public: virtual void SetCamera(rendering::CameraPtr)
- Replacement: TODO (to be implemented in ImageGaussianNoiseModel)