00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_COLLISIONOPERATION_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_COLLISIONOPERATION_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 motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct CollisionOperation_ : public ros::Message
00018 {
00019 typedef CollisionOperation_<ContainerAllocator> Type;
00020
00021 CollisionOperation_()
00022 : object1()
00023 , object2()
00024 , penetration_distance(0.0)
00025 , operation(0)
00026 {
00027 }
00028
00029 CollisionOperation_(const ContainerAllocator& _alloc)
00030 : object1(_alloc)
00031 , object2(_alloc)
00032 , penetration_distance(0.0)
00033 , operation(0)
00034 {
00035 }
00036
00037 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object1_type;
00038 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object1;
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _object2_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > object2;
00042
00043 typedef double _penetration_distance_type;
00044 double penetration_distance;
00045
00046 typedef int32_t _operation_type;
00047 int32_t operation;
00048
00049 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > COLLISION_SET_ALL;
00050 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > COLLISION_SET_OBJECTS;
00051 static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > COLLISION_SET_ATTACHED_OBJECTS;
00052 enum { DISABLE = 0 };
00053 enum { ENABLE = 1 };
00054
00055 private:
00056 static const char* __s_getDataType_() { return "motion_planning_msgs/CollisionOperation"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "e0cf3073b26bd86266c918a0c779f8a2"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "# A definition of a collision operation\n\
00071 # E.g. (\"gripper\",COLLISION_SET_ALL,ENABLE) will enable collisions \n\
00072 # between the gripper and all objects in the collision space\n\
00073 \n\
00074 string object1\n\
00075 string object2\n\
00076 string COLLISION_SET_ALL=\"all\"\n\
00077 string COLLISION_SET_OBJECTS=\"objects\"\n\
00078 string COLLISION_SET_ATTACHED_OBJECTS=\"attached\"\n\
00079 \n\
00080 # The penetration distance to which collisions are allowed. This is 0.0 by default.\n\
00081 float64 penetration_distance\n\
00082 \n\
00083 # Flag that determines whether collisions will be enabled or disabled for the pair of objects specified above\n\
00084 int32 operation\n\
00085 int32 DISABLE=0\n\
00086 int32 ENABLE=1\n\
00087 \n\
00088 "; }
00089 public:
00090 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00091
00092 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00095 {
00096 ros::serialization::OStream stream(write_ptr, 1000000000);
00097 ros::serialization::serialize(stream, object1);
00098 ros::serialization::serialize(stream, object2);
00099 ros::serialization::serialize(stream, penetration_distance);
00100 ros::serialization::serialize(stream, operation);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00105 {
00106 ros::serialization::IStream stream(read_ptr, 1000000000);
00107 ros::serialization::deserialize(stream, object1);
00108 ros::serialization::deserialize(stream, object2);
00109 ros::serialization::deserialize(stream, penetration_distance);
00110 ros::serialization::deserialize(stream, operation);
00111 return stream.getData();
00112 }
00113
00114 ROS_DEPRECATED virtual uint32_t serializationLength() const
00115 {
00116 uint32_t size = 0;
00117 size += ros::serialization::serializationLength(object1);
00118 size += ros::serialization::serializationLength(object2);
00119 size += ros::serialization::serializationLength(penetration_distance);
00120 size += ros::serialization::serializationLength(operation);
00121 return size;
00122 }
00123
00124 typedef boost::shared_ptr< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> > Ptr;
00125 typedef boost::shared_ptr< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> const> ConstPtr;
00126 };
00127 typedef ::motion_planning_msgs::CollisionOperation_<std::allocator<void> > CollisionOperation;
00128
00129 typedef boost::shared_ptr< ::motion_planning_msgs::CollisionOperation> CollisionOperationPtr;
00130 typedef boost::shared_ptr< ::motion_planning_msgs::CollisionOperation const> CollisionOperationConstPtr;
00131
00132 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CollisionOperation_<ContainerAllocator>::COLLISION_SET_ALL = "\"all\"";
00133 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CollisionOperation_<ContainerAllocator>::COLLISION_SET_OBJECTS = "\"objects\"";
00134 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > CollisionOperation_<ContainerAllocator>::COLLISION_SET_ATTACHED_OBJECTS = "\"attached\"";
00135
00136 template<typename ContainerAllocator>
00137 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> & v)
00138 {
00139 ros::message_operations::Printer< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> >::stream(s, "", v);
00140 return s;}
00141
00142 }
00143
00144 namespace ros
00145 {
00146 namespace message_traits
00147 {
00148 template<class ContainerAllocator>
00149 struct MD5Sum< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> > {
00150 static const char* value()
00151 {
00152 return "e0cf3073b26bd86266c918a0c779f8a2";
00153 }
00154
00155 static const char* value(const ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); }
00156 static const uint64_t static_value1 = 0xe0cf3073b26bd862ULL;
00157 static const uint64_t static_value2 = 0x66c918a0c779f8a2ULL;
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct DataType< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "motion_planning_msgs/CollisionOperation";
00165 }
00166
00167 static const char* value(const ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); }
00168 };
00169
00170 template<class ContainerAllocator>
00171 struct Definition< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "# A definition of a collision operation\n\
00175 # E.g. (\"gripper\",COLLISION_SET_ALL,ENABLE) will enable collisions \n\
00176 # between the gripper and all objects in the collision space\n\
00177 \n\
00178 string object1\n\
00179 string object2\n\
00180 string COLLISION_SET_ALL=\"all\"\n\
00181 string COLLISION_SET_OBJECTS=\"objects\"\n\
00182 string COLLISION_SET_ATTACHED_OBJECTS=\"attached\"\n\
00183 \n\
00184 # The penetration distance to which collisions are allowed. This is 0.0 by default.\n\
00185 float64 penetration_distance\n\
00186 \n\
00187 # Flag that determines whether collisions will be enabled or disabled for the pair of objects specified above\n\
00188 int32 operation\n\
00189 int32 DISABLE=0\n\
00190 int32 ENABLE=1\n\
00191 \n\
00192 ";
00193 }
00194
00195 static const char* value(const ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 }
00199 }
00200
00201 namespace ros
00202 {
00203 namespace serialization
00204 {
00205
00206 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> >
00207 {
00208 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00209 {
00210 stream.next(m.object1);
00211 stream.next(m.object2);
00212 stream.next(m.penetration_distance);
00213 stream.next(m.operation);
00214 }
00215
00216 ROS_DECLARE_ALLINONE_SERIALIZER;
00217 };
00218 }
00219 }
00220
00221 namespace ros
00222 {
00223 namespace message_operations
00224 {
00225
00226 template<class ContainerAllocator>
00227 struct Printer< ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> >
00228 {
00229 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::CollisionOperation_<ContainerAllocator> & v)
00230 {
00231 s << indent << "object1: ";
00232 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object1);
00233 s << indent << "object2: ";
00234 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.object2);
00235 s << indent << "penetration_distance: ";
00236 Printer<double>::stream(s, indent + " ", v.penetration_distance);
00237 s << indent << "operation: ";
00238 Printer<int32_t>::stream(s, indent + " ", v.operation);
00239 }
00240 };
00241
00242
00243 }
00244 }
00245
00246 #endif // MOTION_PLANNING_MSGS_MESSAGE_COLLISIONOPERATION_H
00247