Skip to content

Commit

Permalink
update macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Mar 8, 2024
1 parent 5d3fb97 commit e50f5c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ros2/src/autonomysim_ros_pkgs/src/autonomysim_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e50f5c8

Please sign in to comment.