$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-object_manipulation/doc_stacks/2013-03-01_16-13-18.345538/object_manipulation/object_manipulation_msgs/msg/GripperTranslation.msg */ 00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_GRIPPERTRANSLATION_H 00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_GRIPPERTRANSLATION_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 "geometry_msgs/Vector3Stamped.h" 00018 00019 namespace object_manipulation_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct GripperTranslation_ { 00023 typedef GripperTranslation_<ContainerAllocator> Type; 00024 00025 GripperTranslation_() 00026 : direction() 00027 , desired_distance(0.0) 00028 , min_distance(0.0) 00029 { 00030 } 00031 00032 GripperTranslation_(const ContainerAllocator& _alloc) 00033 : direction(_alloc) 00034 , desired_distance(0.0) 00035 , min_distance(0.0) 00036 { 00037 } 00038 00039 typedef ::geometry_msgs::Vector3Stamped_<ContainerAllocator> _direction_type; 00040 ::geometry_msgs::Vector3Stamped_<ContainerAllocator> direction; 00041 00042 typedef float _desired_distance_type; 00043 float desired_distance; 00044 00045 typedef float _min_distance_type; 00046 float min_distance; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "object_manipulation_msgs/GripperTranslation"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "b53bc0ad0f717cdec3b0e42dec300121"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# defines a translation for the gripper, used in pickup or place tasks\n\ 00065 # for example for lifting an object off a table or approaching the table for placing\n\ 00066 \n\ 00067 # the direction of the translation\n\ 00068 geometry_msgs/Vector3Stamped direction\n\ 00069 \n\ 00070 # the desired translation distance\n\ 00071 float32 desired_distance\n\ 00072 \n\ 00073 # the min distance that must be considered feasible before the\n\ 00074 # grasp is even attempted\n\ 00075 float32 min_distance\n\ 00076 ================================================================================\n\ 00077 MSG: geometry_msgs/Vector3Stamped\n\ 00078 # This represents a Vector3 with reference coordinate frame and timestamp\n\ 00079 Header header\n\ 00080 Vector3 vector\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: std_msgs/Header\n\ 00084 # Standard metadata for higher-level stamped data types.\n\ 00085 # This is generally used to communicate timestamped data \n\ 00086 # in a particular coordinate frame.\n\ 00087 # \n\ 00088 # sequence ID: consecutively increasing ID \n\ 00089 uint32 seq\n\ 00090 #Two-integer timestamp that is expressed as:\n\ 00091 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00092 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00093 # time-handling sugar is provided by the client library\n\ 00094 time stamp\n\ 00095 #Frame this data is associated with\n\ 00096 # 0: no frame\n\ 00097 # 1: global frame\n\ 00098 string frame_id\n\ 00099 \n\ 00100 ================================================================================\n\ 00101 MSG: geometry_msgs/Vector3\n\ 00102 # This represents a vector in free space. \n\ 00103 \n\ 00104 float64 x\n\ 00105 float64 y\n\ 00106 float64 z\n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, direction); 00117 ros::serialization::serialize(stream, desired_distance); 00118 ros::serialization::serialize(stream, min_distance); 00119 return stream.getData(); 00120 } 00121 00122 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00123 { 00124 ros::serialization::IStream stream(read_ptr, 1000000000); 00125 ros::serialization::deserialize(stream, direction); 00126 ros::serialization::deserialize(stream, desired_distance); 00127 ros::serialization::deserialize(stream, min_distance); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint32_t serializationLength() const 00132 { 00133 uint32_t size = 0; 00134 size += ros::serialization::serializationLength(direction); 00135 size += ros::serialization::serializationLength(desired_distance); 00136 size += ros::serialization::serializationLength(min_distance); 00137 return size; 00138 } 00139 00140 typedef boost::shared_ptr< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > Ptr; 00141 typedef boost::shared_ptr< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> const> ConstPtr; 00142 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00143 }; // struct GripperTranslation 00144 typedef ::object_manipulation_msgs::GripperTranslation_<std::allocator<void> > GripperTranslation; 00145 00146 typedef boost::shared_ptr< ::object_manipulation_msgs::GripperTranslation> GripperTranslationPtr; 00147 typedef boost::shared_ptr< ::object_manipulation_msgs::GripperTranslation const> GripperTranslationConstPtr; 00148 00149 00150 template<typename ContainerAllocator> 00151 std::ostream& operator<<(std::ostream& s, const ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> & v) 00152 { 00153 ros::message_operations::Printer< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> >::stream(s, "", v); 00154 return s;} 00155 00156 } // namespace object_manipulation_msgs 00157 00158 namespace ros 00159 { 00160 namespace message_traits 00161 { 00162 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > : public TrueType {}; 00163 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> const> : public TrueType {}; 00164 template<class ContainerAllocator> 00165 struct MD5Sum< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "b53bc0ad0f717cdec3b0e42dec300121"; 00169 } 00170 00171 static const char* value(const ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> &) { return value(); } 00172 static const uint64_t static_value1 = 0xb53bc0ad0f717cdeULL; 00173 static const uint64_t static_value2 = 0xc3b0e42dec300121ULL; 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct DataType< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "object_manipulation_msgs/GripperTranslation"; 00181 } 00182 00183 static const char* value(const ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> &) { return value(); } 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct Definition< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "# defines a translation for the gripper, used in pickup or place tasks\n\ 00191 # for example for lifting an object off a table or approaching the table for placing\n\ 00192 \n\ 00193 # the direction of the translation\n\ 00194 geometry_msgs/Vector3Stamped direction\n\ 00195 \n\ 00196 # the desired translation distance\n\ 00197 float32 desired_distance\n\ 00198 \n\ 00199 # the min distance that must be considered feasible before the\n\ 00200 # grasp is even attempted\n\ 00201 float32 min_distance\n\ 00202 ================================================================================\n\ 00203 MSG: geometry_msgs/Vector3Stamped\n\ 00204 # This represents a Vector3 with reference coordinate frame and timestamp\n\ 00205 Header header\n\ 00206 Vector3 vector\n\ 00207 \n\ 00208 ================================================================================\n\ 00209 MSG: std_msgs/Header\n\ 00210 # Standard metadata for higher-level stamped data types.\n\ 00211 # This is generally used to communicate timestamped data \n\ 00212 # in a particular coordinate frame.\n\ 00213 # \n\ 00214 # sequence ID: consecutively increasing ID \n\ 00215 uint32 seq\n\ 00216 #Two-integer timestamp that is expressed as:\n\ 00217 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00218 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00219 # time-handling sugar is provided by the client library\n\ 00220 time stamp\n\ 00221 #Frame this data is associated with\n\ 00222 # 0: no frame\n\ 00223 # 1: global frame\n\ 00224 string frame_id\n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: geometry_msgs/Vector3\n\ 00228 # This represents a vector in free space. \n\ 00229 \n\ 00230 float64 x\n\ 00231 float64 y\n\ 00232 float64 z\n\ 00233 "; 00234 } 00235 00236 static const char* value(const ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> &) { return value(); } 00237 }; 00238 00239 } // namespace message_traits 00240 } // namespace ros 00241 00242 namespace ros 00243 { 00244 namespace serialization 00245 { 00246 00247 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > 00248 { 00249 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00250 { 00251 stream.next(m.direction); 00252 stream.next(m.desired_distance); 00253 stream.next(m.min_distance); 00254 } 00255 00256 ROS_DECLARE_ALLINONE_SERIALIZER; 00257 }; // struct GripperTranslation_ 00258 } // namespace serialization 00259 } // namespace ros 00260 00261 namespace ros 00262 { 00263 namespace message_operations 00264 { 00265 00266 template<class ContainerAllocator> 00267 struct Printer< ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> > 00268 { 00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_manipulation_msgs::GripperTranslation_<ContainerAllocator> & v) 00270 { 00271 s << indent << "direction: "; 00272 s << std::endl; 00273 Printer< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> >::stream(s, indent + " ", v.direction); 00274 s << indent << "desired_distance: "; 00275 Printer<float>::stream(s, indent + " ", v.desired_distance); 00276 s << indent << "min_distance: "; 00277 Printer<float>::stream(s, indent + " ", v.min_distance); 00278 } 00279 }; 00280 00281 00282 } // namespace message_operations 00283 } // namespace ros 00284 00285 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_GRIPPERTRANSLATION_H 00286