4 #ifndef PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/unknown_field_set.h> 27 #include "dccl/option_extensions.pb.h" 28 #include <boost/units/quantity.hpp> 29 #include <boost/units/absolute.hpp> 30 #include <boost/units/dimensionless_type.hpp> 31 #include <boost/units/make_scaled_unit.hpp> 33 #include <boost/units/systems/angle/degrees.hpp> 35 #include <boost/units/systems/si.hpp> 43 void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
44 void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
45 void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
63 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
64 return _unknown_fields_;
67 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
68 return &_unknown_fields_;
71 static const ::google::protobuf::Descriptor* descriptor();
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
92 int GetCachedSize()
const {
return _cached_size_; }
96 void SetCachedSize(
int size)
const;
98 ::google::protobuf::Metadata GetMetadata()
const;
105 inline bool has_time()
const;
106 inline void clear_time();
107 static const int kTimeFieldNumber = 1;
108 inline double time()
const;
109 inline void set_time(
double value);
112 inline bool has_heading()
const;
113 inline void clear_heading();
114 static const int kHeadingFieldNumber = 2;
115 inline double heading()
const;
116 inline void set_heading(
double value);
119 inline bool has_speed()
const;
120 inline void clear_speed();
121 static const int kSpeedFieldNumber = 3;
122 inline double speed()
const;
123 inline void set_speed(
double value);
126 inline bool has_depth()
const;
127 inline void clear_depth();
128 static const int kDepthFieldNumber = 4;
129 inline double depth()
const;
130 inline void set_depth(
double value);
133 inline bool has_pitch()
const;
134 inline void clear_pitch();
135 static const int kPitchFieldNumber = 5;
136 inline double pitch()
const;
137 inline void set_pitch(
double value);
140 inline bool has_roll()
const;
141 inline void clear_roll();
142 static const int kRollFieldNumber = 6;
143 inline double roll()
const;
144 inline void set_roll(
double value);
147 inline bool has_z_rate()
const;
148 inline void clear_z_rate();
149 static const int kZRateFieldNumber = 7;
150 inline double z_rate()
const;
151 inline void set_z_rate(
double value);
154 inline bool has_altitude()
const;
155 inline void clear_altitude();
156 static const int kAltitudeFieldNumber = 8;
157 inline double altitude()
const;
158 inline void set_altitude(
double value);
161 typedef boost::units::time_dimension time_dimension;
163 typedef boost::units::unit<time_dimension,boost::units::si::system> time_unit;
165 template<
typename Quantity >
166 void set_time_with_units(Quantity value_w_units)
167 { set_time(boost::units::quantity<time_unit,double >(value_w_units).value() ); };
169 template<
typename Quantity >
170 Quantity time_with_units()
const 171 {
return Quantity(time() * time_unit()); };
173 boost::units::quantity< time_unit,double > time_with_units()
const 174 {
return time_with_units<boost::units::quantity< time_unit,double > >(); };
176 typedef boost::units::plane_angle_dimension heading_dimension;
178 typedef boost::units::unit<heading_dimension,boost::units::degree::system> heading_unit;
180 template<
typename Quantity >
181 void set_heading_with_units(Quantity value_w_units)
182 { set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
184 template<
typename Quantity >
185 Quantity heading_with_units()
const 186 {
return Quantity(heading() * heading_unit()); };
188 boost::units::quantity< heading_unit,double > heading_with_units()
const 189 {
return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
191 typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type speed_dimension;
193 typedef boost::units::unit<speed_dimension,boost::units::si::system> speed_unit;
195 template<
typename Quantity >
196 void set_speed_with_units(Quantity value_w_units)
197 { set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
199 template<
typename Quantity >
200 Quantity speed_with_units()
const 201 {
return Quantity(speed() * speed_unit()); };
203 boost::units::quantity< speed_unit,double > speed_with_units()
const 204 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
206 typedef boost::units::length_dimension depth_dimension;
208 typedef boost::units::unit<depth_dimension,boost::units::si::system> depth_unit;
210 template<
typename Quantity >
211 void set_depth_with_units(Quantity value_w_units)
212 { set_depth(boost::units::quantity<depth_unit,double >(value_w_units).value() ); };
214 template<
typename Quantity >
215 Quantity depth_with_units()
const 216 {
return Quantity(depth() * depth_unit()); };
218 boost::units::quantity< depth_unit,double > depth_with_units()
const 219 {
return depth_with_units<boost::units::quantity< depth_unit,double > >(); };
221 typedef boost::units::plane_angle_dimension pitch_dimension;
223 typedef boost::units::unit<pitch_dimension,boost::units::degree::system> pitch_unit;
225 template<
typename Quantity >
226 void set_pitch_with_units(Quantity value_w_units)
227 { set_pitch(boost::units::quantity<pitch_unit,double >(value_w_units).value() ); };
229 template<
typename Quantity >
230 Quantity pitch_with_units()
const 231 {
return Quantity(pitch() * pitch_unit()); };
233 boost::units::quantity< pitch_unit,double > pitch_with_units()
const 234 {
return pitch_with_units<boost::units::quantity< pitch_unit,double > >(); };
236 typedef boost::units::plane_angle_dimension roll_dimension;
238 typedef boost::units::unit<roll_dimension,boost::units::degree::system> roll_unit;
240 template<
typename Quantity >
241 void set_roll_with_units(Quantity value_w_units)
242 { set_roll(boost::units::quantity<roll_unit,double >(value_w_units).value() ); };
244 template<
typename Quantity >
245 Quantity roll_with_units()
const 246 {
return Quantity(roll() * roll_unit()); };
248 boost::units::quantity< roll_unit,double > roll_with_units()
const 249 {
return roll_with_units<boost::units::quantity< roll_unit,double > >(); };
251 typedef boost::mpl::divides<boost::units::length_dimension,boost::units::time_dimension>::type z_rate_dimension;
253 typedef boost::units::unit<z_rate_dimension,boost::units::si::system> z_rate_unit;
255 template<
typename Quantity >
256 void set_z_rate_with_units(Quantity value_w_units)
257 { set_z_rate(boost::units::quantity<z_rate_unit,double >(value_w_units).value() ); };
259 template<
typename Quantity >
260 Quantity z_rate_with_units()
const 261 {
return Quantity(z_rate() * z_rate_unit()); };
263 boost::units::quantity< z_rate_unit,double > z_rate_with_units()
const 264 {
return z_rate_with_units<boost::units::quantity< z_rate_unit,double > >(); };
266 typedef boost::units::length_dimension altitude_dimension;
268 typedef boost::units::unit<altitude_dimension,boost::units::si::system> altitude_unit;
270 template<
typename Quantity >
271 void set_altitude_with_units(Quantity value_w_units)
272 { set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
274 template<
typename Quantity >
275 Quantity altitude_with_units()
const 276 {
return Quantity(altitude() * altitude_unit()); };
278 boost::units::quantity< altitude_unit,double > altitude_with_units()
const 279 {
return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
283 inline void set_has_time();
284 inline void clear_has_time();
285 inline void set_has_heading();
286 inline void clear_has_heading();
287 inline void set_has_speed();
288 inline void clear_has_speed();
289 inline void set_has_depth();
290 inline void clear_has_depth();
291 inline void set_has_pitch();
292 inline void clear_has_pitch();
293 inline void set_has_roll();
294 inline void clear_has_roll();
295 inline void set_has_z_rate();
296 inline void clear_has_z_rate();
297 inline void set_has_altitude();
298 inline void clear_has_altitude();
300 ::google::protobuf::internal::ExtensionSet _extensions_;
302 ::google::protobuf::UnknownFieldSet _unknown_fields_;
304 ::google::protobuf::uint32 _has_bits_[1];
305 mutable int _cached_size_;
314 friend void protobuf_AddDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
315 friend void protobuf_AssignDesc_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
316 friend void protobuf_ShutdownFile_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto();
318 void InitAsDefaultInstance();
329 inline bool DesiredCourse::has_time()
const {
330 return (_has_bits_[0] & 0x00000001u) != 0;
332 inline void DesiredCourse::set_has_time() {
333 _has_bits_[0] |= 0x00000001u;
335 inline void DesiredCourse::clear_has_time() {
336 _has_bits_[0] &= ~0x00000001u;
338 inline void DesiredCourse::clear_time() {
342 inline double DesiredCourse::time()
const {
346 inline void DesiredCourse::set_time(
double value) {
353 inline bool DesiredCourse::has_heading()
const {
354 return (_has_bits_[0] & 0x00000002u) != 0;
356 inline void DesiredCourse::set_has_heading() {
357 _has_bits_[0] |= 0x00000002u;
359 inline void DesiredCourse::clear_has_heading() {
360 _has_bits_[0] &= ~0x00000002u;
362 inline void DesiredCourse::clear_heading() {
366 inline double DesiredCourse::heading()
const {
370 inline void DesiredCourse::set_heading(
double value) {
377 inline bool DesiredCourse::has_speed()
const {
378 return (_has_bits_[0] & 0x00000004u) != 0;
380 inline void DesiredCourse::set_has_speed() {
381 _has_bits_[0] |= 0x00000004u;
383 inline void DesiredCourse::clear_has_speed() {
384 _has_bits_[0] &= ~0x00000004u;
386 inline void DesiredCourse::clear_speed() {
390 inline double DesiredCourse::speed()
const {
394 inline void DesiredCourse::set_speed(
double value) {
401 inline bool DesiredCourse::has_depth()
const {
402 return (_has_bits_[0] & 0x00000008u) != 0;
404 inline void DesiredCourse::set_has_depth() {
405 _has_bits_[0] |= 0x00000008u;
407 inline void DesiredCourse::clear_has_depth() {
408 _has_bits_[0] &= ~0x00000008u;
410 inline void DesiredCourse::clear_depth() {
414 inline double DesiredCourse::depth()
const {
418 inline void DesiredCourse::set_depth(
double value) {
425 inline bool DesiredCourse::has_pitch()
const {
426 return (_has_bits_[0] & 0x00000010u) != 0;
428 inline void DesiredCourse::set_has_pitch() {
429 _has_bits_[0] |= 0x00000010u;
431 inline void DesiredCourse::clear_has_pitch() {
432 _has_bits_[0] &= ~0x00000010u;
434 inline void DesiredCourse::clear_pitch() {
438 inline double DesiredCourse::pitch()
const {
442 inline void DesiredCourse::set_pitch(
double value) {
449 inline bool DesiredCourse::has_roll()
const {
450 return (_has_bits_[0] & 0x00000020u) != 0;
452 inline void DesiredCourse::set_has_roll() {
453 _has_bits_[0] |= 0x00000020u;
455 inline void DesiredCourse::clear_has_roll() {
456 _has_bits_[0] &= ~0x00000020u;
458 inline void DesiredCourse::clear_roll() {
462 inline double DesiredCourse::roll()
const {
466 inline void DesiredCourse::set_roll(
double value) {
473 inline bool DesiredCourse::has_z_rate()
const {
474 return (_has_bits_[0] & 0x00000040u) != 0;
476 inline void DesiredCourse::set_has_z_rate() {
477 _has_bits_[0] |= 0x00000040u;
479 inline void DesiredCourse::clear_has_z_rate() {
480 _has_bits_[0] &= ~0x00000040u;
482 inline void DesiredCourse::clear_z_rate() {
486 inline double DesiredCourse::z_rate()
const {
490 inline void DesiredCourse::set_z_rate(
double value) {
497 inline bool DesiredCourse::has_altitude()
const {
498 return (_has_bits_[0] & 0x00000080u) != 0;
500 inline void DesiredCourse::set_has_altitude() {
501 _has_bits_[0] |= 0x00000080u;
503 inline void DesiredCourse::clear_has_altitude() {
504 _has_bits_[0] &= ~0x00000080u;
506 inline void DesiredCourse::clear_altitude() {
508 clear_has_altitude();
510 inline double DesiredCourse::altitude()
const {
514 inline void DesiredCourse::set_altitude(
double value) {
538 #endif // PROTOBUF_goby_2fmoos_2fprotobuf_2fdesired_5fcourse_2eproto__INCLUDED
The global namespace for the Goby project.