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.
Submesh::MaterialIndex
is deprecated.SubMesh::GetMaterialIndex
should be used instead, which properly handles submeshes having no material index applied to them.- 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 logging macros (
ignmsg
,ignwarn
,ignerr
, etc.) and logging function macros (ignLogInit()
, etc.) are deprecated and will be removed in future versions. Usegz
instead (e.g.gzmsg
,gzwarn
,gzLogInit()
) - All the plugin APIs are deprecated, use the gz-plugin library instead. See the migration guide.
- The following
IGN_
prefixed environment variables are deprecated and will be removed. Please use theGZ_
prefixed versions instead!IGN_VIDEO_ALLOWED_ENCODERS
->GZ_VIDEO_ALLOWED_ENCODERS
IGN_VIDEO_ENCODER_DEVICE
->GZ_VIDEO_ENCODER_DEVICE
IGN_VIDEO_USE_HW_SURFACE
->GZ_VIDEO_USE_HW_SURFACE
IGN_FILE_PATH
->GZ_FILE_PATH
IGN_LOG_PATH
->GZ_LOG_PATH
IGN_PLUGIN_PATH
->GZ_PLUGIN_PATH
- The following
IGN_
/IGNITION_
prefixed macros are deprecated and will be removed in future versions. Additionally, they will only be available when including the correspondingignition/...
header. Use theGZ_
prefix instead.IGN_ENUM
IGN_HOMEDIR
IGN_NANO_TO_SEC
,IGN_SEC_TO_NANO
,IGN_MS_TO_NANO
,IGN_US_TO_NANO
IGN_SPEED_OF_LIGHT
IGN_SLEEP_S
,IGN_SLEEP_US
,IGN_SLEEP_MS
,IGN_SLEEP_NS
IGN_SYSTEM_TIME
,IGN_SYSTEM_TIME_S
,IGN_SYSTEM_TIME_US
,IGN_SYSTEM_TIME_MS
,IGN_SYSTEM_TIME_NS
IGN_ASSERT
IGNITION_COMMON_TINYOBJLOADER_IMPLEMENTATION
(src
local, hard-tocked)IGN_PROFILER_ENABLE
,IGN_PROFILE_THREAD_NAME
,IGN_PROFILE_LOG_TEXT
,IGN_PROFILE_BEGIN
,IGN_PROFILE_END
,IGN_PROFILE_L
,IGN_PROFILE
,IGN_PROFILE_VALID
IGN_CREATE_SPEC_INTERFACE
IGN_DUMMY_PLUGIN_PATH
IGNITION_UNITTEST_SPECIALIZED_PLUGIN_ACCESS
- The
Image::Data(unsigned char**, unsigned int&)
functions that accept a pointer and a size and internally allocate memory are deprecated and will be removed in future versions. Use the newData
functions that return astd::vector<unsigned char>
to have automatic memory management.
- 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
- geospatial component that loads heightmap images and DEMs
- Depends on the gz-common's
graphics
component and thegdal
library
- Depends on the gz-common's
-
HeightmapData.hh
andImageHeightmap.hh
have been moved out of thegraphics
component and into the newgeospatial
component- To use the heightmap features, users must add the
geospatial
component to thefind_package
call and update the include paths to use the geospatial subfolder (#include <ignition/common/geospatial/HeightmapData.hh>
)
- To use the heightmap features, users must add the
-
HeightmapData::FillHeightmap
method is nowconst
. -
Image::AvgColor
,Image::Data
andImage::RGBData
methods are nowconst
.
-
Corrected
BAYER_RGGR8
toBAYER_BGGR8
inPixelFormatName
andPixelFormatType
located ingraphics/include/gz/common/Image.hh
. -
URI parsing has updated to follow the specification more closely when
URI::Authority
is set. Changes include:- An empty URI Path is valid.
- Double forward slashes,
//
, are valid in a URI Path. - A URI Query does not require a
key=value
format. For example a valid query can be "?aquery", "?aquery?", and??
. - A URI authority is optional. If present, then a URI authority begins with two forward slashes and immediately follows the URI scheme. A host must be present if an authority is present and the scheme != 'file'.
-
Event.hh
- Added second template argument to
EventT
to disambiguate events with matching signatures.
- Added second template argument to
-
profiler component that helps measure software performance.
-
SystemPaths.hh
- Search paths specified in
GZ_FILE_PATH
environment variable when finding files.
- Search paths specified in
-
Util.hh
- Added
constexpr uint64_t hash64(std::string_view)
to generate a hash at compile time if possible.
- Added
-
Depends on gz-cmake2
- gz-common now depends on gz-cmake2.
-
Requires c++17.
-
(New in 3.8.0) On Windows, the value of C++ macro
GZ_HOMEDIR
changed fromHOMEPATH
toUSERPROFILE
. It is usually used to read the path to the user's home from environment. The old value pointed to a path relative to the (a) current drive letter as reported bypwd
, not the system drive letter. The new value correctly points to an environment variable that contains the full absolute path to the user's profile. If the code did not use the macro in some unexpected way, the new behavior should work either the same or even better (it would work even when the current directory is on a non-system drive). If the code relied on this value to be relative to the current drive letter, it needs to be changed to useHOMEPATH
directly.
-
Depends on gz-cmake1
- gz-common now depends on gz-cmake1, which provides support for Component libraries.
-
Component libraries
- Some classes have been moved from the main gz-common library
to component libraries. To use these features, you must
list them in the
find_package
call and link against them.- av: audio and video playback and encoding
- events: registering and handling event callbacks
- graphics: animation, images, and triangle meshes
- Some classes have been moved from the main gz-common library
to component libraries. To use these features, you must
list them in the
- gz-cmake
- gz-math now has a build dependency on gz-cmake, which allows cmake scripts to be shared across all the Gazebo packages.