From e1df57161f87f93833b3c645c0268c3b1f9c6482 Mon Sep 17 00:00:00 2001 From: Shobuj Paul Date: Sat, 16 Sep 2023 10:25:04 +0530 Subject: [PATCH] Fixed function declaration --- .../include/moveit/ompl_interface/ompl_interface.h | 2 +- moveit_planners/ompl/ompl_interface/src/ompl_interface.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/ompl_interface.h b/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/ompl_interface.h index 16ce27c1c88..6f3d0de59f1 100644 --- a/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/ompl_interface.h +++ b/moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/ompl_interface.h @@ -76,7 +76,7 @@ class OMPLInterface * @param response the service response */ void storePlannerData(const std::shared_ptr& request, - std::shared_ptr response); + const std::shared_ptr& response); /** @brief Specify configurations for the planners. @param pconfig Configurations for the different planners */ diff --git a/moveit_planners/ompl/ompl_interface/src/ompl_interface.cpp b/moveit_planners/ompl/ompl_interface/src/ompl_interface.cpp index 648198d426b..af4bdfa0634 100644 --- a/moveit_planners/ompl/ompl_interface/src/ompl_interface.cpp +++ b/moveit_planners/ompl/ompl_interface/src/ompl_interface.cpp @@ -108,8 +108,8 @@ OMPLInterface::OMPLInterface(const moveit::core::RobotModelConstPtr& robot_model OMPLInterface::~OMPLInterface() = default; -void OMPLInterface::storePlannerData(const std::shared_ptr /* unused */, - std::shared_ptr response) +void OMPLInterface::storePlannerData(const std::shared_ptr& /* unused */, + const std::shared_ptr& response) { bool success = context_manager_.storePlannerData(); response->success = success;