00001
00002 #ifndef HRL_HAPTIC_MANIPULATION_IN_CLUTTER_MSGS_MESSAGE_SKINCONTACT_H
00003 #define HRL_HAPTIC_MANIPULATION_IN_CLUTTER_MSGS_MESSAGE_SKINCONTACT_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/Header.h"
00018 #include "geometry_msgs/Point.h"
00019 #include "geometry_msgs/Vector3.h"
00020 #include "geometry_msgs/Vector3.h"
00021 #include "hrl_msgs/FloatArrayBare.h"
00022 #include "hrl_msgs/FloatArrayBare.h"
00023 #include "hrl_msgs/FloatArrayBare.h"
00024
00025 namespace hrl_haptic_manipulation_in_clutter_msgs
00026 {
00027 template <class ContainerAllocator>
00028 struct SkinContact_ {
00029 typedef SkinContact_<ContainerAllocator> Type;
00030
00031 SkinContact_()
00032 : header()
00033 , locations()
00034 , forces()
00035 , normals()
00036 , link_names()
00037 , pts_x()
00038 , pts_y()
00039 , pts_z()
00040 {
00041 }
00042
00043 SkinContact_(const ContainerAllocator& _alloc)
00044 : header(_alloc)
00045 , locations(_alloc)
00046 , forces(_alloc)
00047 , normals(_alloc)
00048 , link_names(_alloc)
00049 , pts_x(_alloc)
00050 , pts_y(_alloc)
00051 , pts_z(_alloc)
00052 {
00053 }
00054
00055 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00056 ::std_msgs::Header_<ContainerAllocator> header;
00057
00058 typedef std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > _locations_type;
00059 std::vector< ::geometry_msgs::Point_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point_<ContainerAllocator> >::other > locations;
00060
00061 typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > _forces_type;
00062 std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > forces;
00063
00064 typedef std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > _normals_type;
00065 std::vector< ::geometry_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Vector3_<ContainerAllocator> >::other > normals;
00066
00067 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _link_names_type;
00068 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > link_names;
00069
00070 typedef std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > _pts_x_type;
00071 std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > pts_x;
00072
00073 typedef std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > _pts_y_type;
00074 std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > pts_y;
00075
00076 typedef std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > _pts_z_type;
00077 std::vector< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::other > pts_z;
00078
00079
00080 typedef boost::shared_ptr< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > Ptr;
00081 typedef boost::shared_ptr< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> const> ConstPtr;
00082 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00083 };
00084 typedef ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<std::allocator<void> > SkinContact;
00085
00086 typedef boost::shared_ptr< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact> SkinContactPtr;
00087 typedef boost::shared_ptr< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact const> SkinContactConstPtr;
00088
00089
00090 template<typename ContainerAllocator>
00091 std::ostream& operator<<(std::ostream& s, const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> & v)
00092 {
00093 ros::message_operations::Printer< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> >::stream(s, "", v);
00094 return s;}
00095
00096 }
00097
00098 namespace ros
00099 {
00100 namespace message_traits
00101 {
00102 template<class ContainerAllocator> struct IsMessage< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > : public TrueType {};
00103 template<class ContainerAllocator> struct IsMessage< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> const> : public TrueType {};
00104 template<class ContainerAllocator>
00105 struct MD5Sum< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "37fe3e288b59bae570bada4c7b9240cf";
00109 }
00110
00111 static const char* value(const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> &) { return value(); }
00112 static const uint64_t static_value1 = 0x37fe3e288b59bae5ULL;
00113 static const uint64_t static_value2 = 0x70bada4c7b9240cfULL;
00114 };
00115
00116 template<class ContainerAllocator>
00117 struct DataType< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "hrl_haptic_manipulation_in_clutter_msgs/SkinContact";
00121 }
00122
00123 static const char* value(const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> &) { return value(); }
00124 };
00125
00126 template<class ContainerAllocator>
00127 struct Definition< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > {
00128 static const char* value()
00129 {
00130 return "Header header\n\
00131 geometry_msgs/Point[] locations\n\
00132 geometry_msgs/Vector3[] forces\n\
00133 \n\
00134 # normals to the manipulator surface at the points of contact.\n\
00135 geometry_msgs/Vector3[] normals\n\
00136 \n\
00137 string[] link_names\n\
00138 \n\
00139 #all the points (from collision map) that make up one contact location.\n\
00140 hrl_msgs/FloatArrayBare[] pts_x\n\
00141 hrl_msgs/FloatArrayBare[] pts_y\n\
00142 hrl_msgs/FloatArrayBare[] pts_z\n\
00143 \n\
00144 \n\
00145 \n\
00146 \n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: std_msgs/Header\n\
00150 # Standard metadata for higher-level stamped data types.\n\
00151 # This is generally used to communicate timestamped data \n\
00152 # in a particular coordinate frame.\n\
00153 # \n\
00154 # sequence ID: consecutively increasing ID \n\
00155 uint32 seq\n\
00156 #Two-integer timestamp that is expressed as:\n\
00157 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00158 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00159 # time-handling sugar is provided by the client library\n\
00160 time stamp\n\
00161 #Frame this data is associated with\n\
00162 # 0: no frame\n\
00163 # 1: global frame\n\
00164 string frame_id\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: geometry_msgs/Point\n\
00168 # This contains the position of a point in free space\n\
00169 float64 x\n\
00170 float64 y\n\
00171 float64 z\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: geometry_msgs/Vector3\n\
00175 # This represents a vector in free space. \n\
00176 \n\
00177 float64 x\n\
00178 float64 y\n\
00179 float64 z\n\
00180 ================================================================================\n\
00181 MSG: hrl_msgs/FloatArrayBare\n\
00182 float64[] data\n\
00183 \n\
00184 \n\
00185 ";
00186 }
00187
00188 static const char* value(const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> &) { return value(); }
00189 };
00190
00191 template<class ContainerAllocator> struct HasHeader< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > : public TrueType {};
00192 template<class ContainerAllocator> struct HasHeader< const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> > : public TrueType {};
00193 }
00194 }
00195
00196 namespace ros
00197 {
00198 namespace serialization
00199 {
00200
00201 template<class ContainerAllocator> struct Serializer< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> >
00202 {
00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00204 {
00205 stream.next(m.header);
00206 stream.next(m.locations);
00207 stream.next(m.forces);
00208 stream.next(m.normals);
00209 stream.next(m.link_names);
00210 stream.next(m.pts_x);
00211 stream.next(m.pts_y);
00212 stream.next(m.pts_z);
00213 }
00214
00215 ROS_DECLARE_ALLINONE_SERIALIZER;
00216 };
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace message_operations
00223 {
00224
00225 template<class ContainerAllocator>
00226 struct Printer< ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> >
00227 {
00228 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hrl_haptic_manipulation_in_clutter_msgs::SkinContact_<ContainerAllocator> & v)
00229 {
00230 s << indent << "header: ";
00231 s << std::endl;
00232 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00233 s << indent << "locations[]" << std::endl;
00234 for (size_t i = 0; i < v.locations.size(); ++i)
00235 {
00236 s << indent << " locations[" << i << "]: ";
00237 s << std::endl;
00238 s << indent;
00239 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.locations[i]);
00240 }
00241 s << indent << "forces[]" << std::endl;
00242 for (size_t i = 0; i < v.forces.size(); ++i)
00243 {
00244 s << indent << " forces[" << i << "]: ";
00245 s << std::endl;
00246 s << indent;
00247 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.forces[i]);
00248 }
00249 s << indent << "normals[]" << std::endl;
00250 for (size_t i = 0; i < v.normals.size(); ++i)
00251 {
00252 s << indent << " normals[" << i << "]: ";
00253 s << std::endl;
00254 s << indent;
00255 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.normals[i]);
00256 }
00257 s << indent << "link_names[]" << std::endl;
00258 for (size_t i = 0; i < v.link_names.size(); ++i)
00259 {
00260 s << indent << " link_names[" << i << "]: ";
00261 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_names[i]);
00262 }
00263 s << indent << "pts_x[]" << std::endl;
00264 for (size_t i = 0; i < v.pts_x.size(); ++i)
00265 {
00266 s << indent << " pts_x[" << i << "]: ";
00267 s << std::endl;
00268 s << indent;
00269 Printer< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::stream(s, indent + " ", v.pts_x[i]);
00270 }
00271 s << indent << "pts_y[]" << std::endl;
00272 for (size_t i = 0; i < v.pts_y.size(); ++i)
00273 {
00274 s << indent << " pts_y[" << i << "]: ";
00275 s << std::endl;
00276 s << indent;
00277 Printer< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::stream(s, indent + " ", v.pts_y[i]);
00278 }
00279 s << indent << "pts_z[]" << std::endl;
00280 for (size_t i = 0; i < v.pts_z.size(); ++i)
00281 {
00282 s << indent << " pts_z[" << i << "]: ";
00283 s << std::endl;
00284 s << indent;
00285 Printer< ::hrl_msgs::FloatArrayBare_<ContainerAllocator> >::stream(s, indent + " ", v.pts_z[i]);
00286 }
00287 }
00288 };
00289
00290
00291 }
00292 }
00293
00294 #endif // HRL_HAPTIC_MANIPULATION_IN_CLUTTER_MSGS_MESSAGE_SKINCONTACT_H
00295