#include <stage.h>

Public Types | |
| using | pointer = std::unique_ptr< Stage > |
| enum | PropertyInitializerSource : uint8_t { DEFAULT = 0, MANUAL = 1, PARENT = 2, INTERFACE = 4 } |
| using | SolutionCallback = std::function< void(const SolutionBase &)> |
| using | SolutionCallbackList = std::list< SolutionCallback > |
Public Member Functions | |
| SolutionCallbackList::const_iterator | addSolutionCallback (SolutionCallback &&cb) |
| add function to be called for every newly found solution or failure More... | |
| virtual bool | explainFailure (std::ostream &) const |
| const std::list< SolutionBaseConstPtr > & | failures () const |
| std::set< std::string > | forwardedProperties () const |
| void | forwardProperties (const InterfaceState &source, InterfaceState &dest) |
| forwarding of properties between interface states More... | |
| double | getTotalComputeTime () const |
| virtual void | init (const moveit::core::RobotModelConstPtr &robot_model) |
| Introspection * | introspection () const |
| uint32_t | introspectionId () const |
| const std::string & | markerNS () |
| marker namespace of solution markers More... | |
| const std::string & | name () const |
| size_t | numFailures () const |
| const ContainerBase * | parent () const |
| PropertyMap & | properties () |
| Get the stage's property map. More... | |
| const PropertyMap & | properties () const |
| void | removeSolutionCallback (SolutionCallbackList::const_iterator which) |
| remove function callback More... | |
| void | reportPropertyError (const Property::error &e) |
| Analyze source of error and report accordingly. More... | |
| virtual void | reset () |
| reset stage, clearing all solutions, interfaces, inherited properties. More... | |
| void | setCostTerm (const CostTermConstPtr &term) |
| template<typename T , typename = std::enable_if_t<std::is_constructible<LambdaCostTerm, T>::value>> | |
| void | setCostTerm (T term) |
| void | setForwardedProperties (const std::set< std::string > &names) |
| void | setMarkerNS (const std::string &marker_ns) |
| void | setName (const std::string &name) |
| void | setProperty (const std::string &name, const boost::any &value) |
| Set a previously declared property to a new value. More... | |
| void | setProperty (const std::string &name, const char *value) |
| overload: const char* values are stored as std::string More... | |
| void | setTimeout (double timeout) |
| void | setTrajectoryExecutionInfo (TrajectoryExecutionInfo trajectory_execution_info) |
| Set and get info to use when executing the stage's trajectory. More... | |
| void | silentFailure () |
| Call to increase number of failures w/o storing a (failure) trajectory. More... | |
| const ordered< SolutionBaseConstPtr > & | solutions () const |
| bool | storeFailures () const |
| Should we generate failure solutions? Note: Always report a failure! More... | |
| double | timeout () const |
| timeout of stage per computation More... | |
| TrajectoryExecutionInfo | trajectoryExecutionInfo () const |
| virtual | ~Stage () |
Protected Member Functions | |
| Stage (const Stage &)=delete | |
| Stage cannot be copied. More... | |
| Stage (StagePrivate *impl) | |
| Stage can only be instantiated through derived classes. More... | |
Protected Attributes | |
| StagePrivate * | pimpl_ |
| using moveit::task_constructor::Stage::pointer = std::unique_ptr<Stage> |
| using moveit::task_constructor::Stage::SolutionCallback = std::function<void(const SolutionBase&)> |
| using moveit::task_constructor::Stage::SolutionCallbackList = std::list<SolutionCallback> |
Names for property initialization sources
INTERFACE takes precedence over PARENT.
| Enumerator | |
|---|---|
| DEFAULT | |
| MANUAL | |
| PARENT | |
| INTERFACE | |
|
protected |
| Stage::SolutionCallbackList::const_iterator moveit::task_constructor::Stage::addSolutionCallback | ( | SolutionCallback && | cb | ) |
|
inlinevirtual |
Reimplemented in moveit::task_constructor::Task, and moveit::task_constructor::ContainerBase.
| const std::list< SolutionBaseConstPtr > & moveit::task_constructor::Stage::failures | ( | ) | const |
|
inline |
| void moveit::task_constructor::Stage::forwardProperties | ( | const InterfaceState & | source, |
| InterfaceState & | dest | ||
| ) |
| double moveit::task_constructor::Stage::getTotalComputeTime | ( | ) | const |
|
virtual |
initialize stage once before planning
When called, properties configured for initialization from parent are already defined. Push interfaces are not yet defined!
Reimplemented in moveit::task_constructor::MonitoringGenerator, moveit::task_constructor::Fallbacks, moveit::task_constructor::stages::CurrentState, moveit::task_constructor::ContainerBase, moveit::task_constructor::stages::PickPlaceBase, moveit::task_constructor::stages::Connect, moveit::task_constructor::stages::SimpleGraspBase, moveit::task_constructor::stages::MoveRelative, moveit::task_constructor::stages::PredicateFilter, and moveit::task_constructor::stages::MoveTo.
| Introspection * moveit::task_constructor::Stage::introspection | ( | ) | const |
| uint32_t moveit::task_constructor::Stage::introspectionId | ( | ) | const |
|
inline |
| const std::string & moveit::task_constructor::Stage::name | ( | ) | const |
| size_t moveit::task_constructor::Stage::numFailures | ( | ) | const |
| const ContainerBase * moveit::task_constructor::Stage::parent | ( | ) | const |
| PropertyMap & moveit::task_constructor::Stage::properties | ( | ) |
|
inline |
| void moveit::task_constructor::Stage::removeSolutionCallback | ( | SolutionCallbackList::const_iterator | which | ) |
| void moveit::task_constructor::Stage::reportPropertyError | ( | const Property::error & | e | ) |
|
virtual |
reset stage, clearing all solutions, interfaces, inherited properties.
Reimplemented in moveit::task_constructor::Connecting, moveit::task_constructor::Merger, moveit::task_constructor::Fallbacks, moveit::task_constructor::stages::FixedState, moveit::task_constructor::stages::FixedCartesianPoses, moveit::task_constructor::stages::GeneratePose, moveit::task_constructor::ContainerBase, moveit::task_constructor::stages::Connect, moveit::task_constructor::stages::ComputeIK, and moveit::task_constructor::Task.
| void moveit::task_constructor::Stage::setCostTerm | ( | const CostTermConstPtr & | term | ) |
|
inline |
|
inline |
|
inline |
| void moveit::task_constructor::Stage::setName | ( | const std::string & | name | ) |
| void moveit::task_constructor::Stage::setProperty | ( | const std::string & | name, |
| const boost::any & | value | ||
| ) |
|
inline |
|
inline |
|
inline |
| void moveit::task_constructor::Stage::silentFailure | ( | ) |
| const ordered< SolutionBaseConstPtr > & moveit::task_constructor::Stage::solutions | ( | ) | const |
| bool moveit::task_constructor::Stage::storeFailures | ( | ) | const |
|
inline |
|
inline |
|
protected |