ros2_interfaces_rolling/moveit_msgs/msg/
move_it_error_codes.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MoveItErrorCodes {
5    pub val: i32,
6    pub message: ::std::string::String,
7    pub source: ::std::string::String,
8}
9
10impl MoveItErrorCodes {
11    pub const SUCCESS: i32 = 1;
12    pub const UNDEFINED: i32 = 0;
13    pub const FAILURE: i32 = 99999;
14    pub const PLANNING_FAILED: i32 = -1;
15    pub const INVALID_MOTION_PLAN: i32 = -2;
16    pub const MOTION_PLAN_INVALIDATED_BY_ENVIRONMENT_CHANGE: i32 = -3;
17    pub const CONTROL_FAILED: i32 = -4;
18    pub const UNABLE_TO_AQUIRE_SENSOR_DATA: i32 = -5;
19    pub const TIMED_OUT: i32 = -6;
20    pub const PREEMPTED: i32 = -7;
21    pub const START_STATE_IN_COLLISION: i32 = -10;
22    pub const START_STATE_VIOLATES_PATH_CONSTRAINTS: i32 = -11;
23    pub const START_STATE_INVALID: i32 = -26;
24    pub const GOAL_IN_COLLISION: i32 = -12;
25    pub const GOAL_VIOLATES_PATH_CONSTRAINTS: i32 = -13;
26    pub const GOAL_CONSTRAINTS_VIOLATED: i32 = -14;
27    pub const GOAL_STATE_INVALID: i32 = -27;
28    pub const UNRECOGNIZED_GOAL_TYPE: i32 = -28;
29    pub const INVALID_GROUP_NAME: i32 = -15;
30    pub const INVALID_GOAL_CONSTRAINTS: i32 = -16;
31    pub const INVALID_ROBOT_STATE: i32 = -17;
32    pub const INVALID_LINK_NAME: i32 = -18;
33    pub const INVALID_OBJECT_NAME: i32 = -19;
34    pub const FRAME_TRANSFORM_FAILURE: i32 = -21;
35    pub const COLLISION_CHECKING_UNAVAILABLE: i32 = -22;
36    pub const ROBOT_STATE_STALE: i32 = -23;
37    pub const SENSOR_INFO_STALE: i32 = -24;
38    pub const COMMUNICATION_FAILURE: i32 = -25;
39    pub const CRASH: i32 = -29;
40    pub const ABORT: i32 = -30;
41    pub const NO_IK_SOLUTION: i32 = -31;
42}
43
44impl Default for MoveItErrorCodes {
45    fn default() -> Self {
46        MoveItErrorCodes {
47            val: 0,
48            message: ::std::string::String::new(),
49            source: ::std::string::String::new(),
50        }
51    }
52}
53
54impl ros2_client::Message for MoveItErrorCodes {}