MTC
Public Types | Public Member Functions | List of all members
moveit::task_constructor::SolutionSequence Class Reference

#include <storage.h>

Inheritance diagram for moveit::task_constructor::SolutionSequence:
Inheritance graph
[legend]
Collaboration diagram for moveit::task_constructor::SolutionSequence:
Collaboration graph
[legend]

Public Types

using container_type = std::vector< const SolutionBase * >
 

Public Member Functions

 SolutionSequence (container_type &&subsolutions, double cost=0.0, Stage *creator=nullptr)
 
void push_back (const SolutionBase &solution)
 
void appendTo (moveit_task_constructor_msgs::Solution &msg, Introspection *introspection) const override
 append all subsolutions to solution
 
double computeCost (const CostTerm &cost, std::string &comment) const override
 required to dispatch to type-specific CostTerm methods via vtable
 
const container_type & solutions () const
 
const InterfaceStateinternalStart () const
 
const InterfaceStateinternalEnd () const
 
- Public Member Functions inherited from moveit::task_constructor::SolutionBase
const InterfaceStatestart () const
 
const InterfaceStateend () const
 
void setStartState (const InterfaceState &state)
 
void setEndState (const InterfaceState &state)
 
const Stagecreator () const
 
void setCreator (Stage *creator)
 
double cost () const
 
void setCost (double cost)
 
void markAsFailure (const std::string &msg=std::string())
 
bool isFailure () const
 
const std::string & comment () const
 
void setComment (const std::string &comment)
 
auto & markers ()
 
const auto & markers () const
 
void toMsg (moveit_task_constructor_msgs::Solution &solution, Introspection *introspection=nullptr) const
 convert solution to message
 
void fillInfo (moveit_task_constructor_msgs::SolutionInfo &info, Introspection *introspection=nullptr) const
 
bool operator< (const SolutionBase &other) const
 order solutions by their cost
 

Additional Inherited Members

- Protected Member Functions inherited from moveit::task_constructor::SolutionBase
 SolutionBase (Stage *creator=nullptr, double cost=0.0, std::string comment="")
 

Detailed Description

Sequence of individual sub solutions

A solution sequence describes a solution that is composed from several individual sub solutions that need to be chained together to yield the overall solutions.


The documentation for this class was generated from the following files: