00001
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONMATRIX_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONMATRIX_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/AllowedCollisionEntry.h"
00018
00019 namespace arm_navigation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct AllowedCollisionMatrix_ {
00023 typedef AllowedCollisionMatrix_<ContainerAllocator> Type;
00024
00025 AllowedCollisionMatrix_()
00026 : link_names()
00027 , entries()
00028 {
00029 }
00030
00031 AllowedCollisionMatrix_(const ContainerAllocator& _alloc)
00032 : link_names(_alloc)
00033 , entries(_alloc)
00034 {
00035 }
00036
00037 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _link_names_type;
00038 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > link_names;
00039
00040 typedef std::vector< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::other > _entries_type;
00041 std::vector< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::other > entries;
00042
00043
00044 ROS_DEPRECATED uint32_t get_link_names_size() const { return (uint32_t)link_names.size(); }
00045 ROS_DEPRECATED void set_link_names_size(uint32_t size) { link_names.resize((size_t)size); }
00046 ROS_DEPRECATED void get_link_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->link_names; }
00047 ROS_DEPRECATED void set_link_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->link_names = vec; }
00048 ROS_DEPRECATED uint32_t get_entries_size() const { return (uint32_t)entries.size(); }
00049 ROS_DEPRECATED void set_entries_size(uint32_t size) { entries.resize((size_t)size); }
00050 ROS_DEPRECATED void get_entries_vec(std::vector< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::other > & vec) const { vec = this->entries; }
00051 ROS_DEPRECATED void set_entries_vec(const std::vector< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::other > & vec) { this->entries = vec; }
00052 private:
00053 static const char* __s_getDataType_() { return "arm_navigation_msgs/AllowedCollisionMatrix"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00056
00057 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00058
00059 private:
00060 static const char* __s_getMD5Sum_() { return "c5785d58d2d0b6270738f65222dbec5d"; }
00061 public:
00062 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00063
00064 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00065
00066 private:
00067 static const char* __s_getMessageDefinition_() { return "# the list of link names in the matrix\n\
00068 string[] link_names\n\
00069 \n\
00070 # the individual entries in the allowed collision matrix\n\
00071 # symmetric, with same order as link_names\n\
00072 AllowedCollisionEntry[] entries\n\
00073 \n\
00074 ================================================================================\n\
00075 MSG: arm_navigation_msgs/AllowedCollisionEntry\n\
00076 # whether or not collision checking is enabled\n\
00077 bool[] enabled\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, link_names);
00089 ros::serialization::serialize(stream, entries);
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, link_names);
00097 ros::serialization::deserialize(stream, entries);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint32_t serializationLength() const
00102 {
00103 uint32_t size = 0;
00104 size += ros::serialization::serializationLength(link_names);
00105 size += ros::serialization::serializationLength(entries);
00106 return size;
00107 }
00108
00109 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> > Ptr;
00110 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> const> ConstPtr;
00111 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00112 };
00113 typedef ::arm_navigation_msgs::AllowedCollisionMatrix_<std::allocator<void> > AllowedCollisionMatrix;
00114
00115 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionMatrix> AllowedCollisionMatrixPtr;
00116 typedef boost::shared_ptr< ::arm_navigation_msgs::AllowedCollisionMatrix const> AllowedCollisionMatrixConstPtr;
00117
00118
00119 template<typename ContainerAllocator>
00120 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> & v)
00121 {
00122 ros::message_operations::Printer< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> >::stream(s, "", v);
00123 return s;}
00124
00125 }
00126
00127 namespace ros
00128 {
00129 namespace message_traits
00130 {
00131 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> > : public TrueType {};
00132 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> const> : public TrueType {};
00133 template<class ContainerAllocator>
00134 struct MD5Sum< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "c5785d58d2d0b6270738f65222dbec5d";
00138 }
00139
00140 static const char* value(const ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> &) { return value(); }
00141 static const uint64_t static_value1 = 0xc5785d58d2d0b627ULL;
00142 static const uint64_t static_value2 = 0x0738f65222dbec5dULL;
00143 };
00144
00145 template<class ContainerAllocator>
00146 struct DataType< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> > {
00147 static const char* value()
00148 {
00149 return "arm_navigation_msgs/AllowedCollisionMatrix";
00150 }
00151
00152 static const char* value(const ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> &) { return value(); }
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct Definition< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "# the list of link names in the matrix\n\
00160 string[] link_names\n\
00161 \n\
00162 # the individual entries in the allowed collision matrix\n\
00163 # symmetric, with same order as link_names\n\
00164 AllowedCollisionEntry[] entries\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: arm_navigation_msgs/AllowedCollisionEntry\n\
00168 # whether or not collision checking is enabled\n\
00169 bool[] enabled\n\
00170 \n\
00171 ";
00172 }
00173
00174 static const char* value(const ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> &) { return value(); }
00175 };
00176
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace serialization
00183 {
00184
00185 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> >
00186 {
00187 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00188 {
00189 stream.next(m.link_names);
00190 stream.next(m.entries);
00191 }
00192
00193 ROS_DECLARE_ALLINONE_SERIALIZER;
00194 };
00195 }
00196 }
00197
00198 namespace ros
00199 {
00200 namespace message_operations
00201 {
00202
00203 template<class ContainerAllocator>
00204 struct Printer< ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> >
00205 {
00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::AllowedCollisionMatrix_<ContainerAllocator> & v)
00207 {
00208 s << indent << "link_names[]" << std::endl;
00209 for (size_t i = 0; i < v.link_names.size(); ++i)
00210 {
00211 s << indent << " link_names[" << i << "]: ";
00212 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_names[i]);
00213 }
00214 s << indent << "entries[]" << std::endl;
00215 for (size_t i = 0; i < v.entries.size(); ++i)
00216 {
00217 s << indent << " entries[" << i << "]: ";
00218 s << std::endl;
00219 s << indent;
00220 Printer< ::arm_navigation_msgs::AllowedCollisionEntry_<ContainerAllocator> >::stream(s, indent + " ", v.entries[i]);
00221 }
00222 }
00223 };
00224
00225
00226 }
00227 }
00228
00229 #endif // ARM_NAVIGATION_MSGS_MESSAGE_ALLOWEDCOLLISIONMATRIX_H
00230