00001
00002 #ifndef PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDGOAL_H
00003 #define PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDGOAL_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
00014 namespace pr2_create_object_model
00015 {
00016 template <class ContainerAllocator>
00017 struct ModelObjectInHandGoal_ : public ros::Message
00018 {
00019 typedef ModelObjectInHandGoal_<ContainerAllocator> Type;
00020
00021 ModelObjectInHandGoal_()
00022 : arm_name()
00023 , move_arm(0)
00024 , keep_level(0)
00025 , add_to_collision_map(0)
00026 {
00027 }
00028
00029 ModelObjectInHandGoal_(const ContainerAllocator& _alloc)
00030 : arm_name(_alloc)
00031 , move_arm(0)
00032 , keep_level(0)
00033 , add_to_collision_map(0)
00034 {
00035 }
00036
00037 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _arm_name_type;
00038 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > arm_name;
00039
00040 typedef uint8_t _move_arm_type;
00041 uint8_t move_arm;
00042
00043 typedef uint8_t _keep_level_type;
00044 uint8_t keep_level;
00045
00046 typedef uint8_t _add_to_collision_map_type;
00047 uint8_t add_to_collision_map;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "pr2_create_object_model/ModelObjectInHandGoal"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "9f1692a11210a11c60d117d8a0b58be7"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00066 string arm_name\n\
00067 uint8 move_arm\n\
00068 uint8 keep_level\n\
00069 uint8 add_to_collision_map\n\
00070 \n\
00071 \n\
00072 "; }
00073 public:
00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00075
00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00079 {
00080 ros::serialization::OStream stream(write_ptr, 1000000000);
00081 ros::serialization::serialize(stream, arm_name);
00082 ros::serialization::serialize(stream, move_arm);
00083 ros::serialization::serialize(stream, keep_level);
00084 ros::serialization::serialize(stream, add_to_collision_map);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00089 {
00090 ros::serialization::IStream stream(read_ptr, 1000000000);
00091 ros::serialization::deserialize(stream, arm_name);
00092 ros::serialization::deserialize(stream, move_arm);
00093 ros::serialization::deserialize(stream, keep_level);
00094 ros::serialization::deserialize(stream, add_to_collision_map);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(arm_name);
00102 size += ros::serialization::serializationLength(move_arm);
00103 size += ros::serialization::serializationLength(keep_level);
00104 size += ros::serialization::serializationLength(add_to_collision_map);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::pr2_create_object_model::ModelObjectInHandGoal_<std::allocator<void> > ModelObjectInHandGoal;
00112
00113 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandGoal> ModelObjectInHandGoalPtr;
00114 typedef boost::shared_ptr< ::pr2_create_object_model::ModelObjectInHandGoal const> ModelObjectInHandGoalConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "9f1692a11210a11c60d117d8a0b58be7";
00134 }
00135
00136 static const char* value(const ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0x9f1692a11210a11cULL;
00138 static const uint64_t static_value2 = 0x60d117d8a0b58be7ULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "pr2_create_object_model/ModelObjectInHandGoal";
00146 }
00147
00148 static const char* value(const ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00156 string arm_name\n\
00157 uint8 move_arm\n\
00158 uint8 keep_level\n\
00159 uint8 add_to_collision_map\n\
00160 \n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace serialization
00174 {
00175
00176 template<class ContainerAllocator> struct Serializer< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> >
00177 {
00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00179 {
00180 stream.next(m.arm_name);
00181 stream.next(m.move_arm);
00182 stream.next(m.keep_level);
00183 stream.next(m.add_to_collision_map);
00184 }
00185
00186 ROS_DECLARE_ALLINONE_SERIALIZER;
00187 };
00188 }
00189 }
00190
00191 namespace ros
00192 {
00193 namespace message_operations
00194 {
00195
00196 template<class ContainerAllocator>
00197 struct Printer< ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> >
00198 {
00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_create_object_model::ModelObjectInHandGoal_<ContainerAllocator> & v)
00200 {
00201 s << indent << "arm_name: ";
00202 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.arm_name);
00203 s << indent << "move_arm: ";
00204 Printer<uint8_t>::stream(s, indent + " ", v.move_arm);
00205 s << indent << "keep_level: ";
00206 Printer<uint8_t>::stream(s, indent + " ", v.keep_level);
00207 s << indent << "add_to_collision_map: ";
00208 Printer<uint8_t>::stream(s, indent + " ", v.add_to_collision_map);
00209 }
00210 };
00211
00212
00213 }
00214 }
00215
00216 #endif // PR2_CREATE_OBJECT_MODEL_MESSAGE_MODELOBJECTINHANDGOAL_H
00217