$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/manipulation/pr2_object_manipulation_msgs/msg/TestGripperPoseGoal.msg */ 00002 #ifndef PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSEGOAL_H 00003 #define PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSEGOAL_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/PoseStamped.h" 00018 00019 namespace pr2_object_manipulation_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct TestGripperPoseGoal_ { 00023 typedef TestGripperPoseGoal_<ContainerAllocator> Type; 00024 00025 TestGripperPoseGoal_() 00026 : gripper_poses() 00027 , gripper_openings() 00028 { 00029 } 00030 00031 TestGripperPoseGoal_(const ContainerAllocator& _alloc) 00032 : gripper_poses(_alloc) 00033 , gripper_openings(_alloc) 00034 { 00035 } 00036 00037 typedef std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > _gripper_poses_type; 00038 std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > gripper_poses; 00039 00040 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _gripper_openings_type; 00041 std::vector<float, typename ContainerAllocator::template rebind<float>::other > gripper_openings; 00042 00043 00044 ROS_DEPRECATED uint32_t get_gripper_poses_size() const { return (uint32_t)gripper_poses.size(); } 00045 ROS_DEPRECATED void set_gripper_poses_size(uint32_t size) { gripper_poses.resize((size_t)size); } 00046 ROS_DEPRECATED void get_gripper_poses_vec(std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > & vec) const { vec = this->gripper_poses; } 00047 ROS_DEPRECATED void set_gripper_poses_vec(const std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other > & vec) { this->gripper_poses = vec; } 00048 ROS_DEPRECATED uint32_t get_gripper_openings_size() const { return (uint32_t)gripper_openings.size(); } 00049 ROS_DEPRECATED void set_gripper_openings_size(uint32_t size) { gripper_openings.resize((size_t)size); } 00050 ROS_DEPRECATED void get_gripper_openings_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->gripper_openings; } 00051 ROS_DEPRECATED void set_gripper_openings_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->gripper_openings = vec; } 00052 private: 00053 static const char* __s_getDataType_() { return "pr2_object_manipulation_msgs/TestGripperPoseGoal"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00056 00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00058 00059 private: 00060 static const char* __s_getMD5Sum_() { return "60df11f60923975932351322d083f23d"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00063 00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00065 00066 private: 00067 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00068 geometry_msgs/PoseStamped[] gripper_poses\n\ 00069 float32[] gripper_openings\n\ 00070 \n\ 00071 ================================================================================\n\ 00072 MSG: geometry_msgs/PoseStamped\n\ 00073 # A Pose with reference coordinate frame and timestamp\n\ 00074 Header header\n\ 00075 Pose pose\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: std_msgs/Header\n\ 00079 # Standard metadata for higher-level stamped data types.\n\ 00080 # This is generally used to communicate timestamped data \n\ 00081 # in a particular coordinate frame.\n\ 00082 # \n\ 00083 # sequence ID: consecutively increasing ID \n\ 00084 uint32 seq\n\ 00085 #Two-integer timestamp that is expressed as:\n\ 00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00088 # time-handling sugar is provided by the client library\n\ 00089 time stamp\n\ 00090 #Frame this data is associated with\n\ 00091 # 0: no frame\n\ 00092 # 1: global frame\n\ 00093 string frame_id\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: geometry_msgs/Pose\n\ 00097 # A representation of pose in free space, composed of postion and orientation. \n\ 00098 Point position\n\ 00099 Quaternion orientation\n\ 00100 \n\ 00101 ================================================================================\n\ 00102 MSG: geometry_msgs/Point\n\ 00103 # This contains the position of a point in free space\n\ 00104 float64 x\n\ 00105 float64 y\n\ 00106 float64 z\n\ 00107 \n\ 00108 ================================================================================\n\ 00109 MSG: geometry_msgs/Quaternion\n\ 00110 # This represents an orientation in free space in quaternion form.\n\ 00111 \n\ 00112 float64 x\n\ 00113 float64 y\n\ 00114 float64 z\n\ 00115 float64 w\n\ 00116 \n\ 00117 "; } 00118 public: 00119 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00124 { 00125 ros::serialization::OStream stream(write_ptr, 1000000000); 00126 ros::serialization::serialize(stream, gripper_poses); 00127 ros::serialization::serialize(stream, gripper_openings); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, gripper_poses); 00135 ros::serialization::deserialize(stream, gripper_openings); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint32_t serializationLength() const 00140 { 00141 uint32_t size = 0; 00142 size += ros::serialization::serializationLength(gripper_poses); 00143 size += ros::serialization::serializationLength(gripper_openings); 00144 return size; 00145 } 00146 00147 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > Ptr; 00148 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> const> ConstPtr; 00149 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00150 }; // struct TestGripperPoseGoal 00151 typedef ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<std::allocator<void> > TestGripperPoseGoal; 00152 00153 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseGoal> TestGripperPoseGoalPtr; 00154 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::TestGripperPoseGoal const> TestGripperPoseGoalConstPtr; 00155 00156 00157 template<typename ContainerAllocator> 00158 std::ostream& operator<<(std::ostream& s, const ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> & v) 00159 { 00160 ros::message_operations::Printer< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> >::stream(s, "", v); 00161 return s;} 00162 00163 } // namespace pr2_object_manipulation_msgs 00164 00165 namespace ros 00166 { 00167 namespace message_traits 00168 { 00169 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > : public TrueType {}; 00170 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> const> : public TrueType {}; 00171 template<class ContainerAllocator> 00172 struct MD5Sum< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "60df11f60923975932351322d083f23d"; 00176 } 00177 00178 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> &) { return value(); } 00179 static const uint64_t static_value1 = 0x60df11f609239759ULL; 00180 static const uint64_t static_value2 = 0x32351322d083f23dULL; 00181 }; 00182 00183 template<class ContainerAllocator> 00184 struct DataType< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > { 00185 static const char* value() 00186 { 00187 return "pr2_object_manipulation_msgs/TestGripperPoseGoal"; 00188 } 00189 00190 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> &) { return value(); } 00191 }; 00192 00193 template<class ContainerAllocator> 00194 struct Definition< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > { 00195 static const char* value() 00196 { 00197 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00198 geometry_msgs/PoseStamped[] gripper_poses\n\ 00199 float32[] gripper_openings\n\ 00200 \n\ 00201 ================================================================================\n\ 00202 MSG: geometry_msgs/PoseStamped\n\ 00203 # A Pose with reference coordinate frame and timestamp\n\ 00204 Header header\n\ 00205 Pose pose\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: std_msgs/Header\n\ 00209 # Standard metadata for higher-level stamped data types.\n\ 00210 # This is generally used to communicate timestamped data \n\ 00211 # in a particular coordinate frame.\n\ 00212 # \n\ 00213 # sequence ID: consecutively increasing ID \n\ 00214 uint32 seq\n\ 00215 #Two-integer timestamp that is expressed as:\n\ 00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00218 # time-handling sugar is provided by the client library\n\ 00219 time stamp\n\ 00220 #Frame this data is associated with\n\ 00221 # 0: no frame\n\ 00222 # 1: global frame\n\ 00223 string frame_id\n\ 00224 \n\ 00225 ================================================================================\n\ 00226 MSG: geometry_msgs/Pose\n\ 00227 # A representation of pose in free space, composed of postion and orientation. \n\ 00228 Point position\n\ 00229 Quaternion orientation\n\ 00230 \n\ 00231 ================================================================================\n\ 00232 MSG: geometry_msgs/Point\n\ 00233 # This contains the position of a point in free space\n\ 00234 float64 x\n\ 00235 float64 y\n\ 00236 float64 z\n\ 00237 \n\ 00238 ================================================================================\n\ 00239 MSG: geometry_msgs/Quaternion\n\ 00240 # This represents an orientation in free space in quaternion form.\n\ 00241 \n\ 00242 float64 x\n\ 00243 float64 y\n\ 00244 float64 z\n\ 00245 float64 w\n\ 00246 \n\ 00247 "; 00248 } 00249 00250 static const char* value(const ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> &) { return value(); } 00251 }; 00252 00253 } // namespace message_traits 00254 } // namespace ros 00255 00256 namespace ros 00257 { 00258 namespace serialization 00259 { 00260 00261 template<class ContainerAllocator> struct Serializer< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > 00262 { 00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00264 { 00265 stream.next(m.gripper_poses); 00266 stream.next(m.gripper_openings); 00267 } 00268 00269 ROS_DECLARE_ALLINONE_SERIALIZER; 00270 }; // struct TestGripperPoseGoal_ 00271 } // namespace serialization 00272 } // namespace ros 00273 00274 namespace ros 00275 { 00276 namespace message_operations 00277 { 00278 00279 template<class ContainerAllocator> 00280 struct Printer< ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> > 00281 { 00282 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_object_manipulation_msgs::TestGripperPoseGoal_<ContainerAllocator> & v) 00283 { 00284 s << indent << "gripper_poses[]" << std::endl; 00285 for (size_t i = 0; i < v.gripper_poses.size(); ++i) 00286 { 00287 s << indent << " gripper_poses[" << i << "]: "; 00288 s << std::endl; 00289 s << indent; 00290 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.gripper_poses[i]); 00291 } 00292 s << indent << "gripper_openings[]" << std::endl; 00293 for (size_t i = 0; i < v.gripper_openings.size(); ++i) 00294 { 00295 s << indent << " gripper_openings[" << i << "]: "; 00296 Printer<float>::stream(s, indent + " ", v.gripper_openings[i]); 00297 } 00298 } 00299 }; 00300 00301 00302 } // namespace message_operations 00303 } // namespace ros 00304 00305 #endif // PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_TESTGRIPPERPOSEGOAL_H 00306