moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
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. | |
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. | |
const std::vector<::planning_interface::MotionPlanResponse > & | getSolutions () const |
Get solutions. | |
A container to thread-safely store multiple MotionPlanResponses.
Definition at line 49 of file plan_responses_container.hpp.
moveit::planning_pipeline_interfaces::PlanResponsesContainer::PlanResponsesContainer | ( | const size_t | expected_size = 0 | ) |
Constructor.
[in] | expected_size | Number of expected solutions |
Definition at line 44 of file plan_responses_container.cpp.
const std::vector<::planning_interface::MotionPlanResponse > & moveit::planning_pipeline_interfaces::PlanResponsesContainer::getSolutions | ( | ) | const |
Get solutions.
Definition at line 55 of file plan_responses_container.cpp.
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.
[in] | plan_solution | MotionPlanResponse to push back into the vector |
Definition at line 49 of file plan_responses_container.cpp.