diff --git a/robot_calibration/CMakeLists.txt b/robot_calibration/CMakeLists.txt
index 2ba9014f..6eb02458 100644
--- a/robot_calibration/CMakeLists.txt
+++ b/robot_calibration/CMakeLists.txt
@@ -15,6 +15,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
+find_package(tinyxml2_vendor QUIET)
+find_package(TinyXML2)
+
find_package(orocos_kdl REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(camera_calibration_parsers REQUIRED)
@@ -46,6 +49,7 @@ include_directories(include
${EIGEN3_INCLUDE_DIRS}
${orocos_kdl_INCLUDE_DIRS})
link_directories(${orocos_kdl_LIBRARY_DIRS}) # this is a hack, will eventually be unneeded once orocos-kdl is fixed
+link_libraries(tinyxml2::tinyxml2)
set(dependencies
camera_calibration_parsers
@@ -84,7 +88,6 @@ add_library(robot_calibration SHARED
target_link_libraries(robot_calibration
${Boost_LIBRARIES}
${CERES_LIBRARIES}
- ${tinyxml_LIBRARIES}
${orocos_kdl_LIBRARIES}
)
ament_target_dependencies(robot_calibration
@@ -101,7 +104,6 @@ add_library(robot_calibration_feature_finders SHARED
target_link_libraries(robot_calibration_feature_finders
robot_calibration
${Boost_LIBRARIES}
- ${tinyxml_LIBRARIES}
${orocos_kdl_LIBRARIES}
${OpenCV_LIBS}
)
@@ -114,7 +116,6 @@ target_link_libraries(calibrate
robot_calibration
${Boost_LIBRARIES}
${CERES_LIBRARIES}
- ${tinyxml_LIBRARIES}
${orocos_kdl_LIBRARIES}
${OpenCV_LIBS}
)
diff --git a/robot_calibration/package.xml b/robot_calibration/package.xml
index 3a62b914..3188bd94 100644
--- a/robot_calibration/package.xml
+++ b/robot_calibration/package.xml
@@ -33,6 +33,8 @@
std_msgs
tf2_geometry_msgs
tf2_ros
+ tinyxml2
+ tinyxml2_vendor
visualization_msgs
libceres-dev
libgflags-dev
diff --git a/robot_calibration/src/optimization/offsets.cpp b/robot_calibration/src/optimization/offsets.cpp
index 454e567e..9dce271a 100644
--- a/robot_calibration/src/optimization/offsets.cpp
+++ b/robot_calibration/src/optimization/offsets.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2018-2022 Michael Ferguson
+ * Copyright (C) 2018-2023 Michael Ferguson
* Copyright (C) 2013-2014 Unbounded Robotics Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,9 +18,10 @@
// Author: Michael Ferguson
#include
+#include
#include
#include