Skip to content

Commit 9427908

Browse files
author
Tony Najjar
authored
Merge pull request #44 from logivations/fix-tf-when-global-plan-not-updated
Fix TF when global plan is not updated
2 parents 4a18739 + c3fc29d commit 9427908

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

teb_local_planner/src/teb_local_planner_ros.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,8 @@ bool TebLocalPlannerROS::transformGlobalPlan(const std::vector<geometry_msgs::ms
721721

722722
// get plan_to_global_transform from plan frame to global_frame
723723
geometry_msgs::msg::TransformStamped plan_to_global_transform = tf_->lookupTransform(
724-
global_frame, tf2_ros::fromMsg(plan_pose.header.stamp),
725-
plan_pose.header.frame_id, tf2::timeFromSec(0),
726-
plan_pose.header.frame_id, tf2::durationFromSec(0.5));
724+
global_frame, plan_pose.header.frame_id,
725+
tf2::timeFromSec(0), tf2::durationFromSec(0.5));
727726

728727
// tf_->waitForTransform(global_frame, ros::Time::now(),
729728
// plan_pose.header.frame_id, plan_pose.header.stamp,

0 commit comments

Comments
 (0)