correctly reset FixedState

This commit is contained in:
Robert Haschke 2018-05-30 21:02:03 +02:00 committed by v4hn
parent 52fdf30433
commit 5878e8ab6b
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public:
FixedState(const std::string& name = "initial state");
void setState(const planning_scene::PlanningScenePtr& scene);
void reset() override;
bool canCompute() const override;
void compute() override;

View File

@ -48,6 +48,12 @@ void FixedState::setState(const planning_scene::PlanningScenePtr& scene)
scene_ = scene;
}
void FixedState::reset()
{
Generator::reset();
ran_ = false;
}
bool FixedState::canCompute() const{
return !ran_ && scene_;
}