MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::PushToSolutionQueue Class Referencefinal

Push a new MTC solution to the solution queue. More...

#include <push_to_solution_queue.hpp>

Inheritance diagram for moveit_studio::behaviors::PushToSolutionQueue:
Collaboration diagram for moveit_studio::behaviors::PushToSolutionQueue:

Public Member Functions

 PushToSolutionQueue (const std::string &name, const BT::NodeConfiguration &config)
 
BT::NodeStatus tick () override
 Modifies the solution queue in-place by pushing a solution onto it. More...
 

Static Public Member Functions

static BT::PortsList providedPorts ()
 
static BT::KeyValueVector metadata ()
 

Detailed Description

Push a new MTC solution to the solution queue.

Data Port Name Port Type Object Type
solution Input moveit_task_constructor_msgs::msg::Solution
solution queue Input/Output std::queue<moveit_task_constructor_msgs::msg::Solution>

Constructor & Destructor Documentation

◆ PushToSolutionQueue()

moveit_studio::behaviors::PushToSolutionQueue::PushToSolutionQueue ( const std::string &  name,
const BT::NodeConfiguration &  config 
)

Member Function Documentation

◆ metadata()

BT::KeyValueVector moveit_studio::behaviors::PushToSolutionQueue::metadata ( )
static

◆ providedPorts()

BT::PortsList moveit_studio::behaviors::PushToSolutionQueue::providedPorts ( )
static

◆ tick()

BT::NodeStatus moveit_studio::behaviors::PushToSolutionQueue::tick ( )
override

Modifies the solution queue in-place by pushing a solution onto it.

If the solution queue has not been initialized on the BT blackboard before tick() is called, a new queue will be created and set to the blackboard.

Returns
BT::NodeStatus::SUCCESS if successful.
BT::NodeStatus::FAILURE if the solution could not be retrieved from an input data port.
BT::NodeStatus::FAILURE if the solution queue was not initialized and a new queue could not be set to the blackboard.

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