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