34 #ifndef NAV_CORE2_EXCEPTIONS_H 35 #define NAV_CORE2_EXCEPTIONS_H 37 #include <nav_2d_msgs/Pose2DStamped.h> 72 inline std::string
poseToString(
const nav_2d_msgs::Pose2DStamped& pose)
74 return "(" + std::to_string(pose.pose.x) +
", " + std::to_string(pose.pose.y) +
", " + std::to_string(pose.pose.theta)
75 +
" : " + pose.header.frame_id +
")";
101 std::rethrow_exception(e_ptr);
321 #endif // NAV_CORE2_EXCEPTIONS_H LocalPlannerException(const std::string &description, int result_code=13)
CostmapException(const std::string &description, int result_code=0)
GlobalPlannerTimeoutException(const std::string &description, int result_code=12)
Thrown when one of the critics encountered a fatal error.
InvalidGoalPoseException(const nav_2d_msgs::Pose2DStamped &pose, const std::string &problem, int result_code=8)
OccupiedGoalException(const nav_2d_msgs::Pose2DStamped &pose)
NoLegalTrajectoriesException(const std::string &description, int result_code=15)
Exception thrown when the start location of the global planner is out of the expected bounds...
Exception thrown when the goal location of the global planner is out of the expected bounds...
PlannerException(const std::string &description, int result_code=3)
StartBoundsException(const std::string &description, int result_code=6)
IllegalTrajectoryException(const std::string &critic_name, const std::string &description, int result_code=14)
Exception thrown when the start location of the global planner is occupied in the costmap...
NavCore2Exception(const std::string &description, int result_code)
Parent type of all exceptions defined within.
General container for exceptions thrown from the Global Planner.
std::exception_ptr NavCore2ExceptionPtr
Exception thrown when the global planner cannot find a path from the start to the goal...
InvalidStartPoseException(const nav_2d_msgs::Pose2DStamped &pose, const std::string &problem, int result_code=5)
Thrown when all the trajectories explored are illegal.
StartBoundsException(const nav_2d_msgs::Pose2DStamped &pose)
std::string poseToString(const nav_2d_msgs::Pose2DStamped &pose)
PlannerTFException(const std::string &description, int result_code=16)
Exception thrown when there is a problem at the goal location for the global planner.
General container for exceptions thrown when the costmap thinks any movement would be unsafe...
OccupiedGoalException(const std::string &description, int result_code=10)
NoGlobalPathException(const std::string &description, int result_code=11)
Exception thrown when the global planner has spent too long looking for a path.
InvalidGoalPoseException(const std::string &description, int result_code=8)
OccupiedStartException(const std::string &description, int result_code=7)
CostmapSafetyException(const std::string &description, int result_code=1)
General container for exceptions thrown from the Local Planner.
Exception thrown when the goal location of the global planner is occupied in the costmap.
Indicates costmap is out of date because data in not up to date.
int getResultCode() const
GlobalPlannerException(const std::string &description, int result_code=4)
std::string getCriticName() const
Extensible exception class for all costmap-related problems.
Thrown when either the global or local planner cannot complete its operation due to TF errors...
CostmapDataLagException(const std::string &description, int result_code=2)
GoalBoundsException(const nav_2d_msgs::Pose2DStamped &pose)
InvalidStartPoseException(const std::string &description, int result_code=5)
Exception thrown when there is a problem at the start location for the global planner.
GoalBoundsException(const std::string &description, int result_code=9)
OccupiedStartException(const nav_2d_msgs::Pose2DStamped &pose)