Skip to content

Commit

Permalink
add timeout for lookupTransform to avoid extrapolation errors (#417)
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <[email protected]>
  • Loading branch information
daisukes authored Jun 7, 2023
1 parent 33dbb3b commit b2dcad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcl_ros/src/transforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ transformPointCloud(
transform =
tf_buffer.lookupTransform(
target_frame, in.header.frame_id, tf2_ros::fromMsg(
in.header.stamp));
in.header.stamp), tf2::Duration(std::chrono::seconds(1)));
} catch (tf2::LookupException & e) {
RCLCPP_ERROR(rclcpp::get_logger("pcl_ros"), "%s", e.what());
return false;
Expand Down

0 comments on commit b2dcad2

Please sign in to comment.