Skip to content

Commit

Permalink
Rename get..CostFn to create..CostFn
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Oct 26, 2023
1 parent a079202 commit a0b3a64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ namespace moveit
namespace cost_functions
{
[[nodiscard]] ::planning_interface::StateCostFn
getMinJointDisplacementCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
createMinJointDisplacementCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
const planning_scene::PlanningSceneConstPtr& planning_scene);

[[nodiscard]] ::planning_interface::StateCostFn
getClearanceCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
createClearanceCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
const planning_scene::PlanningSceneConstPtr& planning_scene);
} // namespace cost_functions
} // namespace moveit
4 changes: 2 additions & 2 deletions moveit_core/cost_functions/src/cost_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace moveit
namespace cost_functions
{
[[nodiscard]] ::planning_interface::StateCostFn
getClearanceCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
createClearanceCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
const planning_scene::PlanningSceneConstPtr& planning_scene)
{
// Create cost function
Expand All @@ -60,7 +60,7 @@ getClearanceCostFn(moveit::core::RobotState& robot_state, const std::string& gro
}

[[nodiscard]] ::planning_interface::StateCostFn
getMinJointDisplacementCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
createMinJointDisplacementCostFn(moveit::core::RobotState& robot_state, const std::string& group_name,
const planning_scene::PlanningSceneConstPtr& planning_scene)
{
return [robot_state, group_name, planning_scene](const Eigen::VectorXd& state_vector) mutable {
Expand Down

0 comments on commit a0b3a64

Please sign in to comment.