00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_LINKPADDING_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_LINKPADDING_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
00014 namespace motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct LinkPadding_ : public ros::Message
00018 {
00019 typedef LinkPadding_<ContainerAllocator> Type;
00020
00021 LinkPadding_()
00022 : link_name()
00023 , padding(0.0)
00024 {
00025 }
00026
00027 LinkPadding_(const ContainerAllocator& _alloc)
00028 : link_name(_alloc)
00029 , padding(0.0)
00030 {
00031 }
00032
00033 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_name_type;
00034 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_name;
00035
00036 typedef double _padding_type;
00037 double padding;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "motion_planning_msgs/LinkPadding"; }
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 "b3ea75670df55c696fedee97774d5947"; }
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 "#name for the link\n\
00056 string link_name\n\
00057 \n\
00058 # padding to apply to the link\n\
00059 float64 padding\n\
00060 \n\
00061 "; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00066
00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00068 {
00069 ros::serialization::OStream stream(write_ptr, 1000000000);
00070 ros::serialization::serialize(stream, link_name);
00071 ros::serialization::serialize(stream, padding);
00072 return stream.getData();
00073 }
00074
00075 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00076 {
00077 ros::serialization::IStream stream(read_ptr, 1000000000);
00078 ros::serialization::deserialize(stream, link_name);
00079 ros::serialization::deserialize(stream, padding);
00080 return stream.getData();
00081 }
00082
00083 ROS_DEPRECATED virtual uint32_t serializationLength() const
00084 {
00085 uint32_t size = 0;
00086 size += ros::serialization::serializationLength(link_name);
00087 size += ros::serialization::serializationLength(padding);
00088 return size;
00089 }
00090
00091 typedef boost::shared_ptr< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> const> ConstPtr;
00093 };
00094 typedef ::motion_planning_msgs::LinkPadding_<std::allocator<void> > LinkPadding;
00095
00096 typedef boost::shared_ptr< ::motion_planning_msgs::LinkPadding> LinkPaddingPtr;
00097 typedef boost::shared_ptr< ::motion_planning_msgs::LinkPadding const> LinkPaddingConstPtr;
00098
00099
00100 template<typename ContainerAllocator>
00101 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::LinkPadding_<ContainerAllocator> & v)
00102 {
00103 ros::message_operations::Printer< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> >::stream(s, "", v);
00104 return s;}
00105
00106 }
00107
00108 namespace ros
00109 {
00110 namespace message_traits
00111 {
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "b3ea75670df55c696fedee97774d5947";
00117 }
00118
00119 static const char* value(const ::motion_planning_msgs::LinkPadding_<ContainerAllocator> &) { return value(); }
00120 static const uint64_t static_value1 = 0xb3ea75670df55c69ULL;
00121 static const uint64_t static_value2 = 0x6fedee97774d5947ULL;
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct DataType< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "motion_planning_msgs/LinkPadding";
00129 }
00130
00131 static const char* value(const ::motion_planning_msgs::LinkPadding_<ContainerAllocator> &) { return value(); }
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct Definition< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "#name for the link\n\
00139 string link_name\n\
00140 \n\
00141 # padding to apply to the link\n\
00142 float64 padding\n\
00143 \n\
00144 ";
00145 }
00146
00147 static const char* value(const ::motion_planning_msgs::LinkPadding_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157
00158 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> >
00159 {
00160 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161 {
00162 stream.next(m.link_name);
00163 stream.next(m.padding);
00164 }
00165
00166 ROS_DECLARE_ALLINONE_SERIALIZER;
00167 };
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175
00176 template<class ContainerAllocator>
00177 struct Printer< ::motion_planning_msgs::LinkPadding_<ContainerAllocator> >
00178 {
00179 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::LinkPadding_<ContainerAllocator> & v)
00180 {
00181 s << indent << "link_name: ";
00182 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name);
00183 s << indent << "padding: ";
00184 Printer<double>::stream(s, indent + " ", v.padding);
00185 }
00186 };
00187
00188
00189 }
00190 }
00191
00192 #endif // MOTION_PLANNING_MSGS_MESSAGE_LINKPADDING_H
00193