PlaceResult.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-object_manipulation/doc_stacks/2014-01-02_11-30-37.444899/object_manipulation/object_manipulation_msgs/msg/PlaceResult.msg */
00002 #ifndef OBJECT_MANIPULATION_MSGS_MESSAGE_PLACERESULT_H
00003 #define OBJECT_MANIPULATION_MSGS_MESSAGE_PLACERESULT_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 "object_manipulation_msgs/ManipulationResult.h"
00018 #include "geometry_msgs/PoseStamped.h"
00019 #include "geometry_msgs/PoseStamped.h"
00020 #include "object_manipulation_msgs/PlaceLocationResult.h"
00021 
00022 namespace object_manipulation_msgs
00023 {
00024 template <class ContainerAllocator>
00025 struct PlaceResult_ {
00026   typedef PlaceResult_<ContainerAllocator> Type;
00027 
00028   PlaceResult_()
00029   : manipulation_result()
00030   , place_location()
00031   , attempted_locations()
00032   , attempted_location_results()
00033   {
00034   }
00035 
00036   PlaceResult_(const ContainerAllocator& _alloc)
00037   : manipulation_result(_alloc)
00038   , place_location(_alloc)
00039   , attempted_locations(_alloc)
00040   , attempted_location_results(_alloc)
00041   {
00042   }
00043 
00044   typedef  ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator>  _manipulation_result_type;
00045    ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator>  manipulation_result;
00046 
00047   typedef  ::geometry_msgs::PoseStamped_<ContainerAllocator>  _place_location_type;
00048    ::geometry_msgs::PoseStamped_<ContainerAllocator>  place_location;
00049 
00050   typedef std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other >  _attempted_locations_type;
00051   std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other >  attempted_locations;
00052 
00053   typedef std::vector< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >::other >  _attempted_location_results_type;
00054   std::vector< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >::other >  attempted_location_results;
00055 
00056 
00057   typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> > Ptr;
00058   typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator>  const> ConstPtr;
00059   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 }; // struct PlaceResult
00061 typedef  ::object_manipulation_msgs::PlaceResult_<std::allocator<void> > PlaceResult;
00062 
00063 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceResult> PlaceResultPtr;
00064 typedef boost::shared_ptr< ::object_manipulation_msgs::PlaceResult const> PlaceResultConstPtr;
00065 
00066 
00067 template<typename ContainerAllocator>
00068 std::ostream& operator<<(std::ostream& s, const  ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> & v)
00069 {
00070   ros::message_operations::Printer< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> >::stream(s, "", v);
00071   return s;}
00072 
00073 } // namespace object_manipulation_msgs
00074 
00075 namespace ros
00076 {
00077 namespace message_traits
00078 {
00079 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> > : public TrueType {};
00080 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator>  const> : public TrueType {};
00081 template<class ContainerAllocator>
00082 struct MD5Sum< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "531ddb04b8422b6734fb74421d431059";
00086   }
00087 
00088   static const char* value(const  ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> &) { return value(); } 
00089   static const uint64_t static_value1 = 0x531ddb04b8422b67ULL;
00090   static const uint64_t static_value2 = 0x34fb74421d431059ULL;
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct DataType< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "object_manipulation_msgs/PlaceResult";
00098   }
00099 
00100   static const char* value(const  ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> &) { return value(); } 
00101 };
00102 
00103 template<class ContainerAllocator>
00104 struct Definition< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00108 \n\
00109 # The result of the pickup attempt\n\
00110 ManipulationResult manipulation_result\n\
00111 \n\
00112 # The successful place location, if any\n\
00113 geometry_msgs/PoseStamped place_location\n\
00114 \n\
00115 # the list of attempted locations, in the order in which they were attempted\n\
00116 # the successful one should be the last one in this list\n\
00117 geometry_msgs/PoseStamped[] attempted_locations\n\
00118 \n\
00119 # the outcomes of the attempted locations, in the same order as attempted_locations\n\
00120 PlaceLocationResult[] attempted_location_results\n\
00121 \n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: object_manipulation_msgs/ManipulationResult\n\
00125 # Result codes for manipulation tasks\n\
00126 \n\
00127 # task completed as expected\n\
00128 # generally means you can proceed as planned\n\
00129 int32 SUCCESS = 1\n\
00130 \n\
00131 # task not possible (e.g. out of reach or obstacles in the way)\n\
00132 # generally means that the world was not disturbed, so you can try another task\n\
00133 int32 UNFEASIBLE = -1\n\
00134 \n\
00135 # task was thought possible, but failed due to unexpected events during execution\n\
00136 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00137 # your sensed world model before proceeding to another task\n\
00138 int32 FAILED = -2\n\
00139 \n\
00140 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00141 # generally requires human attention\n\
00142 int32 ERROR = -3\n\
00143 \n\
00144 # means that at some point during execution we ended up in a state that the collision-aware\n\
00145 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00146 # probably need a new collision map to move the arm out of the stuck position\n\
00147 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00148 \n\
00149 # specific to grasp actions\n\
00150 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00151 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00152 int32 LIFT_FAILED = -5\n\
00153 \n\
00154 # specific to place actions\n\
00155 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00156 # it is likely that the collision environment will see collisions between the hand and the object\n\
00157 int32 RETREAT_FAILED = -6\n\
00158 \n\
00159 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00160 int32 CANCELLED = -7\n\
00161 \n\
00162 # the actual value of this error code\n\
00163 int32 value\n\
00164 \n\
00165 ================================================================================\n\
00166 MSG: geometry_msgs/PoseStamped\n\
00167 # A Pose with reference coordinate frame and timestamp\n\
00168 Header header\n\
00169 Pose pose\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: std_msgs/Header\n\
00173 # Standard metadata for higher-level stamped data types.\n\
00174 # This is generally used to communicate timestamped data \n\
00175 # in a particular coordinate frame.\n\
00176 # \n\
00177 # sequence ID: consecutively increasing ID \n\
00178 uint32 seq\n\
00179 #Two-integer timestamp that is expressed as:\n\
00180 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00181 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00182 # time-handling sugar is provided by the client library\n\
00183 time stamp\n\
00184 #Frame this data is associated with\n\
00185 # 0: no frame\n\
00186 # 1: global frame\n\
00187 string frame_id\n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: geometry_msgs/Pose\n\
00191 # A representation of pose in free space, composed of postion and orientation. \n\
00192 Point position\n\
00193 Quaternion orientation\n\
00194 \n\
00195 ================================================================================\n\
00196 MSG: geometry_msgs/Point\n\
00197 # This contains the position of a point in free space\n\
00198 float64 x\n\
00199 float64 y\n\
00200 float64 z\n\
00201 \n\
00202 ================================================================================\n\
00203 MSG: geometry_msgs/Quaternion\n\
00204 # This represents an orientation in free space in quaternion form.\n\
00205 \n\
00206 float64 x\n\
00207 float64 y\n\
00208 float64 z\n\
00209 float64 w\n\
00210 \n\
00211 ================================================================================\n\
00212 MSG: object_manipulation_msgs/PlaceLocationResult\n\
00213 int32 SUCCESS = 1\n\
00214 int32 PLACE_OUT_OF_REACH = 2\n\
00215 int32 PLACE_IN_COLLISION = 3\n\
00216 int32 PLACE_UNFEASIBLE = 4\n\
00217 int32 PREPLACE_OUT_OF_REACH = 5\n\
00218 int32 PREPLACE_IN_COLLISION = 6\n\
00219 int32 PREPLACE_UNFEASIBLE = 7\n\
00220 int32 RETREAT_OUT_OF_REACH = 8\n\
00221 int32 RETREAT_IN_COLLISION = 9\n\
00222 int32 RETREAT_UNFEASIBLE = 10\n\
00223 int32 MOVE_ARM_FAILED = 11\n\
00224 int32 PLACE_FAILED = 12\n\
00225 int32 RETREAT_FAILED = 13\n\
00226 int32 result_code\n\
00227 \n\
00228 # whether the state of the world was disturbed by this attempt. generally, this flag\n\
00229 # shows if another task can be attempted, or a new sensed world model is recommeded\n\
00230 # before proceeding\n\
00231 bool continuation_possible\n\
00232 \n\
00233 ";
00234   }
00235 
00236   static const char* value(const  ::object_manipulation_msgs::PlaceResult_<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::PlaceResult_<ContainerAllocator> >
00248 {
00249   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00250   {
00251     stream.next(m.manipulation_result);
00252     stream.next(m.place_location);
00253     stream.next(m.attempted_locations);
00254     stream.next(m.attempted_location_results);
00255   }
00256 
00257   ROS_DECLARE_ALLINONE_SERIALIZER;
00258 }; // struct PlaceResult_
00259 } // namespace serialization
00260 } // namespace ros
00261 
00262 namespace ros
00263 {
00264 namespace message_operations
00265 {
00266 
00267 template<class ContainerAllocator>
00268 struct Printer< ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> >
00269 {
00270   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::object_manipulation_msgs::PlaceResult_<ContainerAllocator> & v) 
00271   {
00272     s << indent << "manipulation_result: ";
00273 s << std::endl;
00274     Printer< ::object_manipulation_msgs::ManipulationResult_<ContainerAllocator> >::stream(s, indent + "  ", v.manipulation_result);
00275     s << indent << "place_location: ";
00276 s << std::endl;
00277     Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + "  ", v.place_location);
00278     s << indent << "attempted_locations[]" << std::endl;
00279     for (size_t i = 0; i < v.attempted_locations.size(); ++i)
00280     {
00281       s << indent << "  attempted_locations[" << i << "]: ";
00282       s << std::endl;
00283       s << indent;
00284       Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + "    ", v.attempted_locations[i]);
00285     }
00286     s << indent << "attempted_location_results[]" << std::endl;
00287     for (size_t i = 0; i < v.attempted_location_results.size(); ++i)
00288     {
00289       s << indent << "  attempted_location_results[" << i << "]: ";
00290       s << std::endl;
00291       s << indent;
00292       Printer< ::object_manipulation_msgs::PlaceLocationResult_<ContainerAllocator> >::stream(s, indent + "    ", v.attempted_location_results[i]);
00293     }
00294   }
00295 };
00296 
00297 
00298 } // namespace message_operations
00299 } // namespace ros
00300 
00301 #endif // OBJECT_MANIPULATION_MSGS_MESSAGE_PLACERESULT_H
00302 


object_manipulation_msgs
Author(s): Matei Ciocarlie
autogenerated on Thu Jan 2 2014 11:38:12