ServoEnableRequest.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. // Generated by gencpp from file arduino_servo_connect/ServoEnableRequest.msg
  2. // DO NOT EDIT!
  3. #ifndef ARDUINO_SERVO_CONNECT_MESSAGE_SERVOENABLEREQUEST_H
  4. #define ARDUINO_SERVO_CONNECT_MESSAGE_SERVOENABLEREQUEST_H
  5. #include <string>
  6. #include <vector>
  7. #include <map>
  8. #include <ros/types.h>
  9. #include <ros/serialization.h>
  10. #include <ros/builtin_message_traits.h>
  11. #include <ros/message_operations.h>
  12. namespace arduino_servo_connect
  13. {
  14. template <class ContainerAllocator>
  15. struct ServoEnableRequest_
  16. {
  17. typedef ServoEnableRequest_<ContainerAllocator> Type;
  18. ServoEnableRequest_()
  19. : id(0)
  20. , flag(0) {
  21. }
  22. ServoEnableRequest_(const ContainerAllocator& _alloc)
  23. : id(0)
  24. , flag(0) {
  25. (void)_alloc;
  26. }
  27. typedef uint8_t _id_type;
  28. _id_type id;
  29. typedef uint8_t _flag_type;
  30. _flag_type flag;
  31. typedef boost::shared_ptr< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> > Ptr;
  32. typedef boost::shared_ptr< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> const> ConstPtr;
  33. }; // struct ServoEnableRequest_
  34. typedef ::arduino_servo_connect::ServoEnableRequest_<std::allocator<void> > ServoEnableRequest;
  35. typedef boost::shared_ptr< ::arduino_servo_connect::ServoEnableRequest > ServoEnableRequestPtr;
  36. typedef boost::shared_ptr< ::arduino_servo_connect::ServoEnableRequest const> ServoEnableRequestConstPtr;
  37. // constants requiring out of line definition
  38. template<typename ContainerAllocator>
  39. std::ostream& operator<<(std::ostream& s, const ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> & v)
  40. {
  41. ros::message_operations::Printer< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >::stream(s, "", v);
  42. return s;
  43. }
  44. } // namespace arduino_servo_connect
  45. namespace ros
  46. {
  47. namespace message_traits
  48. {
  49. // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
  50. // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'arduino_servo_connect': ['/home/corvin/project/face_tracker/ros_code/src/arduino_servo_connect/msg']}
  51. // !!!!!!!!!!! ['__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']
  52. template <class ContainerAllocator>
  53. struct IsFixedSize< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  54. : TrueType
  55. { };
  56. template <class ContainerAllocator>
  57. struct IsFixedSize< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> const>
  58. : TrueType
  59. { };
  60. template <class ContainerAllocator>
  61. struct IsMessage< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  62. : TrueType
  63. { };
  64. template <class ContainerAllocator>
  65. struct IsMessage< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> const>
  66. : TrueType
  67. { };
  68. template <class ContainerAllocator>
  69. struct HasHeader< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  70. : FalseType
  71. { };
  72. template <class ContainerAllocator>
  73. struct HasHeader< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> const>
  74. : FalseType
  75. { };
  76. template<class ContainerAllocator>
  77. struct MD5Sum< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  78. {
  79. static const char* value()
  80. {
  81. return "bdf13954fac71cd1ad130cc58e64cb5e";
  82. }
  83. static const char* value(const ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator>&) { return value(); }
  84. static const uint64_t static_value1 = 0xbdf13954fac71cd1ULL;
  85. static const uint64_t static_value2 = 0xad130cc58e64cb5eULL;
  86. };
  87. template<class ContainerAllocator>
  88. struct DataType< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  89. {
  90. static const char* value()
  91. {
  92. return "arduino_servo_connect/ServoEnableRequest";
  93. }
  94. static const char* value(const ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator>&) { return value(); }
  95. };
  96. template<class ContainerAllocator>
  97. struct Definition< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "uint8 id\n\
  102. uint8 flag\n\
  103. ";
  104. }
  105. static const char* value(const ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator>&) { return value(); }
  106. };
  107. } // namespace message_traits
  108. } // namespace ros
  109. namespace ros
  110. {
  111. namespace serialization
  112. {
  113. template<class ContainerAllocator> struct Serializer< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  114. {
  115. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  116. {
  117. stream.next(m.id);
  118. stream.next(m.flag);
  119. }
  120. ROS_DECLARE_ALLINONE_SERIALIZER
  121. }; // struct ServoEnableRequest_
  122. } // namespace serialization
  123. } // namespace ros
  124. namespace ros
  125. {
  126. namespace message_operations
  127. {
  128. template<class ContainerAllocator>
  129. struct Printer< ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator> >
  130. {
  131. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arduino_servo_connect::ServoEnableRequest_<ContainerAllocator>& v)
  132. {
  133. s << indent << "id: ";
  134. Printer<uint8_t>::stream(s, indent + " ", v.id);
  135. s << indent << "flag: ";
  136. Printer<uint8_t>::stream(s, indent + " ", v.flag);
  137. }
  138. };
  139. } // namespace message_operations
  140. } // namespace ros
  141. #endif // ARDUINO_SERVO_CONNECT_MESSAGE_SERVOENABLEREQUEST_H