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