Skip to main content

StopwatchEnd Class

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

Declaration

class moveit_pro::behaviors::StopwatchEnd { ... }

Included Headers

#include <stopwatch_end.hpp>

Base class

classSharedResourcesNode<BehaviorTreeNodeT>

The SharedResourcesNode class provides a BehaviorContext object when constructing a BehaviorTree.Cpp node. More...

Public Constructors Index

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

Public Member Functions Index

BT::NodeStatustick () override

Private Member Attributes Index

std::unique_ptr< ClockInterfaceBase >clock_interface_

Interface to a steady clock used to retrieve the current epoch time. More...

Public Static Functions Index

static BT::PortsListprovidedPorts ()
static BT::KeyValueVectormetadata ()

Description

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

Data Port NamePort TypeObject Type
timepointinputstd::chrono::time_point<std::chrono::steady_clock>

Definition at line 26 of file stopwatch_end.hpp.

Public Constructors

StopwatchEnd()

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

Declaration at line 29 of file stopwatch_end.hpp, definition at line 29 of file stopwatch_end.cpp.

StopwatchEnd()

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

Declaration at line 32 of file stopwatch_end.hpp, definition at line 36 of file stopwatch_end.cpp.

Public Member Functions

tick()

BT::NodeStatus moveit_pro::behaviors::StopwatchEnd::tick ()

Declaration at line 40 of file stopwatch_end.hpp, definition at line 58 of file stopwatch_end.cpp.

Private Member Attributes

clock_interface_

std::unique_ptr<ClockInterfaceBase> moveit_pro::behaviors::StopwatchEnd::clock_interface_

Interface to a steady clock used to retrieve the current epoch time.

Definition at line 44 of file stopwatch_end.hpp.

Public Static Functions

metadata()

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

Declaration at line 38 of file stopwatch_end.hpp, definition at line 53 of file stopwatch_end.cpp.

providedPorts()

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

Declaration at line 36 of file stopwatch_end.hpp, definition at line 44 of file stopwatch_end.cpp.


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


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.