Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pick_place::ManipulationPipeline Class Reference

Represent the sequence of steps that are executed for a manipulation plan. More...

#include <manipulation_pipeline.h>

Public Member Functions

ManipulationPipelineaddStage (const ManipulationStagePtr &next)
 
void clear ()
 
const std::vector< ManipulationPlanPtr > & getFailedManipulationPlans () const
 
const ManipulationStagePtr & getFirstStage () const
 
const ManipulationStagePtr & getLastStage () const
 
const std::string & getName () const
 
const std::vector< ManipulationPlanPtr > & getSuccessfulManipulationPlans () const
 
 ManipulationPipeline (const std::string &name, unsigned int nthreads)
 
void push (const ManipulationPlanPtr &grasp)
 
void reprocessLastFailure ()
 
void reset ()
 
void setEmptyQueueCallback (const boost::function< void()> &callback)
 
void setSolutionCallback (const boost::function< void()> &callback)
 
void setVerbose (bool flag)
 
void signalStop ()
 
void start ()
 
void stop ()
 
virtual ~ManipulationPipeline ()
 

Protected Member Functions

void processingThread (unsigned int index)
 

Protected Attributes

boost::function< void()> empty_queue_callback_
 
unsigned int empty_queue_threads_
 
std::vector< ManipulationPlanPtr > failed_
 
std::string name_
 
unsigned int nthreads_
 
std::vector< boost::thread * > processing_threads_
 
std::deque< ManipulationPlanPtr > queue_
 
boost::condition_variable queue_access_cond_
 
boost::mutex queue_access_lock_
 
boost::mutex result_lock_
 
boost::function< void()> solution_callback_
 
std::vector< ManipulationStagePtr > stages_
 
bool stop_processing_
 
std::vector< ManipulationPlanPtr > success_
 
bool verbose_
 

Detailed Description

Represent the sequence of steps that are executed for a manipulation plan.

Definition at line 80 of file manipulation_pipeline.h.

Constructor & Destructor Documentation

◆ ManipulationPipeline()

pick_place::ManipulationPipeline::ManipulationPipeline ( const std::string &  name,
unsigned int  nthreads 
)

Definition at line 74 of file manipulation_pipeline.cpp.

◆ ~ManipulationPipeline()

pick_place::ManipulationPipeline::~ManipulationPipeline ( )
virtual

Definition at line 80 of file manipulation_pipeline.cpp.

Member Function Documentation

◆ addStage()

ManipulationPipeline & pick_place::ManipulationPipeline::addStage ( const ManipulationStagePtr &  next)

Definition at line 85 of file manipulation_pipeline.cpp.

◆ clear()

void pick_place::ManipulationPipeline::clear ( )

Definition at line 127 of file manipulation_pipeline.cpp.

◆ getFailedManipulationPlans()

const std::vector<ManipulationPlanPtr>& pick_place::ManipulationPipeline::getFailedManipulationPlans ( ) const
inline

Definition at line 152 of file manipulation_pipeline.h.

◆ getFirstStage()

const ManipulationStagePtr & pick_place::ManipulationPipeline::getFirstStage ( ) const

Definition at line 92 of file manipulation_pipeline.cpp.

◆ getLastStage()

const ManipulationStagePtr & pick_place::ManipulationPipeline::getLastStage ( ) const

Definition at line 103 of file manipulation_pipeline.cpp.

◆ getName()

const std::string& pick_place::ManipulationPipeline::getName ( ) const
inline

Definition at line 118 of file manipulation_pipeline.h.

◆ getSuccessfulManipulationPlans()

const std::vector<ManipulationPlanPtr>& pick_place::ManipulationPipeline::getSuccessfulManipulationPlans ( ) const
inline

Definition at line 147 of file manipulation_pipeline.h.

◆ processingThread()

void pick_place::ManipulationPipeline::processingThread ( unsigned int  index)
protected

Definition at line 172 of file manipulation_pipeline.cpp.

◆ push()

void pick_place::ManipulationPipeline::push ( const ManipulationPlanPtr &  grasp)

Definition at line 240 of file manipulation_pipeline.cpp.

◆ reprocessLastFailure()

void pick_place::ManipulationPipeline::reprocessLastFailure ( )

Definition at line 249 of file manipulation_pipeline.cpp.

◆ reset()

void pick_place::ManipulationPipeline::reset ( )

Definition at line 114 of file manipulation_pipeline.cpp.

◆ setEmptyQueueCallback()

void pick_place::ManipulationPipeline::setEmptyQueueCallback ( const boost::function< void()> &  callback)
inline

Definition at line 128 of file manipulation_pipeline.h.

◆ setSolutionCallback()

void pick_place::ManipulationPipeline::setSolutionCallback ( const boost::function< void()> &  callback)
inline

Definition at line 123 of file manipulation_pipeline.h.

◆ setVerbose()

void pick_place::ManipulationPipeline::setVerbose ( bool  flag)

Definition at line 120 of file manipulation_pipeline.cpp.

◆ signalStop()

void pick_place::ManipulationPipeline::signalStop ( )

Definition at line 152 of file manipulation_pipeline.cpp.

◆ start()

void pick_place::ManipulationPipeline::start ( )

Definition at line 141 of file manipulation_pipeline.cpp.

◆ stop()

void pick_place::ManipulationPipeline::stop ( )

Definition at line 160 of file manipulation_pipeline.cpp.

Member Data Documentation

◆ empty_queue_callback_

boost::function<void()> pick_place::ManipulationPipeline::empty_queue_callback_
protected

Definition at line 177 of file manipulation_pipeline.h.

◆ empty_queue_threads_

unsigned int pick_place::ManipulationPipeline::empty_queue_threads_
protected

Definition at line 178 of file manipulation_pipeline.h.

◆ failed_

std::vector<ManipulationPlanPtr> pick_place::ManipulationPipeline::failed_
protected

Definition at line 169 of file manipulation_pipeline.h.

◆ name_

std::string pick_place::ManipulationPipeline::name_
protected

Definition at line 162 of file manipulation_pipeline.h.

◆ nthreads_

unsigned int pick_place::ManipulationPipeline::nthreads_
protected

Definition at line 163 of file manipulation_pipeline.h.

◆ processing_threads_

std::vector<boost::thread*> pick_place::ManipulationPipeline::processing_threads_
protected

Definition at line 171 of file manipulation_pipeline.h.

◆ queue_

std::deque<ManipulationPlanPtr> pick_place::ManipulationPipeline::queue_
protected

Definition at line 167 of file manipulation_pipeline.h.

◆ queue_access_cond_

boost::condition_variable pick_place::ManipulationPipeline::queue_access_cond_
protected

Definition at line 172 of file manipulation_pipeline.h.

◆ queue_access_lock_

boost::mutex pick_place::ManipulationPipeline::queue_access_lock_
protected

Definition at line 173 of file manipulation_pipeline.h.

◆ result_lock_

boost::mutex pick_place::ManipulationPipeline::result_lock_
protected

Definition at line 174 of file manipulation_pipeline.h.

◆ solution_callback_

boost::function<void()> pick_place::ManipulationPipeline::solution_callback_
protected

Definition at line 176 of file manipulation_pipeline.h.

◆ stages_

std::vector<ManipulationStagePtr> pick_place::ManipulationPipeline::stages_
protected

Definition at line 165 of file manipulation_pipeline.h.

◆ stop_processing_

bool pick_place::ManipulationPipeline::stop_processing_
protected

Definition at line 180 of file manipulation_pipeline.h.

◆ success_

std::vector<ManipulationPlanPtr> pick_place::ManipulationPipeline::success_
protected

Definition at line 168 of file manipulation_pipeline.h.

◆ verbose_

bool pick_place::ManipulationPipeline::verbose_
protected

Definition at line 164 of file manipulation_pipeline.h.


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


manipulation
Author(s): Ioan Sucan , Sachin Chitta
autogenerated on Thu Nov 21 2024 03:24:46