ros2_interfaces_rolling/action_msgs/msg/
goal_status.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct GoalStatus {
5    pub goal_info: crate::action_msgs::msg::GoalInfo,
6    pub status: i8,
7}
8
9impl GoalStatus {
10    pub const STATUS_UNKNOWN: i8 = 0;
11    pub const STATUS_ACCEPTED: i8 = 1;
12    pub const STATUS_EXECUTING: i8 = 2;
13    pub const STATUS_CANCELING: i8 = 3;
14    pub const STATUS_SUCCEEDED: i8 = 4;
15    pub const STATUS_CANCELED: i8 = 5;
16    pub const STATUS_ABORTED: i8 = 6;
17}
18
19impl Default for GoalStatus {
20    fn default() -> Self {
21        GoalStatus {
22            goal_info: crate::action_msgs::msg::GoalInfo::default(),
23            status: 0,
24        }
25    }
26}
27
28impl ros2_client::Message for GoalStatus {}