MoveServo.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. // Generated by gencpp from file arduino_servo_connect/MoveServo.msg
  2. // DO NOT EDIT!
  3. #ifndef ARDUINO_SERVO_CONNECT_MESSAGE_MOVESERVO_H
  4. #define ARDUINO_SERVO_CONNECT_MESSAGE_MOVESERVO_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. #include <std_msgs/Header.h>
  13. namespace arduino_servo_connect
  14. {
  15. template <class ContainerAllocator>
  16. struct MoveServo_
  17. {
  18. typedef MoveServo_<ContainerAllocator> Type;
  19. MoveServo_()
  20. : header()
  21. , servoId(0)
  22. , targetPos(0)
  23. , delay(0) {
  24. }
  25. MoveServo_(const ContainerAllocator& _alloc)
  26. : header(_alloc)
  27. , servoId(0)
  28. , targetPos(0)
  29. , delay(0) {
  30. (void)_alloc;
  31. }
  32. typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
  33. _header_type header;
  34. typedef uint8_t _servoId_type;
  35. _servoId_type servoId;
  36. typedef uint16_t _targetPos_type;
  37. _targetPos_type targetPos;
  38. typedef uint8_t _delay_type;
  39. _delay_type delay;
  40. typedef boost::shared_ptr< ::arduino_servo_connect::MoveServo_<ContainerAllocator> > Ptr;
  41. typedef boost::shared_ptr< ::arduino_servo_connect::MoveServo_<ContainerAllocator> const> ConstPtr;
  42. }; // struct MoveServo_
  43. typedef ::arduino_servo_connect::MoveServo_<std::allocator<void> > MoveServo;
  44. typedef boost::shared_ptr< ::arduino_servo_connect::MoveServo > MoveServoPtr;
  45. typedef boost::shared_ptr< ::arduino_servo_connect::MoveServo const> MoveServoConstPtr;
  46. // constants requiring out of line definition
  47. template<typename ContainerAllocator>
  48. std::ostream& operator<<(std::ostream& s, const ::arduino_servo_connect::MoveServo_<ContainerAllocator> & v)
  49. {
  50. ros::message_operations::Printer< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >::stream(s, "", v);
  51. return s;
  52. }
  53. } // namespace arduino_servo_connect
  54. namespace ros
  55. {
  56. namespace message_traits
  57. {
  58. // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
  59. // {'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']}
  60. // !!!!!!!!!!! ['__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']
  61. template <class ContainerAllocator>
  62. struct IsFixedSize< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  63. : FalseType
  64. { };
  65. template <class ContainerAllocator>
  66. struct IsFixedSize< ::arduino_servo_connect::MoveServo_<ContainerAllocator> const>
  67. : FalseType
  68. { };
  69. template <class ContainerAllocator>
  70. struct IsMessage< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  71. : TrueType
  72. { };
  73. template <class ContainerAllocator>
  74. struct IsMessage< ::arduino_servo_connect::MoveServo_<ContainerAllocator> const>
  75. : TrueType
  76. { };
  77. template <class ContainerAllocator>
  78. struct HasHeader< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  79. : TrueType
  80. { };
  81. template <class ContainerAllocator>
  82. struct HasHeader< ::arduino_servo_connect::MoveServo_<ContainerAllocator> const>
  83. : TrueType
  84. { };
  85. template<class ContainerAllocator>
  86. struct MD5Sum< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  87. {
  88. static const char* value()
  89. {
  90. return "a4ff497aa19abc6e9d982bd9133ef9b7";
  91. }
  92. static const char* value(const ::arduino_servo_connect::MoveServo_<ContainerAllocator>&) { return value(); }
  93. static const uint64_t static_value1 = 0xa4ff497aa19abc6eULL;
  94. static const uint64_t static_value2 = 0x9d982bd9133ef9b7ULL;
  95. };
  96. template<class ContainerAllocator>
  97. struct DataType< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  98. {
  99. static const char* value()
  100. {
  101. return "arduino_servo_connect/MoveServo";
  102. }
  103. static const char* value(const ::arduino_servo_connect::MoveServo_<ContainerAllocator>&) { return value(); }
  104. };
  105. template<class ContainerAllocator>
  106. struct Definition< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  107. {
  108. static const char* value()
  109. {
  110. return "# Move Servo msg, include three param: servoid, targetPos, delay\n\
  111. Header header\n\
  112. \n\
  113. uint8 servoId\n\
  114. uint16 targetPos\n\
  115. uint8 delay\n\
  116. \n\
  117. ================================================================================\n\
  118. MSG: std_msgs/Header\n\
  119. # Standard metadata for higher-level stamped data types.\n\
  120. # This is generally used to communicate timestamped data \n\
  121. # in a particular coordinate frame.\n\
  122. # \n\
  123. # sequence ID: consecutively increasing ID \n\
  124. uint32 seq\n\
  125. #Two-integer timestamp that is expressed as:\n\
  126. # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
  127. # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
  128. # time-handling sugar is provided by the client library\n\
  129. time stamp\n\
  130. #Frame this data is associated with\n\
  131. # 0: no frame\n\
  132. # 1: global frame\n\
  133. string frame_id\n\
  134. ";
  135. }
  136. static const char* value(const ::arduino_servo_connect::MoveServo_<ContainerAllocator>&) { return value(); }
  137. };
  138. } // namespace message_traits
  139. } // namespace ros
  140. namespace ros
  141. {
  142. namespace serialization
  143. {
  144. template<class ContainerAllocator> struct Serializer< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  145. {
  146. template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
  147. {
  148. stream.next(m.header);
  149. stream.next(m.servoId);
  150. stream.next(m.targetPos);
  151. stream.next(m.delay);
  152. }
  153. ROS_DECLARE_ALLINONE_SERIALIZER
  154. }; // struct MoveServo_
  155. } // namespace serialization
  156. } // namespace ros
  157. namespace ros
  158. {
  159. namespace message_operations
  160. {
  161. template<class ContainerAllocator>
  162. struct Printer< ::arduino_servo_connect::MoveServo_<ContainerAllocator> >
  163. {
  164. template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arduino_servo_connect::MoveServo_<ContainerAllocator>& v)
  165. {
  166. s << indent << "header: ";
  167. s << std::endl;
  168. Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
  169. s << indent << "servoId: ";
  170. Printer<uint8_t>::stream(s, indent + " ", v.servoId);
  171. s << indent << "targetPos: ";
  172. Printer<uint16_t>::stream(s, indent + " ", v.targetPos);
  173. s << indent << "delay: ";
  174. Printer<uint8_t>::stream(s, indent + " ", v.delay);
  175. }
  176. };
  177. } // namespace message_operations
  178. } // namespace ros
  179. #endif // ARDUINO_SERVO_CONNECT_MESSAGE_MOVESERVO_H