$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-shadow_robot/doc_stacks/2013-03-02_13-32-28.994675/shadow_robot/sr_robot_msgs/msg/ControlType.msg */ 00002 #ifndef SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H 00003 #define SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H 00004 #include <string> 00005 #include <vector> 00006 #include <map> 00007 #include <ostream> 00008 #include "ros/serialization.h" 00009 #include "ros/builtin_message_traits.h" 00010 #include "ros/message_operations.h" 00011 #include "ros/time.h" 00012 00013 #include "ros/macros.h" 00014 00015 #include "ros/assert.h" 00016 00017 00018 namespace sr_robot_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct ControlType_ { 00022 typedef ControlType_<ContainerAllocator> Type; 00023 00024 ControlType_() 00025 : control_type(0) 00026 { 00027 } 00028 00029 ControlType_(const ContainerAllocator& _alloc) 00030 : control_type(0) 00031 { 00032 } 00033 00034 typedef int16_t _control_type_type; 00035 int16_t control_type; 00036 00037 enum { PWM = 0 }; 00038 enum { FORCE = 1 }; 00039 00040 private: 00041 static const char* __s_getDataType_() { return "sr_robot_msgs/ControlType"; } 00042 public: 00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00044 00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00046 00047 private: 00048 static const char* __s_getMD5Sum_() { return "a91c98360f1bce9810ba146996feea80"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00051 00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00053 00054 private: 00055 static const char* __s_getMessageDefinition_() { return "int16 control_type\n\ 00056 \n\ 00057 int16 PWM=0\n\ 00058 int16 FORCE=1\n\ 00059 "; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00062 00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00066 { 00067 ros::serialization::OStream stream(write_ptr, 1000000000); 00068 ros::serialization::serialize(stream, control_type); 00069 return stream.getData(); 00070 } 00071 00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00073 { 00074 ros::serialization::IStream stream(read_ptr, 1000000000); 00075 ros::serialization::deserialize(stream, control_type); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint32_t serializationLength() const 00080 { 00081 uint32_t size = 0; 00082 size += ros::serialization::serializationLength(control_type); 00083 return size; 00084 } 00085 00086 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator> > Ptr; 00087 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType_<ContainerAllocator> const> ConstPtr; 00088 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00089 }; // struct ControlType 00090 typedef ::sr_robot_msgs::ControlType_<std::allocator<void> > ControlType; 00091 00092 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType> ControlTypePtr; 00093 typedef boost::shared_ptr< ::sr_robot_msgs::ControlType const> ControlTypeConstPtr; 00094 00095 00096 template<typename ContainerAllocator> 00097 std::ostream& operator<<(std::ostream& s, const ::sr_robot_msgs::ControlType_<ContainerAllocator> & v) 00098 { 00099 ros::message_operations::Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> >::stream(s, "", v); 00100 return s;} 00101 00102 } // namespace sr_robot_msgs 00103 00104 namespace ros 00105 { 00106 namespace message_traits 00107 { 00108 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {}; 00109 template<class ContainerAllocator> struct IsMessage< ::sr_robot_msgs::ControlType_<ContainerAllocator> const> : public TrueType {}; 00110 template<class ContainerAllocator> 00111 struct MD5Sum< ::sr_robot_msgs::ControlType_<ContainerAllocator> > { 00112 static const char* value() 00113 { 00114 return "a91c98360f1bce9810ba146996feea80"; 00115 } 00116 00117 static const char* value(const ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 00118 static const uint64_t static_value1 = 0xa91c98360f1bce98ULL; 00119 static const uint64_t static_value2 = 0x10ba146996feea80ULL; 00120 }; 00121 00122 template<class ContainerAllocator> 00123 struct DataType< ::sr_robot_msgs::ControlType_<ContainerAllocator> > { 00124 static const char* value() 00125 { 00126 return "sr_robot_msgs/ControlType"; 00127 } 00128 00129 static const char* value(const ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 00130 }; 00131 00132 template<class ContainerAllocator> 00133 struct Definition< ::sr_robot_msgs::ControlType_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "int16 control_type\n\ 00137 \n\ 00138 int16 PWM=0\n\ 00139 int16 FORCE=1\n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::sr_robot_msgs::ControlType_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> struct IsFixedSize< ::sr_robot_msgs::ControlType_<ContainerAllocator> > : public TrueType {}; 00147 } // namespace message_traits 00148 } // namespace ros 00149 00150 namespace ros 00151 { 00152 namespace serialization 00153 { 00154 00155 template<class ContainerAllocator> struct Serializer< ::sr_robot_msgs::ControlType_<ContainerAllocator> > 00156 { 00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00158 { 00159 stream.next(m.control_type); 00160 } 00161 00162 ROS_DECLARE_ALLINONE_SERIALIZER; 00163 }; // struct ControlType_ 00164 } // namespace serialization 00165 } // namespace ros 00166 00167 namespace ros 00168 { 00169 namespace message_operations 00170 { 00171 00172 template<class ContainerAllocator> 00173 struct Printer< ::sr_robot_msgs::ControlType_<ContainerAllocator> > 00174 { 00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sr_robot_msgs::ControlType_<ContainerAllocator> & v) 00176 { 00177 s << indent << "control_type: "; 00178 Printer<int16_t>::stream(s, indent + " ", v.control_type); 00179 } 00180 }; 00181 00182 00183 } // namespace message_operations 00184 } // namespace ros 00185 00186 #endif // SR_ROBOT_MSGS_MESSAGE_CONTROLTYPE_H 00187