$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_grasping_msgs/msg/ReactiveGraspingResult.msg */ 00002 #ifndef SRS_ASSISTED_GRASPING_MSGS_MESSAGE_REACTIVEGRASPINGRESULT_H 00003 #define SRS_ASSISTED_GRASPING_MSGS_MESSAGE_REACTIVEGRASPINGRESULT_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 #include "std_msgs/Float32MultiArray.h" 00018 #include "std_msgs/Int16MultiArray.h" 00019 #include "std_msgs/Float32MultiArray.h" 00020 00021 namespace srs_assisted_grasping_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct ReactiveGraspingResult_ { 00025 typedef ReactiveGraspingResult_<ContainerAllocator> Type; 00026 00027 ReactiveGraspingResult_() 00028 : actual_joint_values() 00029 , actual_forces() 00030 , time_to_stop() 00031 { 00032 } 00033 00034 ReactiveGraspingResult_(const ContainerAllocator& _alloc) 00035 : actual_joint_values(_alloc) 00036 , actual_forces(_alloc) 00037 , time_to_stop(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Float32MultiArray_<ContainerAllocator> _actual_joint_values_type; 00042 ::std_msgs::Float32MultiArray_<ContainerAllocator> actual_joint_values; 00043 00044 typedef ::std_msgs::Int16MultiArray_<ContainerAllocator> _actual_forces_type; 00045 ::std_msgs::Int16MultiArray_<ContainerAllocator> actual_forces; 00046 00047 typedef ::std_msgs::Float32MultiArray_<ContainerAllocator> _time_to_stop_type; 00048 ::std_msgs::Float32MultiArray_<ContainerAllocator> time_to_stop; 00049 00050 00051 private: 00052 static const char* __s_getDataType_() { return "srs_assisted_grasping_msgs/ReactiveGraspingResult"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00055 00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00057 00058 private: 00059 static const char* __s_getMD5Sum_() { return "f230ec55570635c19c49d69cf7ccb233"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00062 00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00064 00065 private: 00066 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00067 # RESULT\n\ 00068 std_msgs/Float32MultiArray actual_joint_values # n\n\ 00069 std_msgs/Int16MultiArray actual_forces # m\n\ 00070 std_msgs/Float32MultiArray time_to_stop # n\n\ 00071 \n\ 00072 ================================================================================\n\ 00073 MSG: std_msgs/Float32MultiArray\n\ 00074 # Please look at the MultiArrayLayout message definition for\n\ 00075 # documentation on all multiarrays.\n\ 00076 \n\ 00077 MultiArrayLayout layout # specification of data layout\n\ 00078 float32[] data # array of data\n\ 00079 \n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: std_msgs/MultiArrayLayout\n\ 00083 # The multiarray declares a generic multi-dimensional array of a\n\ 00084 # particular data type. Dimensions are ordered from outer most\n\ 00085 # to inner most.\n\ 00086 \n\ 00087 MultiArrayDimension[] dim # Array of dimension properties\n\ 00088 uint32 data_offset # padding bytes at front of data\n\ 00089 \n\ 00090 # Accessors should ALWAYS be written in terms of dimension stride\n\ 00091 # and specified outer-most dimension first.\n\ 00092 # \n\ 00093 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\ 00094 #\n\ 00095 # A standard, 3-channel 640x480 image with interleaved color channels\n\ 00096 # would be specified as:\n\ 00097 #\n\ 00098 # dim[0].label = \"height\"\n\ 00099 # dim[0].size = 480\n\ 00100 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\ 00101 # dim[1].label = \"width\"\n\ 00102 # dim[1].size = 640\n\ 00103 # dim[1].stride = 3*640 = 1920\n\ 00104 # dim[2].label = \"channel\"\n\ 00105 # dim[2].size = 3\n\ 00106 # dim[2].stride = 3\n\ 00107 #\n\ 00108 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\ 00109 ================================================================================\n\ 00110 MSG: std_msgs/MultiArrayDimension\n\ 00111 string label # label of given dimension\n\ 00112 uint32 size # size of given dimension (in type units)\n\ 00113 uint32 stride # stride of given dimension\n\ 00114 ================================================================================\n\ 00115 MSG: std_msgs/Int16MultiArray\n\ 00116 # Please look at the MultiArrayLayout message definition for\n\ 00117 # documentation on all multiarrays.\n\ 00118 \n\ 00119 MultiArrayLayout layout # specification of data layout\n\ 00120 int16[] data # array of data\n\ 00121 \n\ 00122 \n\ 00123 "; } 00124 public: 00125 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00126 00127 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00130 { 00131 ros::serialization::OStream stream(write_ptr, 1000000000); 00132 ros::serialization::serialize(stream, actual_joint_values); 00133 ros::serialization::serialize(stream, actual_forces); 00134 ros::serialization::serialize(stream, time_to_stop); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00139 { 00140 ros::serialization::IStream stream(read_ptr, 1000000000); 00141 ros::serialization::deserialize(stream, actual_joint_values); 00142 ros::serialization::deserialize(stream, actual_forces); 00143 ros::serialization::deserialize(stream, time_to_stop); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(actual_joint_values); 00151 size += ros::serialization::serializationLength(actual_forces); 00152 size += ros::serialization::serializationLength(time_to_stop); 00153 return size; 00154 } 00155 00156 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > Ptr; 00157 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> const> ConstPtr; 00158 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00159 }; // struct ReactiveGraspingResult 00160 typedef ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<std::allocator<void> > ReactiveGraspingResult; 00161 00162 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ReactiveGraspingResult> ReactiveGraspingResultPtr; 00163 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ReactiveGraspingResult const> ReactiveGraspingResultConstPtr; 00164 00165 00166 template<typename ContainerAllocator> 00167 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> & v) 00168 { 00169 ros::message_operations::Printer< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> >::stream(s, "", v); 00170 return s;} 00171 00172 } // namespace srs_assisted_grasping_msgs 00173 00174 namespace ros 00175 { 00176 namespace message_traits 00177 { 00178 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > : public TrueType {}; 00179 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> const> : public TrueType {}; 00180 template<class ContainerAllocator> 00181 struct MD5Sum< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "f230ec55570635c19c49d69cf7ccb233"; 00185 } 00186 00187 static const char* value(const ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> &) { return value(); } 00188 static const uint64_t static_value1 = 0xf230ec55570635c1ULL; 00189 static const uint64_t static_value2 = 0x9c49d69cf7ccb233ULL; 00190 }; 00191 00192 template<class ContainerAllocator> 00193 struct DataType< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > { 00194 static const char* value() 00195 { 00196 return "srs_assisted_grasping_msgs/ReactiveGraspingResult"; 00197 } 00198 00199 static const char* value(const ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> &) { return value(); } 00200 }; 00201 00202 template<class ContainerAllocator> 00203 struct Definition< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > { 00204 static const char* value() 00205 { 00206 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00207 # RESULT\n\ 00208 std_msgs/Float32MultiArray actual_joint_values # n\n\ 00209 std_msgs/Int16MultiArray actual_forces # m\n\ 00210 std_msgs/Float32MultiArray time_to_stop # n\n\ 00211 \n\ 00212 ================================================================================\n\ 00213 MSG: std_msgs/Float32MultiArray\n\ 00214 # Please look at the MultiArrayLayout message definition for\n\ 00215 # documentation on all multiarrays.\n\ 00216 \n\ 00217 MultiArrayLayout layout # specification of data layout\n\ 00218 float32[] data # array of data\n\ 00219 \n\ 00220 \n\ 00221 ================================================================================\n\ 00222 MSG: std_msgs/MultiArrayLayout\n\ 00223 # The multiarray declares a generic multi-dimensional array of a\n\ 00224 # particular data type. Dimensions are ordered from outer most\n\ 00225 # to inner most.\n\ 00226 \n\ 00227 MultiArrayDimension[] dim # Array of dimension properties\n\ 00228 uint32 data_offset # padding bytes at front of data\n\ 00229 \n\ 00230 # Accessors should ALWAYS be written in terms of dimension stride\n\ 00231 # and specified outer-most dimension first.\n\ 00232 # \n\ 00233 # multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]\n\ 00234 #\n\ 00235 # A standard, 3-channel 640x480 image with interleaved color channels\n\ 00236 # would be specified as:\n\ 00237 #\n\ 00238 # dim[0].label = \"height\"\n\ 00239 # dim[0].size = 480\n\ 00240 # dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)\n\ 00241 # dim[1].label = \"width\"\n\ 00242 # dim[1].size = 640\n\ 00243 # dim[1].stride = 3*640 = 1920\n\ 00244 # dim[2].label = \"channel\"\n\ 00245 # dim[2].size = 3\n\ 00246 # dim[2].stride = 3\n\ 00247 #\n\ 00248 # multiarray(i,j,k) refers to the ith row, jth column, and kth channel.\n\ 00249 ================================================================================\n\ 00250 MSG: std_msgs/MultiArrayDimension\n\ 00251 string label # label of given dimension\n\ 00252 uint32 size # size of given dimension (in type units)\n\ 00253 uint32 stride # stride of given dimension\n\ 00254 ================================================================================\n\ 00255 MSG: std_msgs/Int16MultiArray\n\ 00256 # Please look at the MultiArrayLayout message definition for\n\ 00257 # documentation on all multiarrays.\n\ 00258 \n\ 00259 MultiArrayLayout layout # specification of data layout\n\ 00260 int16[] data # array of data\n\ 00261 \n\ 00262 \n\ 00263 "; 00264 } 00265 00266 static const char* value(const ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> &) { return value(); } 00267 }; 00268 00269 } // namespace message_traits 00270 } // namespace ros 00271 00272 namespace ros 00273 { 00274 namespace serialization 00275 { 00276 00277 template<class ContainerAllocator> struct Serializer< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > 00278 { 00279 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00280 { 00281 stream.next(m.actual_joint_values); 00282 stream.next(m.actual_forces); 00283 stream.next(m.time_to_stop); 00284 } 00285 00286 ROS_DECLARE_ALLINONE_SERIALIZER; 00287 }; // struct ReactiveGraspingResult_ 00288 } // namespace serialization 00289 } // namespace ros 00290 00291 namespace ros 00292 { 00293 namespace message_operations 00294 { 00295 00296 template<class ContainerAllocator> 00297 struct Printer< ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> > 00298 { 00299 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_grasping_msgs::ReactiveGraspingResult_<ContainerAllocator> & v) 00300 { 00301 s << indent << "actual_joint_values: "; 00302 s << std::endl; 00303 Printer< ::std_msgs::Float32MultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.actual_joint_values); 00304 s << indent << "actual_forces: "; 00305 s << std::endl; 00306 Printer< ::std_msgs::Int16MultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.actual_forces); 00307 s << indent << "time_to_stop: "; 00308 s << std::endl; 00309 Printer< ::std_msgs::Float32MultiArray_<ContainerAllocator> >::stream(s, indent + " ", v.time_to_stop); 00310 } 00311 }; 00312 00313 00314 } // namespace message_operations 00315 } // namespace ros 00316 00317 #endif // SRS_ASSISTED_GRASPING_MSGS_MESSAGE_REACTIVEGRASPINGRESULT_H 00318