MoveIt Pro Behavior Interface  5.1.1
Library for developing custom behaviors for use in MoveIt Pro
check_for_error.hpp File Reference
#include <behaviortree_cpp/basic_types.h>
#include <optional>
#include <tl_expected/expected.hpp>
#include <regex>
#include <string>
Include dependency graph for check_for_error.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 moveit_studio
 
 moveit_studio::behaviors
 
 moveit_studio::behaviors::check_for_error_utils
 

Functions

std::string moveit_studio::behaviors::check_for_error_utils::process_error (const std::string &error)
 
template<typename... Args>
std::optional< std::string > moveit_studio::behaviors::maybe_error (BT::Expected< Args >... args)
 Check if any of the provided inputs represent error states and, if so, return their error messages. More...
 
template<typename E , typename... Args>
constexpr std::optional< E > moveit_studio::behaviors::maybe_error (tl::expected< Args, E >... args)
 Tests if any of the expected args passed in has an error. More...