From 660981e04ee60054c0de1f4d17ab8f408595b720 Mon Sep 17 00:00:00 2001 From: Tom Noble Date: Sat, 9 Nov 2024 17:27:39 +0000 Subject: [PATCH] Fixes RCLCPP_WARN calls --- .../src/trajectory_generator_circ.cpp | 4 ++-- .../src/trajectory_generator_ptp.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_circ.cpp b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_circ.cpp index cda273101f..d3a145ca8f 100644 --- a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_circ.cpp +++ b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_circ.cpp @@ -167,8 +167,8 @@ void TrajectoryGeneratorCIRC::extractMotionPlanInfo(const planning_scene::Planni info.circ_path_point.first = req.path_constraints.name; if (req.path_constraints.position_constraints.front().header.frame_id.empty()) { - RCLCPP_WARN(getLogger(), "Frame id is not set in position constraints of " - "path. Use model frame as default"); + RCLCPP_WARN(LOGGER, "Frame id is not set in position constraints of " + "path. Use model frame as default"); center_point_frame_id = robot_model_->getModelFrame(); } else diff --git a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_ptp.cpp b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_ptp.cpp index e79e9f8a5e..fe6b096c5d 100644 --- a/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_ptp.cpp +++ b/moveit_planners/pilz_industrial_motion_planner/src/trajectory_generator_ptp.cpp @@ -233,8 +233,8 @@ void TrajectoryGeneratorPTP::extractMotionPlanInfo(const planning_scene::Plannin if (req.goal_constraints.front().position_constraints.front().header.frame_id.empty() || req.goal_constraints.front().orientation_constraints.front().header.frame_id.empty()) { - RCLCPP_WARN(getLogger(), "Frame id is not set in position/orientation constraints of " - "goal. Use model frame as default"); + RCLCPP_WARN(LOGGER, "Frame id is not set in position/orientation constraints of " + "goal. Use model frame as default"); frame_id = robot_model_->getModelFrame(); } else