Classes | Namespaces | Typedefs | Enumerations | Functions
basic_types.h File Reference
#include <iostream>
#include <vector>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <typeinfo>
#include <functional>
#include <chrono>
#include <memory>
#include "behaviortree_cpp/utils/string_view.hpp"
#include "behaviortree_cpp/utils/safe_any.hpp"
#include "behaviortree_cpp/exceptions.h"
#include "behaviortree_cpp/utils/expected.hpp"
#include "behaviortree_cpp/utils/make_unique.hpp"
Include dependency graph for basic_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BT::has_static_method_providedPorts< T, typename >
struct  BT::has_static_method_providedPorts< T, typename std::enable_if< std::is_same< decltype(T::providedPorts()), PortsList >::value >::type >
class  BT::PortInfo

Namespaces

namespace  BT

Typedefs

typedef
std::chrono::high_resolution_clock::duration 
BT::Duration
typedef std::unordered_map
< std::string, PortInfo > 
BT::PortsList
typedef std::function< Any(StringView)> BT::StringConverter
typedef std::unordered_map
< const std::type_info
*, StringConverter > 
BT::StringConvertersMap
typedef nonstd::string_view BT::StringView
typedef
std::chrono::high_resolution_clock::time_point 
BT::TimePoint

Enumerations

enum  BT::NodeStatus { BT::IDLE = 0, BT::RUNNING, BT::SUCCESS, BT::FAILURE }
enum  BT::NodeType {
  BT::UNDEFINED = 0, BT::ACTION, BT::CONDITION, BT::CONTROL,
  BT::DECORATOR, BT::SUBTREE
}
 Enumerates the possible types of nodes. More...
enum  BT::PortDirection { BT::INPUT, BT::OUTPUT, BT::INOUT }

Functions

template<typename T = void>
std::pair< std::string, PortInfo > BT::BidirectionalPort (StringView name, StringView description={})
template<typename T = void>
std::pair< std::string, PortInfo > BT::BidirectionalPort (StringView name, const T &default_value, StringView description)
template<typename T >
BT::convertFromString (StringView)
template<>
bool BT::convertFromString< bool > (StringView str)
template<>
const char * BT::convertFromString< const char * > (StringView str)
template<>
double BT::convertFromString< double > (StringView str)
template<>
int BT::convertFromString< int > (StringView str)
template<>
NodeStatus BT::convertFromString< NodeStatus > (StringView str)
template<>
NodeType BT::convertFromString< NodeType > (StringView str)
template<>
PortDirection BT::convertFromString< PortDirection > (StringView str)
template<>
std::string BT::convertFromString< std::string > (StringView str)
template<>
std::vector< double > BT::convertFromString< std::vector< double > > (StringView str)
template<>
std::vector< int > BT::convertFromString< std::vector< int > > (StringView str)
template<>
unsigned BT::convertFromString< unsigned > (StringView str)
template<typename T = void>
std::pair< std::string, PortInfo > BT::CreatePort (PortDirection direction, StringView name, StringView description={})
template<typename T >
StringConverter BT::GetAnyFromStringFunctor ()
template<>
StringConverter BT::GetAnyFromStringFunctor< void > ()
template<typename T >
PortsList BT::getProvidedPorts (enable_if< has_static_method_providedPorts< T > >=nullptr)
template<typename T >
PortsList BT::getProvidedPorts (enable_if_not< has_static_method_providedPorts< T > >=nullptr)
template<typename T = void>
std::pair< std::string, PortInfo > BT::InputPort (StringView name, StringView description={})
template<typename T = void>
std::pair< std::string, PortInfo > BT::InputPort (StringView name, const T &default_value, StringView description)
std::ostream & BT::operator<< (std::ostream &os, const BT::NodeStatus &status)
std::ostream & BT::operator<< (std::ostream &os, const BT::NodeType &type)
std::ostream & BT::operator<< (std::ostream &os, const BT::PortDirection &type)
template<typename T = void>
std::pair< std::string, PortInfo > BT::OutputPort (StringView name, StringView description={})
template<typename T = void>
std::pair< std::string, PortInfo > BT::OutputPort (StringView name, const T &default_value, StringView description)
std::vector< StringView > BT::splitString (const StringView &strToSplit, char delimeter)
template<typename T >
std::string BT::toStr (T value)
std::string BT::toStr (std::string value)
std::string BT::toStr (BT::NodeStatus status, bool colored)
 toStr converts NodeStatus to string. Optionally colored.
template<>
std::string BT::toStr< BT::NodeStatus > (BT::NodeStatus status)
template<>
std::string BT::toStr< BT::NodeType > (BT::NodeType type)
 toStr converts NodeType to string.
template<>
std::string BT::toStr< BT::PortDirection > (BT::PortDirection direction)


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 20:17:15