mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
correctly reset FixedState
This commit is contained in:
parent
52fdf30433
commit
5878e8ab6b
@ -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;
|
||||
|
||||
|
||||
@ -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_;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user