Skip to content

Commit

Permalink
bumping rolling to 3.3.0 for initial release and fixing various rolli…
Browse files Browse the repository at this point in the history
…ng related build failures (#694)

* bumping rolling to 3.3.0 for initial release

* fix deprecation warning in cmake rosidl linking
  • Loading branch information
SteveMacenski authored Sep 15, 2021
1 parent a1e48b4 commit acd16ed
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 28 deletions.
43 changes: 25 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ add_library(
src/ros_filter_utilities.cpp
src/ros_robot_localization_listener.cpp)

rosidl_target_interfaces(${library_name}
${PROJECT_NAME} "rosidl_typesupport_cpp")
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(${library_name} "${cpp_typesupport_target}")

add_executable(
ekf_node
Expand Down Expand Up @@ -177,8 +177,10 @@ if(BUILD_TESTING)
ament_add_gtest_executable(test_filter_base_diagnostics_timestamps
test/test_filter_base_diagnostics_timestamps.cpp)
target_link_libraries(test_filter_base_diagnostics_timestamps ${library_name})
rosidl_target_interfaces(test_filter_base_diagnostics_timestamps
${PROJECT_NAME} "rosidl_typesupport_cpp")

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_filter_base_diagnostics_timestamps "${cpp_typesupport_target}")

add_dependencies(test_filter_base_diagnostics_timestamps ekf_node)
ament_add_test(test_filter_base_diagnostics_timestamps
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
Expand All @@ -190,14 +192,17 @@ if(BUILD_TESTING)
#### EKF TESTS ######
ament_add_gtest(test_ekf test/test_ekf.cpp)
target_link_libraries(test_ekf ${library_name})
rosidl_target_interfaces(test_ekf
${PROJECT_NAME} "rosidl_typesupport_cpp")

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ekf "${cpp_typesupport_target}")

ament_add_gtest_executable(test_ekf_localization_node_interfaces
test/test_ekf_localization_node_interfaces.cpp)
target_link_libraries(test_ekf_localization_node_interfaces ${library_name})
rosidl_target_interfaces(test_ekf_localization_node_interfaces
${PROJECT_NAME} "rosidl_typesupport_cpp")

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ekf_localization_node_interfaces "${cpp_typesupport_target}")

add_dependencies(test_ekf_localization_node_interfaces ekf_node)
ament_add_test(test_ekf_localization_node_interfaces
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
Expand All @@ -209,15 +214,17 @@ if(BUILD_TESTING)
#### UKF TESTS #####
ament_add_gtest(test_ukf test/test_ukf.cpp)
target_link_libraries(test_ukf ${library_name})
rosidl_target_interfaces(test_ukf
${PROJECT_NAME} "rosidl_typesupport_cpp")

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ukf "${cpp_typesupport_target}")

ament_add_gtest_executable(test_ukf_localization_node_interfaces
test/test_ukf_localization_node_interfaces.cpp)
target_link_libraries(test_ukf_localization_node_interfaces ${library_name})
rosidl_target_interfaces(test_ukf_localization_node_interfaces
${PROJECT_NAME} "rosidl_typesupport_cpp")

rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ukf_localization_node_interfaces "${cpp_typesupport_target}")

add_dependencies(test_ukf_localization_node_interfaces ukf_node)
ament_add_test(test_ukf_localization_node_interfaces
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
Expand Down Expand Up @@ -249,8 +256,8 @@ if(BUILD_TESTING)
ament_add_gtest_executable(test_robot_localization_estimator
test/test_robot_localization_estimator.cpp)
target_link_libraries(test_robot_localization_estimator ${library_name})
rosidl_target_interfaces(test_robot_localization_estimator
${PROJECT_NAME} "rosidl_typesupport_cpp")
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_robot_localization_estimator "${cpp_typesupport_target}")
ament_add_test(test_robot_localization_estimator
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
TIMEOUT 100
Expand All @@ -261,13 +268,13 @@ if(BUILD_TESTING)
ament_add_gtest_executable(test_ros_robot_localization_listener
test/test_ros_robot_localization_listener.cpp)
target_link_libraries(test_ros_robot_localization_listener ${library_name})
rosidl_target_interfaces(test_ros_robot_localization_listener
${PROJECT_NAME} "rosidl_typesupport_cpp")
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ros_robot_localization_listener "${cpp_typesupport_target}")
ament_add_gtest_executable(test_ros_robot_localization_listener_publisher
test/test_ros_robot_localization_listener_publisher.cpp)
target_link_libraries(test_ros_robot_localization_listener_publisher ${library_name})
rosidl_target_interfaces(test_ros_robot_localization_listener_publisher
${PROJECT_NAME} "rosidl_typesupport_cpp")
rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")
target_link_libraries(test_ros_robot_localization_listener_publisher "${cpp_typesupport_target}")
ament_add_test(test_ros_robot_localization_listener
GENERATE_RESULT_FOR_RETURN_CODE_ZERO
TIMEOUT 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace robot_localization

namespace detail
{
rclcpp::SubscriptionOptions
inline rclcpp::SubscriptionOptions
get_subscription_options_with_default_qos_override_policies()
{
auto subscription_options = rclcpp::SubscriptionOptions();
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>robot_localization</name>
<version>3.2.1</version>
<version>3.3.0</version>
<description>Provides nonlinear state estimation through sensor fusion of an abritrary number of sensors.</description>

<author email="[email protected]">Tom Moore</author>
Expand Down
2 changes: 1 addition & 1 deletion src/navsat_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <rclcpp/rclcpp.hpp>
#include <sensor_msgs/msg/imu.hpp>
#include <sensor_msgs/msg/nav_sat_fix.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>

#include <Eigen/Dense>

Expand Down
2 changes: 1 addition & 1 deletion src/ros_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <rclcpp/qos.hpp>
#include <rclcpp/rclcpp.hpp>
#include <sensor_msgs/msg/imu.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>

#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion src/ros_filter_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <robot_localization/filter_utilities.hpp>
#include <robot_localization/ros_filter_utilities.hpp>
#include <tf2/time.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#include <tf2_ros/buffer.h>

#include <string>
Expand Down
4 changes: 2 additions & 2 deletions src/ros_robot_localization_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#include <tf2/LinearMath/Matrix3x3.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2/time.h>
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_eigen/tf2_eigen.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#include <yaml-cpp/yaml.h>

#include <exception>
Expand Down
2 changes: 1 addition & 1 deletion test/test_ekf_localization_node_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <rclcpp/qos.hpp>
#include <sensor_msgs/msg/imu.hpp>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>

#include <chrono>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion test/test_ros_robot_localization_listener_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <geometry_msgs/msg/accel_with_covariance_stamped.hpp>
#include <nav_msgs/msg/odometry.hpp>
#include <rclcpp/rclcpp.hpp>
#include <tf2/utils.h>
#include <tf2_ros/static_transform_broadcaster.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>

#include <string>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion test/test_ukf_localization_node_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <rclcpp/qos.hpp>
#include <sensor_msgs/msg/imu.hpp>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>

#include <chrono>
#include <functional>
Expand Down

0 comments on commit acd16ed

Please sign in to comment.