constants.h
Go to the documentation of this file.
1 #ifndef MARTI_DBW_MSGS_DBW_CONSTANTS_H_
2 #define MARTI_DBW_MSGS_DBW_CONSTANTS_H_
3 
4 namespace marti_dbw_msgs
5 {
6 // This file includes constants used in the marti_dbw_msgs ROS
7 // messages.
8 //
9 // This approach goes against the ROS convention of defining constants
10 // in messages (Although there is precendent for this approach. e.g,
11 // sensor_msgs/image_encodings.h). By keeping constants in a separate
12 // header file, we can add new constants without changing the identity
13 // of the message (ie, the md5sum). This will hopefully reduce
14 // development friction overall by allowing us to easily add new
15 // states as necessary without having to convert old bag files.
16 
18 // Transmission ranges
19 
20 // The unknown range is only valid as feedback. It should not be sent as a control.
21 const std::string TRANS_UNKNOWN = "unknown";
22 
23 const std::string TRANS_PARK = "park";
24 const std::string TRANS_NEUTRAL = "neutral";
25 const std::string TRANS_REVERSE = "reverse";
26 const std::string TRANS_DRIVE_LOW = "drive_low";
27 const std::string TRANS_DRIVE_HIGH = "drive_high";
28 const std::string TRANS_PIVOT = "pivot";
29 
30 
31 
33 // Turn signal states
34 
35 const std::string TURN_SIGNAL_UNKNOWN = "unknown";
36 const std::string TURN_SIGNAL_OFF = "off";
37 const std::string TURN_SIGNAL_LEFT = "left";
38 const std::string TURN_SIGNAL_RIGHT = "right";
39 const std::string TURN_SIGNAL_HAZARDS = "hazards";
40 }
41 #endif // MARTI_DBW_MSGS_DBW_CONSTANTS_H_
const std::string TRANS_DRIVE_LOW
Definition: constants.h:26
const std::string TRANS_PIVOT
Definition: constants.h:28
const std::string TURN_SIGNAL_UNKNOWN
Definition: constants.h:35
const std::string TRANS_NEUTRAL
Definition: constants.h:24
const std::string TRANS_REVERSE
Definition: constants.h:25
const std::string TRANS_DRIVE_HIGH
Definition: constants.h:27
const std::string TURN_SIGNAL_RIGHT
Definition: constants.h:38
const std::string TURN_SIGNAL_HAZARDS
Definition: constants.h:39
const std::string TURN_SIGNAL_OFF
Definition: constants.h:36
const std::string TURN_SIGNAL_LEFT
Definition: constants.h:37
const std::string TRANS_UNKNOWN
Definition: constants.h:21
const std::string TRANS_PARK
Definition: constants.h:23


marti_dbw_msgs
Author(s):
autogenerated on Sun Nov 22 2020 03:34:03