mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
GenerateGraspPose::reset()
This commit is contained in:
parent
3adc516037
commit
9545f92678
@ -47,6 +47,7 @@ class GenerateGraspPose : public MonitoringGenerator {
|
|||||||
public:
|
public:
|
||||||
GenerateGraspPose(const std::string& name);
|
GenerateGraspPose(const std::string& name);
|
||||||
|
|
||||||
|
void reset() override;
|
||||||
bool canCompute() const override;
|
bool canCompute() const override;
|
||||||
bool compute() override;
|
bool compute() override;
|
||||||
|
|
||||||
|
|||||||
@ -85,6 +85,13 @@ void GenerateGraspPose::setAngleDelta(double delta){
|
|||||||
setProperty("angle_delta", delta);
|
setProperty("angle_delta", delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GenerateGraspPose::reset()
|
||||||
|
{
|
||||||
|
scene_.reset();
|
||||||
|
current_angle_ = 0.0;
|
||||||
|
MonitoringGenerator::reset();
|
||||||
|
}
|
||||||
|
|
||||||
void GenerateGraspPose::onNewSolution(const SolutionBase& s)
|
void GenerateGraspPose::onNewSolution(const SolutionBase& s)
|
||||||
{
|
{
|
||||||
if (scene_)
|
if (scene_)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user