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