#include <task.h>

Public Types | |
| using | TaskCallback = std::function< void(const Task &t)> |
| using | TaskCallbackList = std::list< TaskCallback > |
Public Member Functions | |
| void | add (Stage::pointer &&stage) |
| TaskCallbackList::const_iterator | addTaskCallback (TaskCallback &&cb) |
| add function to be called after each top-level iteration More... | |
| void | clear () final |
| void | enableIntrospection (bool enable=true) |
| enable introspection publishing for use with rviz More... | |
| void | eraseTaskCallback (TaskCallbackList::const_iterator which) |
| remove function callback More... | |
| moveit::core::MoveItErrorCode | execute (const SolutionBase &s) |
| execute solution, return the result More... | |
| bool | explainFailure (std::ostream &os=std::cout) const override |
| print an explanation for a planning failure to os More... | |
| const std::list< SolutionBaseConstPtr > & | failures () const |
| Stage * | findChild (const std::string &name) const |
| const moveit::core::RobotModelConstPtr & | getRobotModel () const |
| void | init () |
| initialize all stages with given scene More... | |
| void | insert (Stage::pointer &&stage, int before=-1) override |
| insertion is only allowed if children() is empty More... | |
| Introspection & | introspection () |
| void | loadRobotModel (const std::string &robot_description="robot_description") |
| load robot model from given parameter More... | |
| const std::string & | name () const |
| size_t | numSolutions () const |
| Task & | operator= (Task &&other) |
| Stage * | operator[] (int index) const |
| moveit::core::MoveItErrorCode | plan (size_t max_solutions=0) |
| reset, init scene (if not yet done), and init all stages, then start planning More... | |
| void | preempt () |
| interrupt current planning More... | |
| void | printState (std::ostream &os=std::cout) const |
| print current task state (number of found solutions and propagated states) to std::cout More... | |
| PropertyMap & | properties () |
| properties access More... | |
| const PropertyMap & | properties () const |
| void | publishAllSolutions (bool wait=true) |
| publish all top-level solutions More... | |
| void | reset () final |
| reset all stages More... | |
| void | resetPreemptRequest () |
| void | setName (const std::string &name) |
| void | setProperty (const std::string &name, const boost::any &value) |
| void | setProperty (const std::string &name, const char *value) |
| overload: const char* values are stored as std::string More... | |
| void | setRobotModel (const moveit::core::RobotModelConstPtr &robot_model) |
| setting the robot model also resets the task More... | |
| const ordered< SolutionBaseConstPtr > & | solutions () const |
| ContainerBase * | stages () |
| access stage tree More... | |
| const ContainerBase * | stages () const |
| Task (const std::string &ns="", bool introspection=true, ContainerBase::pointer &&container=std::make_unique< SerialContainer >("task pipeline")) | |
| Task (Task &&other) | |
| ~Task () override | |
Protected Member Functions | |
| bool | canCompute () const override |
| void | compute () override |
| void | onNewSolution (const SolutionBase &s) override |
| called by a (direct) child when a new solution becomes available More... | |
Protected Member Functions inherited from moveit::task_constructor::WrapperBase | |
| WrapperBase (WrapperBasePrivate *impl, Stage::pointer &&child=Stage::pointer()) | |
| Stage * | wrapped () |
| access the single wrapped child, NULL if still empty More... | |
| const Stage * | wrapped () const |
| WrapperBase (const std::string &name="wrapper", Stage::pointer &&child=Stage::pointer()) | |
Protected Member Functions inherited from moveit::task_constructor::ParallelContainerBase | |
| void | liftSolution (const SolutionBase &solution) |
| lift unmodified child solution (useful for simple filtering) More... | |
| void | liftSolution (const SolutionBase &solution, double cost) |
| lift child solution to external interface, adapting the costs More... | |
| void | liftSolution (const SolutionBase &solution, double cost, std::string comment) |
| lift child solution to external interface, adapting the costs and comment More... | |
| ParallelContainerBase (ParallelContainerBasePrivate *impl) | |
| void | sendBackward (InterfaceState &&from, const InterfaceState &to, SubTrajectory &&trajectory) |
| propagate a solution backwards More... | |
| void | sendForward (const InterfaceState &from, InterfaceState &&to, SubTrajectory &&trajectory) |
| propagate a solution forwards More... | |
| void | spawn (InterfaceState &&state, SubTrajectory &&trajectory) |
| spawn a new solution with given state as start and end More... | |
| ParallelContainerBase (const std::string &name="parallel container") | |
Protected Member Functions inherited from moveit::task_constructor::ContainerBase | |
| ContainerBase (ContainerBasePrivate *impl) | |
| void | add (Stage::pointer &&stage) |
| Stage * | findChild (const std::string &name) const |
| void | init (const moveit::core::RobotModelConstPtr &robot_model) override |
| size_t | numChildren () const |
| Stage * | operator[] (int index) const |
| bool | pruning () const |
| virtual Stage::pointer | remove (int pos) |
| virtual Stage::pointer | remove (Stage *child) |
| void | setPruning (bool pruning) |
| Explicitly enable/disable pruning. More... | |
| bool | traverseChildren (const StageCallback &processor) const |
| traverse direct children of this container, calling the callback for each of them More... | |
| bool | traverseRecursively (const StageCallback &processor) const |
| traverse all children of this container recursively More... | |
Protected Member Functions inherited from moveit::task_constructor::Stage | |
| Stage (const Stage &)=delete | |
| Stage cannot be copied. More... | |
| Stage (StagePrivate *impl) | |
| Stage can only be instantiated through derived classes. More... | |
| SolutionCallbackList::const_iterator | addSolutionCallback (SolutionCallback &&cb) |
| add function to be called for every newly found solution or failure More... | |
| 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 |
| 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... | |
| 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 () |
Additional Inherited Members | |
Protected Types inherited from moveit::task_constructor::ContainerBase | |
| using | pointer = std::unique_ptr< ContainerBase > |
| using | StageCallback = std::function< bool(const Stage &, unsigned int)> |
Protected Types inherited from moveit::task_constructor::Stage | |
| 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 > |
Protected Attributes inherited from moveit::task_constructor::Stage | |
| StagePrivate * | pimpl_ |
A Task is the root of a tree of stages.
Actually a tasks wraps a single container (by default a SerialContainer), which serves as the root of all stages.
| using moveit::task_constructor::Task::TaskCallback = std::function<void(const Task& t)> |
| using moveit::task_constructor::Task::TaskCallbackList = std::list<TaskCallback> |
| moveit::task_constructor::Task::Task | ( | const std::string & | ns = "", |
| bool | introspection = true, |
||
| ContainerBase::pointer && | container = std::make_unique<SerialContainer>("task pipeline") |
||
| ) |
| void moveit::task_constructor::Task::add | ( | Stage::pointer && | stage | ) |
| Task::TaskCallbackList::const_iterator moveit::task_constructor::Task::addTaskCallback | ( | TaskCallback && | cb | ) |
|
overrideprotectedvirtual |
Reimplemented from moveit::task_constructor::WrapperBase.
|
finalvirtual |
Reimplemented from moveit::task_constructor::ContainerBase.
|
overrideprotectedvirtual |
Reimplemented from moveit::task_constructor::WrapperBase.
| void moveit::task_constructor::Task::enableIntrospection | ( | bool | enable = true | ) |
| void moveit::task_constructor::Task::eraseTaskCallback | ( | TaskCallbackList::const_iterator | which | ) |
| moveit::core::MoveItErrorCode moveit::task_constructor::Task::execute | ( | const SolutionBase & | s | ) |
|
overridevirtual |
print an explanation for a planning failure to os
Reimplemented from moveit::task_constructor::ContainerBase.
|
inline |
|
inline |
| const core::RobotModelConstPtr & moveit::task_constructor::Task::getRobotModel | ( | ) | const |
| void moveit::task_constructor::Task::init | ( | ) |
|
overridevirtual |
insertion is only allowed if children() is empty
Reimplemented from moveit::task_constructor::WrapperBase.
| Introspection & moveit::task_constructor::Task::introspection | ( | ) |
| void moveit::task_constructor::Task::loadRobotModel | ( | const std::string & | robot_description = "robot_description" | ) |
|
inline |
|
inline |
|
overrideprotectedvirtual |
called by a (direct) child when a new solution becomes available
Implements moveit::task_constructor::ContainerBase.
|
inline |
| moveit::core::MoveItErrorCode moveit::task_constructor::Task::plan | ( | size_t | max_solutions = 0 | ) |
| void moveit::task_constructor::Task::preempt | ( | ) |
| void moveit::task_constructor::Task::printState | ( | std::ostream & | os = std::cout | ) | const |
| PropertyMap & moveit::task_constructor::Task::properties | ( | ) |
|
inline |
| void moveit::task_constructor::Task::publishAllSolutions | ( | bool | wait = true | ) |
|
finalvirtual |
reset all stages
Reimplemented from moveit::task_constructor::ContainerBase.
| void moveit::task_constructor::Task::resetPreemptRequest | ( | ) |
|
inline |
| void moveit::task_constructor::Task::setProperty | ( | const std::string & | name, |
| const boost::any & | value | ||
| ) |
|
inline |
| void moveit::task_constructor::Task::setRobotModel | ( | const moveit::core::RobotModelConstPtr & | robot_model | ) |
|
inline |
| const ContainerBase * moveit::task_constructor::Task::stages | ( | ) |
| const ContainerBase* moveit::task_constructor::Task::stages | ( | ) | const |