00001
00002 #ifndef MAPPING_MSGS_MESSAGE_COLLISIONOBJECTOPERATION_H
00003 #define MAPPING_MSGS_MESSAGE_COLLISIONOBJECTOPERATION_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 mapping_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct CollisionObjectOperation_ : public ros::Message
00018 {
00019 typedef CollisionObjectOperation_<ContainerAllocator> Type;
00020
00021 CollisionObjectOperation_()
00022 : operation(0)
00023 {
00024 }
00025
00026 CollisionObjectOperation_(const ContainerAllocator& _alloc)
00027 : operation(0)
00028 {
00029 }
00030
00031 typedef int8_t _operation_type;
00032 int8_t operation;
00033
00034 enum { ADD = 0 };
00035 enum { REMOVE = 1 };
00036 enum { DETACH_AND_ADD_AS_OBJECT = 2 };
00037 enum { ATTACH_AND_REMOVE_AS_OBJECT = 3 };
00038
00039 private:
00040 static const char* __s_getDataType_() { return "mapping_msgs/CollisionObjectOperation"; }
00041 public:
00042 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00043
00044 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00045
00046 private:
00047 static const char* __s_getMD5Sum_() { return "66a2b3b971d193145f8da8c3e401a474"; }
00048 public:
00049 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00050
00051 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00052
00053 private:
00054 static const char* __s_getMessageDefinition_() { return "#Puts the object into the environment\n\
00055 #or updates the object if already added\n\
00056 byte ADD=0\n\
00057 \n\
00058 #Removes the object from the environment entirely\n\
00059 byte REMOVE=1\n\
00060 \n\
00061 #Only valid within the context of a CollisionAttachedObject message\n\
00062 #Will be ignored if sent with an CollisionObject message\n\
00063 #Takes an attached object, detaches from the attached link\n\
00064 #But adds back in as regular object\n\
00065 byte DETACH_AND_ADD_AS_OBJECT=2\n\
00066 \n\
00067 #Only valid within the context of a CollisionAttachedObject message\n\
00068 #Will be ignored if sent with an CollisionObject message\n\
00069 #Takes current object in the environment and removes it as\n\
00070 #a regular object\n\
00071 byte ATTACH_AND_REMOVE_AS_OBJECT=3\n\
00072 \n\
00073 # Byte code for operation\n\
00074 byte operation\n\
00075 \n\
00076 "; }
00077 public:
00078 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00081
00082 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00083 {
00084 ros::serialization::OStream stream(write_ptr, 1000000000);
00085 ros::serialization::serialize(stream, operation);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00090 {
00091 ros::serialization::IStream stream(read_ptr, 1000000000);
00092 ros::serialization::deserialize(stream, operation);
00093 return stream.getData();
00094 }
00095
00096 ROS_DEPRECATED virtual uint32_t serializationLength() const
00097 {
00098 uint32_t size = 0;
00099 size += ros::serialization::serializationLength(operation);
00100 return size;
00101 }
00102
00103 typedef boost::shared_ptr< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> > Ptr;
00104 typedef boost::shared_ptr< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> const> ConstPtr;
00105 };
00106 typedef ::mapping_msgs::CollisionObjectOperation_<std::allocator<void> > CollisionObjectOperation;
00107
00108 typedef boost::shared_ptr< ::mapping_msgs::CollisionObjectOperation> CollisionObjectOperationPtr;
00109 typedef boost::shared_ptr< ::mapping_msgs::CollisionObjectOperation const> CollisionObjectOperationConstPtr;
00110
00111
00112 template<typename ContainerAllocator>
00113 std::ostream& operator<<(std::ostream& s, const ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> & v)
00114 {
00115 ros::message_operations::Printer< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> >::stream(s, "", v);
00116 return s;}
00117
00118 }
00119
00120 namespace ros
00121 {
00122 namespace message_traits
00123 {
00124 template<class ContainerAllocator>
00125 struct MD5Sum< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "66a2b3b971d193145f8da8c3e401a474";
00129 }
00130
00131 static const char* value(const ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> &) { return value(); }
00132 static const uint64_t static_value1 = 0x66a2b3b971d19314ULL;
00133 static const uint64_t static_value2 = 0x5f8da8c3e401a474ULL;
00134 };
00135
00136 template<class ContainerAllocator>
00137 struct DataType< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> > {
00138 static const char* value()
00139 {
00140 return "mapping_msgs/CollisionObjectOperation";
00141 }
00142
00143 static const char* value(const ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 template<class ContainerAllocator>
00147 struct Definition< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "#Puts the object into the environment\n\
00151 #or updates the object if already added\n\
00152 byte ADD=0\n\
00153 \n\
00154 #Removes the object from the environment entirely\n\
00155 byte REMOVE=1\n\
00156 \n\
00157 #Only valid within the context of a CollisionAttachedObject message\n\
00158 #Will be ignored if sent with an CollisionObject message\n\
00159 #Takes an attached object, detaches from the attached link\n\
00160 #But adds back in as regular object\n\
00161 byte DETACH_AND_ADD_AS_OBJECT=2\n\
00162 \n\
00163 #Only valid within the context of a CollisionAttachedObject message\n\
00164 #Will be ignored if sent with an CollisionObject message\n\
00165 #Takes current object in the environment and removes it as\n\
00166 #a regular object\n\
00167 byte ATTACH_AND_REMOVE_AS_OBJECT=3\n\
00168 \n\
00169 # Byte code for operation\n\
00170 byte operation\n\
00171 \n\
00172 ";
00173 }
00174
00175 static const char* value(const ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> &) { return value(); }
00176 };
00177
00178 template<class ContainerAllocator> struct IsFixedSize< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> > : public TrueType {};
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace serialization
00185 {
00186
00187 template<class ContainerAllocator> struct Serializer< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> >
00188 {
00189 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00190 {
00191 stream.next(m.operation);
00192 }
00193
00194 ROS_DECLARE_ALLINONE_SERIALIZER;
00195 };
00196 }
00197 }
00198
00199 namespace ros
00200 {
00201 namespace message_operations
00202 {
00203
00204 template<class ContainerAllocator>
00205 struct Printer< ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> >
00206 {
00207 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::mapping_msgs::CollisionObjectOperation_<ContainerAllocator> & v)
00208 {
00209 s << indent << "operation: ";
00210 Printer<int8_t>::stream(s, indent + " ", v.operation);
00211 }
00212 };
00213
00214
00215 }
00216 }
00217
00218 #endif // MAPPING_MSGS_MESSAGE_COLLISIONOBJECTOPERATION_H
00219