pick_place
include
moveit
pick_place
manipulation_stage.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Software License Agreement (BSD License)
3
*
4
* Copyright (c) 2012, Willow Garage, Inc.
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
*
11
* * Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* * Redistributions in binary form must reproduce the above
14
* copyright notice, this list of conditions and the following
15
* disclaimer in the documentation and/or other materials provided
16
* with the distribution.
17
* * Neither the name of Willow Garage nor the names of its
18
* contributors may be used to endorse or promote products derived
19
* from this software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
* POSSIBILITY OF SUCH DAMAGE.
33
*********************************************************************/
34
35
/* Author: Ioan Sucan, Sachin Chitta */
36
37
#pragma once
38
39
#include <
moveit/macros/class_forward.h
>
40
#include <
moveit/pick_place/manipulation_plan.h
>
41
#include <string>
42
43
namespace
pick_place
44
{
45
MOVEIT_CLASS_FORWARD
(ManipulationStage);
// Defines ManipulationStagePtr, ConstPtr, WeakPtr... etc
46
47
class
ManipulationStage
48
{
49
public
:
50
ManipulationStage
(
const
std::string& name) :
name_
(
name
),
signal_stop_
(false),
verbose_
(false)
51
{
52
}
53
54
virtual
~ManipulationStage
()
55
{
56
}
57
58
const
std::string&
getName
()
const
59
{
60
return
name_
;
61
}
62
63
void
setVerbose
(
bool
flag)
64
{
65
verbose_
= flag;
66
}
67
68
virtual
void
resetStopSignal
()
69
{
70
signal_stop_
=
false
;
71
}
72
73
virtual
void
signalStop
()
74
{
75
signal_stop_
=
true
;
76
}
77
78
virtual
bool
evaluate
(
const
ManipulationPlanPtr& plan)
const
= 0;
79
80
protected
:
81
std::string
name_
;
82
bool
signal_stop_
;
83
bool
verbose_
;
84
};
85
}
// namespace pick_place
pick_place
Definition:
approach_and_translate_stage.h:43
pick_place::ManipulationStage::evaluate
virtual bool evaluate(const ManipulationPlanPtr &plan) const =0
pick_place::ManipulationStage::getName
const std::string & getName() const
Definition:
manipulation_stage.h:90
pick_place::ManipulationStage::verbose_
bool verbose_
Definition:
manipulation_stage.h:115
pick_place::ManipulationStage::resetStopSignal
virtual void resetStopSignal()
Definition:
manipulation_stage.h:100
pick_place::ManipulationStage::signalStop
virtual void signalStop()
Definition:
manipulation_stage.h:105
pick_place::MOVEIT_CLASS_FORWARD
MOVEIT_CLASS_FORWARD(ManipulationStage)
name
std::string name
manipulation_plan.h
pick_place::ManipulationStage::setVerbose
void setVerbose(bool flag)
Definition:
manipulation_stage.h:95
pick_place::ManipulationStage::ManipulationStage
ManipulationStage(const std::string &name)
Definition:
manipulation_stage.h:82
pick_place::ManipulationStage::~ManipulationStage
virtual ~ManipulationStage()
Definition:
manipulation_stage.h:86
class_forward.h
pick_place::ManipulationStage::name_
std::string name_
Definition:
manipulation_stage.h:113
pick_place::ManipulationStage::signal_stop_
bool signal_stop_
Definition:
manipulation_stage.h:114
manipulation
Author(s): Ioan Sucan
, Sachin Chitta
autogenerated on Fri May 3 2024 02:29:51