moveit2
The MoveIt Motion Planning Framework for ROS 2.
Public Member Functions | List of all members
moveit::planning_pipeline_interfaces::PlanResponsesContainer Class Reference

A container to thread-safely store multiple MotionPlanResponses. More...

#include <plan_responses_container.hpp>

Public Member Functions

 PlanResponsesContainer (const size_t expected_size=0)
 Constructor. More...
 
void pushBack (const ::planning_interface::MotionPlanResponse &plan_solution)
 Thread safe method to add PlanResponsesContainer to this data structure TODO(sjahr): Refactor this method to an insert method similar to https://github.com/ompl/ompl/blob/main/src/ompl/base/src/ProblemDefinition.cpp#L54-L161. This way, it is possible to create a sorted container e.g. according to a user specified criteria. More...
 
const std::vector<::planning_interface::MotionPlanResponse > & getSolutions () const
 Get solutions. More...
 

Detailed Description

A container to thread-safely store multiple MotionPlanResponses.

Definition at line 49 of file plan_responses_container.hpp.

Constructor & Destructor Documentation

◆ PlanResponsesContainer()

moveit::planning_pipeline_interfaces::PlanResponsesContainer::PlanResponsesContainer ( const size_t  expected_size = 0)

Constructor.

Parameters
[in]expected_sizeNumber of expected solutions

Definition at line 44 of file plan_responses_container.cpp.

Member Function Documentation

◆ getSolutions()

const std::vector<::planning_interface::MotionPlanResponse > & moveit::planning_pipeline_interfaces::PlanResponsesContainer::getSolutions ( ) const

Get solutions.

Returns
Read-only access to the responses vector

Definition at line 55 of file plan_responses_container.cpp.

Here is the caller graph for this function:

◆ pushBack()

void moveit::planning_pipeline_interfaces::PlanResponsesContainer::pushBack ( const ::planning_interface::MotionPlanResponse plan_solution)

Thread safe method to add PlanResponsesContainer to this data structure TODO(sjahr): Refactor this method to an insert method similar to https://github.com/ompl/ompl/blob/main/src/ompl/base/src/ProblemDefinition.cpp#L54-L161. This way, it is possible to create a sorted container e.g. according to a user specified criteria.

Parameters
[in]plan_solutionMotionPlanResponse to push back into the vector

Definition at line 49 of file plan_responses_container.cpp.


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