MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::StopwatchEnd Class Reference

Measure the difference between an input timepoint and the current timepoint, and emit a log message which states the time elapsed. More...

#include <stopwatch_end.hpp>

Inheritance diagram for moveit_studio::behaviors::StopwatchEnd:
Collaboration diagram for moveit_studio::behaviors::StopwatchEnd:

Public Member Functions

 StopwatchEnd (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > &shared_resources)
 
 StopwatchEnd (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > &shared_resources, std::unique_ptr< ClockInterfaceBase > clock_interface)
 
BT::NodeStatus tick () override
 
- Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode >
 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::SyncActionNode >
std::shared_ptr< BehaviorContextshared_resources_
 

Detailed Description

Measure the difference between an input timepoint and the current timepoint, and emit a log message which states the time elapsed.

Data Port Name Port Type Object Type
timepoint input std::chrono::time_point<std::chrono::steady_clock>

Constructor & Destructor Documentation

◆ StopwatchEnd() [1/2]

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

◆ StopwatchEnd() [2/2]

moveit_studio::behaviors::StopwatchEnd::StopwatchEnd ( const std::string &  name,
const BT::NodeConfiguration &  config,
const std::shared_ptr< moveit_studio::behaviors::BehaviorContext > &  shared_resources,
std::unique_ptr< ClockInterfaceBase clock_interface 
)

Member Function Documentation

◆ metadata()

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

◆ providedPorts()

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

◆ tick()

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

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