MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
|
Pops the MTC solution queue to get the next solution to be processed. More...
#include <wait_and_pop_solution_queue.hpp>
Public Member Functions | |
WaitAndPopSolutionQueue (const std::string &name, const BT::NodeConfiguration &config) | |
BT::NodeStatus | tick () override |
Read queue from the blackboard, check whether or not it is empty and pop the next solution if it is not empty. The solution will be written to the BT output port. | |
void | halt () override |
Static Public Member Functions | |
static BT::PortsList | providedPorts () |
static BT::KeyValueVector | metadata () |
Pops the MTC solution queue to get the next solution to be processed.
The queue will be modified in-place. If the queue is uninitialized or empty, this behavior will return RUNNING. An exception is if the value of the fail_if_queue_empty port is True, in which case it will return FAILURE.
Data Port Name | Port Type | Object Type |
---|---|---|
solution queue | Input | std::shared_ptr<std::queue<moveit_task_constructor_msgs::msg::Solution>> |
solution | Output | moveit_task_constructor_msgs::msg::Solution |
fail_if_queue_empty | Input | bool |
moveit_studio::behaviors::WaitAndPopSolutionQueue::WaitAndPopSolutionQueue | ( | const std::string & | name, |
const BT::NodeConfiguration & | config | ||
) |
|
override |
|
static |
|
static |
|
override |
Read queue from the blackboard, check whether or not it is empty and pop the next solution if it is not empty. The solution will be written to the BT output port.