RML  1.0
Robotics Mathematical Library
Loading...
Searching...
No Matches
RMLExceptions.h
Go to the documentation of this file.
1#ifndef __RMLEXCEPTIONS_H__
2#define __RMLEXCEPTIONS_H__
3
4#include <iostream>
5#include <memory>
6namespace rml {
7class ExceptionWithHow : public std::exception {
8public:
9 void SetHow(std::string how)
10 {
11 how_ = how;
12 }
13 const char* how() const noexcept
14 {
15 return how_.c_str();
16 }
17
18private:
19 std::string how_;
20};
21
22// GENERAL
24 virtual const char* what() const noexcept
25 {
26 return "[RML] Label Syntax Error! (check how())";
27 }
28};
29
30// ROBOT MODEL
35 virtual const char* what() const noexcept
36 {
37 return "[RobotModel] Error: Arm model exception (check how())";
38 }
39};
40
44class RobotModelWrongControlSizeVectorException : public std::exception {
45 virtual const char* what() const noexcept
46 {
47 return "[RobotModel] Error: wrong input size vector (check how())";
48 }
49};
50
55 virtual const char* what() const noexcept
56 {
57 return "Error: wrong frame id (check how())";
58 }
59};
60
61// ARM MODEL
65class ArmModelNotInitializedException : public std::exception {
66 virtual const char* what() const noexcept
67 {
68 return "[ArmModel] Error: setting variable on a not initialized model ";
69 }
70};
71
76 virtual const char* what() const noexcept
77 {
78 return "[ArmModel] Error: trying to access wrong joints (Check how()) ";
79 }
80};
81
85class VehicleModelNotInitializedException : public std::exception {
86 virtual const char* what() const noexcept
87 {
88 return "[VehicleModel] Error: vehicle model not initialized ";
89 }
90};
91
93
97 virtual const char* what() const noexcept
98 {
99 return "[rml::Functions] Error: wrong bell shape parameters. (Check how())";
100 }
101};
102
106//class BellShapeParameterException: public std::exception {
107// virtual const char* what() const throw()
108// {
109// return "[rml::Functions] Error: wrong bell shape parameters: ymin > ymax";
110// }
111//};
112}
113
114#endif
Exception to be thrown when setting joint variable of wrong size.
Definition RMLExceptions.h:75
Exception to be thrown when setting joint variable on a not initialized arm model.
Definition RMLExceptions.h:65
FUNCTIONS.
Definition RMLExceptions.h:96
Definition RMLExceptions.h:7
void SetHow(std::string how)
Definition RMLExceptions.h:9
const char * how() const noexcept
Definition RMLExceptions.h:13
Definition RMLExceptions.h:23
Exception to be thrown in robot model when dealing with the arm model.
Definition RMLExceptions.h:34
Exception to be thrown when trying to set a wrong control vector.
Definition RMLExceptions.h:44
Exception to be thrown when the vehicle model is not initialized.
Definition RMLExceptions.h:85
Exception to be thrown in robot model when dealing with wrong frame id's.
Definition RMLExceptions.h:54
Types and algorithms for robotic mobile manipulation.
Definition ArmModel.h:19