$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-p2os/doc_stacks/2013-03-01_16-19-23.450784/p2os/p2os_driver/msg/GripState.msg */ 00002 #ifndef P2OS_DRIVER_MESSAGE_GRIPSTATE_H 00003 #define P2OS_DRIVER_MESSAGE_GRIPSTATE_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 p2os_driver 00019 { 00020 template <class ContainerAllocator> 00021 struct GripState_ { 00022 typedef GripState_<ContainerAllocator> Type; 00023 00024 GripState_() 00025 : state(0) 00026 , dir(0) 00027 , inner_beam(false) 00028 , outer_beam(false) 00029 , left_contact(false) 00030 , right_contact(false) 00031 { 00032 } 00033 00034 GripState_(const ContainerAllocator& _alloc) 00035 : state(0) 00036 , dir(0) 00037 , inner_beam(false) 00038 , outer_beam(false) 00039 , left_contact(false) 00040 , right_contact(false) 00041 { 00042 } 00043 00044 typedef uint32_t _state_type; 00045 uint32_t state; 00046 00047 typedef int32_t _dir_type; 00048 int32_t dir; 00049 00050 typedef uint8_t _inner_beam_type; 00051 uint8_t inner_beam; 00052 00053 typedef uint8_t _outer_beam_type; 00054 uint8_t outer_beam; 00055 00056 typedef uint8_t _left_contact_type; 00057 uint8_t left_contact; 00058 00059 typedef uint8_t _right_contact_type; 00060 uint8_t right_contact; 00061 00062 00063 private: 00064 static const char* __s_getDataType_() { return "p2os_driver/GripState"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00067 00068 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00069 00070 private: 00071 static const char* __s_getMD5Sum_() { return "370eb3507be0ed1043be50a3da3a07c6"; } 00072 public: 00073 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00074 00075 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00076 00077 private: 00078 static const char* __s_getMessageDefinition_() { return "# direction -1 is inward, +1 is outward, 0 is stationary\n\ 00079 uint32 state\n\ 00080 int32 dir\n\ 00081 bool inner_beam\n\ 00082 bool outer_beam\n\ 00083 bool left_contact\n\ 00084 bool right_contact\n\ 00085 \n\ 00086 "; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00089 00090 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00091 00092 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00093 { 00094 ros::serialization::OStream stream(write_ptr, 1000000000); 00095 ros::serialization::serialize(stream, state); 00096 ros::serialization::serialize(stream, dir); 00097 ros::serialization::serialize(stream, inner_beam); 00098 ros::serialization::serialize(stream, outer_beam); 00099 ros::serialization::serialize(stream, left_contact); 00100 ros::serialization::serialize(stream, right_contact); 00101 return stream.getData(); 00102 } 00103 00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00105 { 00106 ros::serialization::IStream stream(read_ptr, 1000000000); 00107 ros::serialization::deserialize(stream, state); 00108 ros::serialization::deserialize(stream, dir); 00109 ros::serialization::deserialize(stream, inner_beam); 00110 ros::serialization::deserialize(stream, outer_beam); 00111 ros::serialization::deserialize(stream, left_contact); 00112 ros::serialization::deserialize(stream, right_contact); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(state); 00120 size += ros::serialization::serializationLength(dir); 00121 size += ros::serialization::serializationLength(inner_beam); 00122 size += ros::serialization::serializationLength(outer_beam); 00123 size += ros::serialization::serializationLength(left_contact); 00124 size += ros::serialization::serializationLength(right_contact); 00125 return size; 00126 } 00127 00128 typedef boost::shared_ptr< ::p2os_driver::GripState_<ContainerAllocator> > Ptr; 00129 typedef boost::shared_ptr< ::p2os_driver::GripState_<ContainerAllocator> const> ConstPtr; 00130 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00131 }; // struct GripState 00132 typedef ::p2os_driver::GripState_<std::allocator<void> > GripState; 00133 00134 typedef boost::shared_ptr< ::p2os_driver::GripState> GripStatePtr; 00135 typedef boost::shared_ptr< ::p2os_driver::GripState const> GripStateConstPtr; 00136 00137 00138 template<typename ContainerAllocator> 00139 std::ostream& operator<<(std::ostream& s, const ::p2os_driver::GripState_<ContainerAllocator> & v) 00140 { 00141 ros::message_operations::Printer< ::p2os_driver::GripState_<ContainerAllocator> >::stream(s, "", v); 00142 return s;} 00143 00144 } // namespace p2os_driver 00145 00146 namespace ros 00147 { 00148 namespace message_traits 00149 { 00150 template<class ContainerAllocator> struct IsMessage< ::p2os_driver::GripState_<ContainerAllocator> > : public TrueType {}; 00151 template<class ContainerAllocator> struct IsMessage< ::p2os_driver::GripState_<ContainerAllocator> const> : public TrueType {}; 00152 template<class ContainerAllocator> 00153 struct MD5Sum< ::p2os_driver::GripState_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "370eb3507be0ed1043be50a3da3a07c6"; 00157 } 00158 00159 static const char* value(const ::p2os_driver::GripState_<ContainerAllocator> &) { return value(); } 00160 static const uint64_t static_value1 = 0x370eb3507be0ed10ULL; 00161 static const uint64_t static_value2 = 0x43be50a3da3a07c6ULL; 00162 }; 00163 00164 template<class ContainerAllocator> 00165 struct DataType< ::p2os_driver::GripState_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "p2os_driver/GripState"; 00169 } 00170 00171 static const char* value(const ::p2os_driver::GripState_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct Definition< ::p2os_driver::GripState_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "# direction -1 is inward, +1 is outward, 0 is stationary\n\ 00179 uint32 state\n\ 00180 int32 dir\n\ 00181 bool inner_beam\n\ 00182 bool outer_beam\n\ 00183 bool left_contact\n\ 00184 bool right_contact\n\ 00185 \n\ 00186 "; 00187 } 00188 00189 static const char* value(const ::p2os_driver::GripState_<ContainerAllocator> &) { return value(); } 00190 }; 00191 00192 template<class ContainerAllocator> struct IsFixedSize< ::p2os_driver::GripState_<ContainerAllocator> > : public TrueType {}; 00193 } // namespace message_traits 00194 } // namespace ros 00195 00196 namespace ros 00197 { 00198 namespace serialization 00199 { 00200 00201 template<class ContainerAllocator> struct Serializer< ::p2os_driver::GripState_<ContainerAllocator> > 00202 { 00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00204 { 00205 stream.next(m.state); 00206 stream.next(m.dir); 00207 stream.next(m.inner_beam); 00208 stream.next(m.outer_beam); 00209 stream.next(m.left_contact); 00210 stream.next(m.right_contact); 00211 } 00212 00213 ROS_DECLARE_ALLINONE_SERIALIZER; 00214 }; // struct GripState_ 00215 } // namespace serialization 00216 } // namespace ros 00217 00218 namespace ros 00219 { 00220 namespace message_operations 00221 { 00222 00223 template<class ContainerAllocator> 00224 struct Printer< ::p2os_driver::GripState_<ContainerAllocator> > 00225 { 00226 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::p2os_driver::GripState_<ContainerAllocator> & v) 00227 { 00228 s << indent << "state: "; 00229 Printer<uint32_t>::stream(s, indent + " ", v.state); 00230 s << indent << "dir: "; 00231 Printer<int32_t>::stream(s, indent + " ", v.dir); 00232 s << indent << "inner_beam: "; 00233 Printer<uint8_t>::stream(s, indent + " ", v.inner_beam); 00234 s << indent << "outer_beam: "; 00235 Printer<uint8_t>::stream(s, indent + " ", v.outer_beam); 00236 s << indent << "left_contact: "; 00237 Printer<uint8_t>::stream(s, indent + " ", v.left_contact); 00238 s << indent << "right_contact: "; 00239 Printer<uint8_t>::stream(s, indent + " ", v.right_contact); 00240 } 00241 }; 00242 00243 00244 } // namespace message_operations 00245 } // namespace ros 00246 00247 #endif // P2OS_DRIVER_MESSAGE_GRIPSTATE_H 00248