Skip to content

Commit 01fe479

Browse files
committed
simplified now() function call
1 parent 36ac836 commit 01fe479

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rviz_mbf_plugins/src/mbf_goal_actions_panel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ void MbfGoalActionsPanel::exePathResultCallback(
10141014
get_path_goal.planner = get_path_planner_name_; // cached from GUI thread, protected by mutex
10151015
}
10161016
// Overwrite the timestamp to prevent tf extrapolation errors in the planners
1017-
get_path_goal.target_pose.header.set__stamp(ros_node_->get_clock()->now());
1017+
get_path_goal.target_pose.header.stamp = ros_node_->now();
10181018
get_path_goal.use_start_pose = false;
10191019
sendGetPathGoal(get_path_goal);
10201020

0 commit comments

Comments
 (0)