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