From e50f5c8a57fe31b558db1ec2697184e63edbff01 Mon Sep 17 00:00:00 2001 From: admercs Date: Fri, 8 Mar 2024 10:38:22 -0800 Subject: [PATCH] update macos builds --- .../src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ros2/src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp b/ros2/src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp index 4f1724b8..3db0f0d0 100644 --- a/ros2/src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp +++ b/ros2/src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp @@ -758,8 +758,9 @@ AutonomySimROSWrapper::get_lidar_msg_from_autonomysim(const nervosys::autonomyli if (isENU_) { try { sensor_msgs::msg::PointCloud2 lidar_msg_enu; - auto transformStampedENU = tf_buffer_->lookupTransform( - AUTONOMYSIM_FRAME_ID, vehicle_name, rclcpp::Time(0), rclcpp::Duration::nanoseconds(1)); + std::chrono::nanoseconds step = 1; + auto transformStampedENU = tf_buffer_->lookupTransform(AUTONOMYSIM_FRAME_ID, vehicle_name, + rclcpp::Time(0), rclcpp::Duration(step)); tf2::doTransform(lidar_msg, lidar_msg_enu, transformStampedENU); lidar_msg_enu.header.stamp = lidar_msg.header.stamp;