Improve default log message for received motion

This commit is contained in:
2023-02-28 15:50:42 +02:00
parent b009b3974c
commit 70134cc6ab

View File

@@ -58,7 +58,7 @@ rclcpp_action::GoalResponse RobotController::motion_handle_goal(
const rclcpp_action::GoalUUID & uuid, const rclcpp_action::GoalUUID & uuid,
std::shared_ptr<const ExecuteMotion::Goal> goal) std::shared_ptr<const ExecuteMotion::Goal> goal)
{ {
RCLCPP_INFO(this->get_logger(), "Received goal request with acceleration %f", goal->motion.acceleration); RCLCPP_INFO(this->get_logger(), "Received goal request with %ld poses", goal->motion.path.size());
(void)uuid; (void)uuid;
return rclcpp_action::GoalResponse::ACCEPT_AND_EXECUTE; return rclcpp_action::GoalResponse::ACCEPT_AND_EXECUTE;
} }