Go to the documentation of this file.00001
00002 #ifndef TIDYUP_MSGS_MESSAGE_GRASPABLEOBJECT_H
00003 #define TIDYUP_MSGS_MESSAGE_GRASPABLEOBJECT_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 tidyup_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GraspableObject_ {
00023 typedef GraspableObject_<ContainerAllocator> Type;
00024
00025 GraspableObject_()
00026 : name()
00027 , pose()
00028 , reachable_left_arm(false)
00029 , reachable_right_arm(false)
00030 {
00031 }
00032
00033 GraspableObject_(const ContainerAllocator& _alloc)
00034 : name(_alloc)
00035 , pose(_alloc)
00036 , reachable_left_arm(false)
00037 , reachable_right_arm(false)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00043
00044 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_type;
00045 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose;
00046
00047 typedef uint8_t _reachable_left_arm_type;
00048 uint8_t reachable_left_arm;
00049
00050 typedef uint8_t _reachable_right_arm_type;
00051 uint8_t reachable_right_arm;
00052
00053
00054 typedef boost::shared_ptr< ::tidyup_msgs::GraspableObject_<ContainerAllocator> > Ptr;
00055 typedef boost::shared_ptr< ::tidyup_msgs::GraspableObject_<ContainerAllocator> const> ConstPtr;
00056 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 };
00058 typedef ::tidyup_msgs::GraspableObject_<std::allocator<void> > GraspableObject;
00059
00060 typedef boost::shared_ptr< ::tidyup_msgs::GraspableObject> GraspableObjectPtr;
00061 typedef boost::shared_ptr< ::tidyup_msgs::GraspableObject const> GraspableObjectConstPtr;
00062
00063
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const ::tidyup_msgs::GraspableObject_<ContainerAllocator> & v)
00066 {
00067 ros::message_operations::Printer< ::tidyup_msgs::GraspableObject_<ContainerAllocator> >::stream(s, "", v);
00068 return s;}
00069
00070 }
00071
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::tidyup_msgs::GraspableObject_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::tidyup_msgs::GraspableObject_<ContainerAllocator> const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::tidyup_msgs::GraspableObject_<ContainerAllocator> > {
00080 static const char* value()
00081 {
00082 return "e0e939123ab1843b1e8dcff2df7a13a7";
00083 }
00084
00085 static const char* value(const ::tidyup_msgs::GraspableObject_<ContainerAllocator> &) { return value(); }
00086 static const uint64_t static_value1 = 0xe0e939123ab1843bULL;
00087 static const uint64_t static_value2 = 0x1e8dcff2df7a13a7ULL;
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct DataType< ::tidyup_msgs::GraspableObject_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "tidyup_msgs/GraspableObject";
00095 }
00096
00097 static const char* value(const ::tidyup_msgs::GraspableObject_<ContainerAllocator> &) { return value(); }
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct Definition< ::tidyup_msgs::GraspableObject_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "# an object that can be grasped in principle\n\
00105 string name\n\
00106 geometry_msgs/PoseStamped pose\n\
00107 bool reachable_left_arm # if true, the object is reachable now to be grasped with the left_arm\n\
00108 bool reachable_right_arm\n\
00109 \n\
00110 ================================================================================\n\
00111 MSG: geometry_msgs/PoseStamped\n\
00112 # A Pose with reference coordinate frame and timestamp\n\
00113 Header header\n\
00114 Pose pose\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: std_msgs/Header\n\
00118 # Standard metadata for higher-level stamped data types.\n\
00119 # This is generally used to communicate timestamped data \n\
00120 # in a particular coordinate frame.\n\
00121 # \n\
00122 # sequence ID: consecutively increasing ID \n\
00123 uint32 seq\n\
00124 #Two-integer timestamp that is expressed as:\n\
00125 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00126 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00127 # time-handling sugar is provided by the client library\n\
00128 time stamp\n\
00129 #Frame this data is associated with\n\
00130 # 0: no frame\n\
00131 # 1: global frame\n\
00132 string frame_id\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: geometry_msgs/Pose\n\
00136 # A representation of pose in free space, composed of postion and orientation. \n\
00137 Point position\n\
00138 Quaternion orientation\n\
00139 \n\
00140 ================================================================================\n\
00141 MSG: geometry_msgs/Point\n\
00142 # This contains the position of a point in free space\n\
00143 float64 x\n\
00144 float64 y\n\
00145 float64 z\n\
00146 \n\
00147 ================================================================================\n\
00148 MSG: geometry_msgs/Quaternion\n\
00149 # This represents an orientation in free space in quaternion form.\n\
00150 \n\
00151 float64 x\n\
00152 float64 y\n\
00153 float64 z\n\
00154 float64 w\n\
00155 \n\
00156 ";
00157 }
00158
00159 static const char* value(const ::tidyup_msgs::GraspableObject_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 }
00163 }
00164
00165 namespace ros
00166 {
00167 namespace serialization
00168 {
00169
00170 template<class ContainerAllocator> struct Serializer< ::tidyup_msgs::GraspableObject_<ContainerAllocator> >
00171 {
00172 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00173 {
00174 stream.next(m.name);
00175 stream.next(m.pose);
00176 stream.next(m.reachable_left_arm);
00177 stream.next(m.reachable_right_arm);
00178 }
00179
00180 ROS_DECLARE_ALLINONE_SERIALIZER;
00181 };
00182 }
00183 }
00184
00185 namespace ros
00186 {
00187 namespace message_operations
00188 {
00189
00190 template<class ContainerAllocator>
00191 struct Printer< ::tidyup_msgs::GraspableObject_<ContainerAllocator> >
00192 {
00193 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tidyup_msgs::GraspableObject_<ContainerAllocator> & v)
00194 {
00195 s << indent << "name: ";
00196 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00197 s << indent << "pose: ";
00198 s << std::endl;
00199 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose);
00200 s << indent << "reachable_left_arm: ";
00201 Printer<uint8_t>::stream(s, indent + " ", v.reachable_left_arm);
00202 s << indent << "reachable_right_arm: ";
00203 Printer<uint8_t>::stream(s, indent + " ", v.reachable_right_arm);
00204 }
00205 };
00206
00207
00208 }
00209 }
00210
00211 #endif // TIDYUP_MSGS_MESSAGE_GRASPABLEOBJECT_H
00212