Add the capability to use Gazebo Harmonic if it is installed

This commit is contained in:
jmackay2
2023-10-10 23:39:05 -04:00
committed by Daniel Agar
parent af84c2ca7f
commit 2d78383296
2 changed files with 8 additions and 7 deletions
@@ -32,13 +32,13 @@
############################################################################
# Find the gz_Transport library
find_package(gz-transport
#REQUIRED COMPONENTS core
NAMES
#ignition-transport11 # IGN (Fortress and earlier) no longer supported
gz-transport12
#QUIET
)
# First look for GZ Harmonic libraries
find_package(gz-transport NAMES gz-transport13)
# If Harmonic not found, look for GZ Garden libraries
if(NOT gz-transport_FOUND)
find_package(gz-transport NAMES gz-transport12)
endif()
if(gz-transport_FOUND)
@@ -35,6 +35,7 @@
#include <lib/mixer_module/mixer_module.hpp>
#include <gz/msgs.hh>
#include <gz/transport.hh>
#include <uORB/PublicationMulti.hpp>