Skip to content

Commit

Permalink
Fix compilation with latest ROS 2 source (#605)
Browse files Browse the repository at this point in the history
* Include tf2_ros/buffer.h where needed

After some cleanup in ros2/geometry2#325, the header is no longer being transitively included.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Fix deprecated usage of FutureReturnCode

The namespace rclcpp::executors:: was deprecated in Foxy and removed in ros2/rclcpp#1327.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored Oct 26, 2020
1 parent a1055b9 commit 7906d64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <message_filters/time_synchronizer.h>
#include <nav_msgs/msg/odometry.hpp>
#include <geometry_msgs/msg/accel_with_covariance_stamped.hpp>
#include <tf2_ros/buffer.h>
#include <tf2_ros/transform_listener.h>

#include <memory>
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 @@ -88,7 +88,7 @@ void resetFilter(rclcpp::Node::SharedPtr node_)
double deltaY = 0.0;
double deltaZ = 0.0;

if (ret == rclcpp::executor::FutureReturnCode::SUCCESS) {
if (ret == rclcpp::FutureReturnCode::SUCCESS) {
// timing and spinning has been changed as per ros2
rclcpp::Rate(2).sleep();
rclcpp::spin_some(node_);
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 @@ -88,7 +88,7 @@ void resetFilter(rclcpp::Node::SharedPtr node_)
double deltaY = 0.0;
double deltaZ = 0.0;
// Timing and spinning is updated as per ros2
if (ret == rclcpp::executor::FutureReturnCode::SUCCESS) {
if (ret == rclcpp::FutureReturnCode::SUCCESS) {
rclcpp::Rate(2).sleep();
rclcpp::spin_some(node_);
deltaX = filtered_.pose.pose.position.x -
Expand Down

0 comments on commit 7906d64

Please sign in to comment.