diff --git a/nav2_docking/opennav_docking/include/opennav_docking/controller.hpp b/nav2_docking/opennav_docking/include/opennav_docking/controller.hpp index b5b0c99e38..f6905c8fb6 100644 --- a/nav2_docking/opennav_docking/include/opennav_docking/controller.hpp +++ b/nav2_docking/opennav_docking/include/opennav_docking/controller.hpp @@ -45,7 +45,8 @@ class Controller * @returns True if command is valid, false otherwise. */ bool computeVelocityCommand( - const geometry_msgs::msg::Pose & pose, const geometry_msgs::msg::Pose & robot_pose, + const geometry_msgs::msg::Pose & pose, + const geometry_msgs::msg::Pose & robot_pose, geometry_msgs::msg::Twist & cmd, bool backward = false); /** diff --git a/nav2_docking/opennav_docking/src/controller.cpp b/nav2_docking/opennav_docking/src/controller.cpp index 0ae84592f9..79a4f7ebe0 100644 --- a/nav2_docking/opennav_docking/src/controller.cpp +++ b/nav2_docking/opennav_docking/src/controller.cpp @@ -61,7 +61,8 @@ Controller::Controller(const rclcpp_lifecycle::LifecycleNode::SharedPtr & node) } bool Controller::computeVelocityCommand( - const geometry_msgs::msg::Pose & pose, const geometry_msgs::msg::Pose & robot_pose, + const geometry_msgs::msg::Pose & pose, + const geometry_msgs::msg::Pose & robot_pose, geometry_msgs::msg::Twist & cmd, bool backward) { std::lock_guard lock(dynamic_params_lock_);