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