diff --git a/core/include/moveit/task_constructor/stages/current_state.h b/core/include/moveit/task_constructor/stages/current_state.h index b9554b47..3c3a4a0c 100644 --- a/core/include/moveit/task_constructor/stages/current_state.h +++ b/core/include/moveit/task_constructor/stages/current_state.h @@ -44,7 +44,7 @@ namespace moveit { namespace task_constructor { namespace stages { class CurrentState : public Generator { public: - CurrentState(std::string name); + CurrentState(const std::string& name = "current state"); void init(const planning_scene::PlanningSceneConstPtr& scene) override; bool canCompute() const override; diff --git a/core/src/stages/current_state.cpp b/core/src/stages/current_state.cpp index 336dc014..1a2828a7 100644 --- a/core/src/stages/current_state.cpp +++ b/core/src/stages/current_state.cpp @@ -39,7 +39,7 @@ namespace moveit { namespace task_constructor { namespace stages { -CurrentState::CurrentState(std::string name = "current state") +CurrentState::CurrentState(const std::string &name) : Generator(name) { ran_= false;