Skip to content

Commit 25f310d

Browse files
committed
add timeout to lookupTransform
Otherwise there are a lot of warnings of `lookup would require extrapolation into the future`
1 parent e90693b commit 25f310d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imu_filter_madgwick/src/imu_filter_ros.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,8 @@ void ImuFilterRos::publishOrientationFiltered(const ImuMsg::ConstPtr& imu_msg)
432432
try
433433
{
434434
transform = tf_buffer_.lookupTransform(
435-
fixed_frame_, imu_msg->header.frame_id, imu_msg->header.stamp);
435+
fixed_frame_, imu_msg->header.frame_id, imu_msg->header.stamp,
436+
ros::Duration(0.1));
436437
} catch (tf2::TransformException& ex)
437438
{
438439
ROS_WARN("%s", ex.what());

0 commit comments

Comments
 (0)