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

Loads an image from a file and writes it to an output data port. More...

#include <load_image_from_file.hpp>

Inheritance diagram for moveit_studio::behaviors::LoadImageFromFile:
Collaboration diagram for moveit_studio::behaviors::LoadImageFromFile:

Public Member Functions

 LoadImageFromFile (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 
BT::NodeStatus onStart () override
 
BT::NodeStatus onRunning () override
 
void onHalted () override
 
- Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::StatefulActionNode >
 SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. More...
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::StatefulActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

Loads an image from a file and writes it to an output data port.

Data Port Name Port Type Object Type
file_path input std::string
frame_id input std::string
image output sensor_msgs::msg::Image

Constructor & Destructor Documentation

◆ LoadImageFromFile()

moveit_studio::behaviors::LoadImageFromFile::LoadImageFromFile ( const std::string &  name,
const BT::NodeConfiguration &  config,
const std::shared_ptr< BehaviorContext > &  shared_resources 
)

Member Function Documentation

◆ metadata()

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

◆ onHalted()

void moveit_studio::behaviors::LoadImageFromFile::onHalted ( )
override

◆ onRunning()

BT::NodeStatus moveit_studio::behaviors::LoadImageFromFile::onRunning ( )
override

◆ onStart()

BT::NodeStatus moveit_studio::behaviors::LoadImageFromFile::onStart ( )
override

◆ providedPorts()

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

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