$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/pr2_mechanism_controllers/msg/TrackLinkCmd.msg */ 00002 #ifndef PR2_MECHANISM_CONTROLLERS_MESSAGE_TRACKLINKCMD_H 00003 #define PR2_MECHANISM_CONTROLLERS_MESSAGE_TRACKLINKCMD_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 "geometry_msgs/Point.h" 00018 00019 namespace pr2_mechanism_controllers 00020 { 00021 template <class ContainerAllocator> 00022 struct TrackLinkCmd_ { 00023 typedef TrackLinkCmd_<ContainerAllocator> Type; 00024 00025 TrackLinkCmd_() 00026 : enable(0) 00027 , link_name() 00028 , point() 00029 { 00030 } 00031 00032 TrackLinkCmd_(const ContainerAllocator& _alloc) 00033 : enable(0) 00034 , link_name(_alloc) 00035 , point(_alloc) 00036 { 00037 } 00038 00039 typedef int8_t _enable_type; 00040 int8_t enable; 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_name_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_name; 00044 00045 typedef ::geometry_msgs::Point_<ContainerAllocator> _point_type; 00046 ::geometry_msgs::Point_<ContainerAllocator> point; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "pr2_mechanism_controllers/TrackLinkCmd"; } 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 "08ccfe603e4e21c792896712c3b72de2"; } 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 "int8 enable\n\ 00065 string link_name\n\ 00066 geometry_msgs/Point point\n\ 00067 \n\ 00068 ================================================================================\n\ 00069 MSG: geometry_msgs/Point\n\ 00070 # This contains the position of a point in free space\n\ 00071 float64 x\n\ 00072 float64 y\n\ 00073 float64 z\n\ 00074 \n\ 00075 "; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00082 { 00083 ros::serialization::OStream stream(write_ptr, 1000000000); 00084 ros::serialization::serialize(stream, enable); 00085 ros::serialization::serialize(stream, link_name); 00086 ros::serialization::serialize(stream, point); 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, enable); 00094 ros::serialization::deserialize(stream, link_name); 00095 ros::serialization::deserialize(stream, point); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint32_t serializationLength() const 00100 { 00101 uint32_t size = 0; 00102 size += ros::serialization::serializationLength(enable); 00103 size += ros::serialization::serializationLength(link_name); 00104 size += ros::serialization::serializationLength(point); 00105 return size; 00106 } 00107 00108 typedef boost::shared_ptr< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > Ptr; 00109 typedef boost::shared_ptr< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> const> ConstPtr; 00110 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00111 }; // struct TrackLinkCmd 00112 typedef ::pr2_mechanism_controllers::TrackLinkCmd_<std::allocator<void> > TrackLinkCmd; 00113 00114 typedef boost::shared_ptr< ::pr2_mechanism_controllers::TrackLinkCmd> TrackLinkCmdPtr; 00115 typedef boost::shared_ptr< ::pr2_mechanism_controllers::TrackLinkCmd const> TrackLinkCmdConstPtr; 00116 00117 00118 template<typename ContainerAllocator> 00119 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> & v) 00120 { 00121 ros::message_operations::Printer< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> >::stream(s, "", v); 00122 return s;} 00123 00124 } // namespace pr2_mechanism_controllers 00125 00126 namespace ros 00127 { 00128 namespace message_traits 00129 { 00130 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > : public TrueType {}; 00131 template<class ContainerAllocator> struct IsMessage< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> const> : public TrueType {}; 00132 template<class ContainerAllocator> 00133 struct MD5Sum< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > { 00134 static const char* value() 00135 { 00136 return "08ccfe603e4e21c792896712c3b72de2"; 00137 } 00138 00139 static const char* value(const ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> &) { return value(); } 00140 static const uint64_t static_value1 = 0x08ccfe603e4e21c7ULL; 00141 static const uint64_t static_value2 = 0x92896712c3b72de2ULL; 00142 }; 00143 00144 template<class ContainerAllocator> 00145 struct DataType< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "pr2_mechanism_controllers/TrackLinkCmd"; 00149 } 00150 00151 static const char* value(const ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> &) { return value(); } 00152 }; 00153 00154 template<class ContainerAllocator> 00155 struct Definition< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > { 00156 static const char* value() 00157 { 00158 return "int8 enable\n\ 00159 string link_name\n\ 00160 geometry_msgs/Point point\n\ 00161 \n\ 00162 ================================================================================\n\ 00163 MSG: geometry_msgs/Point\n\ 00164 # This contains the position of a point in free space\n\ 00165 float64 x\n\ 00166 float64 y\n\ 00167 float64 z\n\ 00168 \n\ 00169 "; 00170 } 00171 00172 static const char* value(const ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.enable); 00188 stream.next(m.link_name); 00189 stream.next(m.point); 00190 } 00191 00192 ROS_DECLARE_ALLINONE_SERIALIZER; 00193 }; // struct TrackLinkCmd_ 00194 } // namespace serialization 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace message_operations 00200 { 00201 00202 template<class ContainerAllocator> 00203 struct Printer< ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> > 00204 { 00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_controllers::TrackLinkCmd_<ContainerAllocator> & v) 00206 { 00207 s << indent << "enable: "; 00208 Printer<int8_t>::stream(s, indent + " ", v.enable); 00209 s << indent << "link_name: "; 00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name); 00211 s << indent << "point: "; 00212 s << std::endl; 00213 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.point); 00214 } 00215 }; 00216 00217 00218 } // namespace message_operations 00219 } // namespace ros 00220 00221 #endif // PR2_MECHANISM_CONTROLLERS_MESSAGE_TRACKLINKCMD_H 00222