$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/AllowedCollisionEntry.msg */ 00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONENTRY_H 00003 #define ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONENTRY_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 AllowedCollisionEntry_ { 00022 typedef AllowedCollisionEntry_<ContainerAllocator> Type; 00023 00024 AllowedCollisionEntry_() 00025 : enabled() 00026 { 00027 } 00028 00029 AllowedCollisionEntry_(const ContainerAllocator& _alloc) 00030 : enabled(_alloc) 00031 { 00032 } 00033 00034 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _enabled_type; 00035 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > enabled; 00036 00037 00038 ROS_DEPRECATED uint32_t get_enabled_size() const { return (uint32_t)enabled.size(); } 00039 ROS_DEPRECATED void set_enabled_size(uint32_t size) { enabled.resize((size_t)size); } 00040 ROS_DEPRECATED void get_enabled_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->enabled; } 00041 ROS_DEPRECATED void set_enabled_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->enabled = vec; } 00042 private: 00043 static const char* __s_getDataType_() { return "arm_navigation_msgs/AllowedCollisionEntry"; } 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 "90d1ae1850840724bb043562fe3285fc"; } 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 "# whether or not collision checking is enabled\n\ 00058 bool[] enabled\n\ 00059 \n\ 00060 "; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00067 { 00068 ros::serialization::OStream stream(write_ptr, 1000000000); 00069 ros::serialization::serialize(stream, enabled); 00070 return stream.getData(); 00071 } 00072 00073 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00074 { 00075 ros::serialization::IStream stream(read_ptr, 1000000000); 00076 ros::serialization::deserialize(stream, enabled); 00077 return stream.getData(); 00078 } 00079 00080 ROS_DEPRECATED virtual uint32_t serializationLength() const 00081 { 00082 uint32_t size = 0; 00083 size += ros::serialization::serializationLength(enabled); 00084 return size; 00085 } 00086 00087 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > Ptr; 00088 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> const> ConstPtr; 00089 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00090 }; // struct AllowedCollisionEntry 00091 typedef ::arm_navigation_msgs::AllowedCollisionEntry_<std::allocator<void> > AllowedCollisionEntry; 00092 00093 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionEntry> AllowedCollisionEntryPtr; 00094 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionEntry const> AllowedCollisionEntryConstPtr; 00095 00096 00097 template<typename ContainerAllocator> 00098 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> & v) 00099 { 00100 ros::message_operations::Printer< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::stream(s, "", v); 00101 return s;} 00102 00103 } // namespace arm_navigation_msgs 00104 00105 namespace ros 00106 { 00107 namespace message_traits 00108 { 00109 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > : public TrueType {}; 00110 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> const> : public TrueType {}; 00111 template<class ContainerAllocator> 00112 struct MD5Sum< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > { 00113 static const char* value() 00114 { 00115 return "90d1ae1850840724bb043562fe3285fc"; 00116 } 00117 00118 static const char* value(const ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> &) { return value(); } 00119 static const uint64_t static_value1 = 0x90d1ae1850840724ULL; 00120 static const uint64_t static_value2 = 0xbb043562fe3285fcULL; 00121 }; 00122 00123 template<class ContainerAllocator> 00124 struct DataType< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > { 00125 static const char* value() 00126 { 00127 return "arm_navigation_msgs/AllowedCollisionEntry"; 00128 } 00129 00130 static const char* value(const ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> &) { return value(); } 00131 }; 00132 00133 template<class ContainerAllocator> 00134 struct Definition< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > { 00135 static const char* value() 00136 { 00137 return "# whether or not collision checking is enabled\n\ 00138 bool[] enabled\n\ 00139 \n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 } // namespace message_traits 00147 } // namespace ros 00148 00149 namespace ros 00150 { 00151 namespace serialization 00152 { 00153 00154 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > 00155 { 00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00157 { 00158 stream.next(m.enabled); 00159 } 00160 00161 ROS_DECLARE_ALLINONE_SERIALIZER; 00162 }; // struct AllowedCollisionEntry_ 00163 } // namespace serialization 00164 } // namespace ros 00165 00166 namespace ros 00167 { 00168 namespace message_operations 00169 { 00170 00171 template<class ContainerAllocator> 00172 struct Printer< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> > 00173 { 00174 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> & v) 00175 { 00176 s << indent << "enabled[]" << std::endl; 00177 for (size_t i = 0; i < v.enabled.size(); ++i) 00178 { 00179 s << indent << " enabled[" << i << "]: "; 00180 Printer<uint8_t>::stream(s, indent + " ", v.enabled[i]); 00181 } 00182 } 00183 }; 00184 00185 00186 } // namespace message_operations 00187 } // namespace ros 00188 00189 #endif // ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONENTRY_H 00190