AutoCar  v1.0.0
armor_msg.h
1 // Generated by gencpp from file vision_unit/armor_msg.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef VISION_UNIT_MESSAGE_ARMOR_MSG_H
6 #define VISION_UNIT_MESSAGE_ARMOR_MSG_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
15 #include <ros/builtin_message_traits.h>
16 #include <ros/message_operations.h>
17 
18 
19 namespace vision_unit
20 {
21 template <class ContainerAllocator>
22 struct armor_msg_
23 {
25 
26  armor_msg_()
27  : detected(false)
28  , x(0.0)
29  , y(0.0)
30  , d(0.0) {
31  }
32  armor_msg_(const ContainerAllocator& _alloc)
33  : detected(false)
34  , x(0.0)
35  , y(0.0)
36  , d(0.0) {
37  (void)_alloc;
38  }
39 
40 
41 
42  typedef uint8_t _detected_type;
43  _detected_type detected;
44 
45  typedef double _x_type;
46  _x_type x;
47 
48  typedef double _y_type;
49  _y_type y;
50 
51  typedef double _d_type;
52  _d_type d;
53 
54 
55 
56 
57  typedef boost::shared_ptr< ::vision_unit::armor_msg_<ContainerAllocator> > Ptr;
58  typedef boost::shared_ptr< ::vision_unit::armor_msg_<ContainerAllocator> const> ConstPtr;
59 
60 }; // struct armor_msg_
61 
62 typedef ::vision_unit::armor_msg_<std::allocator<void> > armor_msg;
63 
64 typedef boost::shared_ptr< ::vision_unit::armor_msg > armor_msgPtr;
65 typedef boost::shared_ptr< ::vision_unit::armor_msg const> armor_msgConstPtr;
66 
67 // constants requiring out of line definition
68 
69 
70 
71 template<typename ContainerAllocator>
72 std::ostream& operator<<(std::ostream& s, const ::vision_unit::armor_msg_<ContainerAllocator> & v)
73 {
74 ros::message_operations::Printer< ::vision_unit::armor_msg_<ContainerAllocator> >::stream(s, "", v);
75 return s;
76 }
77 
78 } // namespace vision_unit
79 
80 namespace ros
81 {
82 namespace message_traits
83 {
84 
85 
86 
87 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
88 // {'move_base_msgs': ['/opt/ros/kinetic/share/move_base_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'actionlib_msgs': ['/opt/ros/kinetic/share/actionlib_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'vision_unit': ['/home/ubuntu/auto_car/src/vision_unit/msg']}
89 
90 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
91 
92 
93 
94 
95 template <class ContainerAllocator>
96 struct IsFixedSize< ::vision_unit::armor_msg_<ContainerAllocator> >
97  : TrueType
98  { };
99 
100 template <class ContainerAllocator>
101 struct IsFixedSize< ::vision_unit::armor_msg_<ContainerAllocator> const>
102  : TrueType
103  { };
104 
105 template <class ContainerAllocator>
106 struct IsMessage< ::vision_unit::armor_msg_<ContainerAllocator> >
107  : TrueType
108  { };
109 
110 template <class ContainerAllocator>
111 struct IsMessage< ::vision_unit::armor_msg_<ContainerAllocator> const>
112  : TrueType
113  { };
114 
115 template <class ContainerAllocator>
116 struct HasHeader< ::vision_unit::armor_msg_<ContainerAllocator> >
117  : FalseType
118  { };
119 
120 template <class ContainerAllocator>
121 struct HasHeader< ::vision_unit::armor_msg_<ContainerAllocator> const>
122  : FalseType
123  { };
124 
125 
126 template<class ContainerAllocator>
127 struct MD5Sum< ::vision_unit::armor_msg_<ContainerAllocator> >
128 {
129  static const char* value()
130  {
131  return "c146d150956b810994d3493ae1029278";
132  }
133 
134  static const char* value(const ::vision_unit::armor_msg_<ContainerAllocator>&) { return value(); }
135  static const uint64_t static_value1 = 0xc146d150956b8109ULL;
136  static const uint64_t static_value2 = 0x94d3493ae1029278ULL;
137 };
138 
139 template<class ContainerAllocator>
140 struct DataType< ::vision_unit::armor_msg_<ContainerAllocator> >
141 {
142  static const char* value()
143  {
144  return "vision_unit/armor_msg";
145  }
146 
147  static const char* value(const ::vision_unit::armor_msg_<ContainerAllocator>&) { return value(); }
148 };
149 
150 template<class ContainerAllocator>
151 struct Definition< ::vision_unit::armor_msg_<ContainerAllocator> >
152 {
153  static const char* value()
154  {
155  return "bool detected\n\
156 float64 x\n\
157 float64 y\n\
158 float64 d\n\
159 ";
160  }
161 
162  static const char* value(const ::vision_unit::armor_msg_<ContainerAllocator>&) { return value(); }
163 };
164 
165 } // namespace message_traits
166 } // namespace ros
167 
168 namespace ros
169 {
170 namespace serialization
171 {
172 
173  template<class ContainerAllocator> struct Serializer< ::vision_unit::armor_msg_<ContainerAllocator> >
174  {
175  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
176  {
177  stream.next(m.detected);
178  stream.next(m.x);
179  stream.next(m.y);
180  stream.next(m.d);
181  }
182 
183  ROS_DECLARE_ALLINONE_SERIALIZER;
184  }; // struct armor_msg_
185 
186 } // namespace serialization
187 } // namespace ros
188 
189 namespace ros
190 {
191 namespace message_operations
192 {
193 
194 template<class ContainerAllocator>
195 struct Printer< ::vision_unit::armor_msg_<ContainerAllocator> >
196 {
197  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vision_unit::armor_msg_<ContainerAllocator>& v)
198  {
199  s << indent << "detected: ";
200  Printer<uint8_t>::stream(s, indent + " ", v.detected);
201  s << indent << "x: ";
202  Printer<double>::stream(s, indent + " ", v.x);
203  s << indent << "y: ";
204  Printer<double>::stream(s, indent + " ", v.y);
205  s << indent << "d: ";
206  Printer<double>::stream(s, indent + " ", v.d);
207  }
208 };
209 
210 } // namespace message_operations
211 } // namespace ros
212 
213 #endif // VISION_UNIT_MESSAGE_ARMOR_MSG_H
Definition: AprilTagDetection.h:76
Definition: armor_msg.h:22
Definition: armor_msg.h:19