moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
moveit::core::MoveItErrorCode Class Reference

a wrapper around moveit_msgs::MoveItErrorCodes to make it easier to return an error code message from a function More...

#include <moveit_error_code.h>

Inheritance diagram for moveit::core::MoveItErrorCode:
Inheritance graph
[legend]
Collaboration diagram for moveit::core::MoveItErrorCode:
Collaboration graph
[legend]

Public Member Functions

 MoveItErrorCode (const int code=moveit_msgs::msg::MoveItErrorCodes::UNDEFINED, const std::string &error_message="", const std::string &error_source="")
 
 MoveItErrorCode (const moveit_msgs::msg::MoveItErrorCodes &code)
 
 operator bool () const
 
bool operator== (const int c) const
 
bool operator!= (const int c) const
 

Detailed Description

a wrapper around moveit_msgs::MoveItErrorCodes to make it easier to return an error code message from a function

Definition at line 47 of file moveit_error_code.h.

Constructor & Destructor Documentation

◆ MoveItErrorCode() [1/2]

moveit::core::MoveItErrorCode::MoveItErrorCode ( const int  code = moveit_msgs::msg::MoveItErrorCodes::UNDEFINED,
const std::string &  error_message = "",
const std::string &  error_source = "" 
)
inline

Definition at line 50 of file moveit_error_code.h.

◆ MoveItErrorCode() [2/2]

moveit::core::MoveItErrorCode::MoveItErrorCode ( const moveit_msgs::msg::MoveItErrorCodes &  code)
inline

Definition at line 57 of file moveit_error_code.h.

Member Function Documentation

◆ operator bool()

moveit::core::MoveItErrorCode::operator bool ( ) const
inlineexplicit

Definition at line 63 of file moveit_error_code.h.

◆ operator!=()

bool moveit::core::MoveItErrorCode::operator!= ( const int  c) const
inline

Definition at line 71 of file moveit_error_code.h.

◆ operator==()

bool moveit::core::MoveItErrorCode::operator== ( const int  c) const
inline

Definition at line 67 of file moveit_error_code.h.


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