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

Check if the robot's current state satisfies a visibility kinematic constraint relative to an object. More...

#include <is_constraint_satisfied.hpp>

Inheritance diagram for moveit_studio::behaviors::IsConstraintSatisfied:
Collaboration diagram for moveit_studio::behaviors::IsConstraintSatisfied:

Public Member Functions

 IsConstraintSatisfied (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources)
 Constructor for the IsConstraintSatisfied behavior. More...
 
BT::NodeStatus onStart () override
 Starts the process that evaluates the constraint. More...
 
BT::NodeStatus onRunning () override
 Check if the async process has finished, and if so get its result. More...
 
void onHalted () override
 Wait for the process_status_ future to be set to make sure the async process has finished when the Behavior halts. More...
 
- 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 ()
 Returns list of ports for this behavior. More...
 
static BT::KeyValueVector metadata ()
 

Additional Inherited Members

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

Detailed Description

Check if the robot's current state satisfies a visibility kinematic constraint relative to an object.

Constructor & Destructor Documentation

◆ IsConstraintSatisfied()

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

Constructor for the IsConstraintSatisfied behavior.

Parameters
nameSee SharedResourcesNode
configSee SharedResourcesNode
shared_resourcesSee SharedResourcesNode

Member Function Documentation

◆ metadata()

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

◆ onHalted()

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

Wait for the process_status_ future to be set to make sure the async process has finished when the Behavior halts.

◆ onRunning()

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

Check if the async process has finished, and if so get its result.

Returns
BT::NodeStatus The status of the Node

◆ onStart()

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

Starts the process that evaluates the constraint.

Returns
BT::NodeStatus The status of the Node

◆ providedPorts()

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

Returns list of ports for this behavior.

Returns
BT::PortsList The list of I/O Ports

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