$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_interaction_primitives/msg/MoveArmToPreGrasp.msg */ 00002 #ifndef SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEARMTOPREGRASP_H 00003 #define SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEARMTOPREGRASP_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 srs_interaction_primitives 00019 { 00020 template <class ContainerAllocator> 00021 struct MoveArmToPreGrasp_ { 00022 typedef MoveArmToPreGrasp_<ContainerAllocator> Type; 00023 00024 MoveArmToPreGrasp_() 00025 : marker_name() 00026 , pos_id(0) 00027 { 00028 } 00029 00030 MoveArmToPreGrasp_(const ContainerAllocator& _alloc) 00031 : marker_name(_alloc) 00032 , pos_id(0) 00033 { 00034 } 00035 00036 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _marker_name_type; 00037 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > marker_name; 00038 00039 typedef uint8_t _pos_id_type; 00040 uint8_t pos_id; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "srs_interaction_primitives/MoveArmToPreGrasp"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "936778fe3aa277975862a8422206acf6"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "string marker_name\n\ 00059 uint8 pos_id\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, marker_name); 00070 ros::serialization::serialize(stream, pos_id); 00071 return stream.getData(); 00072 } 00073 00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00075 { 00076 ros::serialization::IStream stream(read_ptr, 1000000000); 00077 ros::serialization::deserialize(stream, marker_name); 00078 ros::serialization::deserialize(stream, pos_id); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint32_t serializationLength() const 00083 { 00084 uint32_t size = 0; 00085 size += ros::serialization::serializationLength(marker_name); 00086 size += ros::serialization::serializationLength(pos_id); 00087 return size; 00088 } 00089 00090 typedef boost::shared_ptr< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > Ptr; 00091 typedef boost::shared_ptr< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> const> ConstPtr; 00092 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00093 }; // struct MoveArmToPreGrasp 00094 typedef ::srs_interaction_primitives::MoveArmToPreGrasp_<std::allocator<void> > MoveArmToPreGrasp; 00095 00096 typedef boost::shared_ptr< ::srs_interaction_primitives::MoveArmToPreGrasp> MoveArmToPreGraspPtr; 00097 typedef boost::shared_ptr< ::srs_interaction_primitives::MoveArmToPreGrasp const> MoveArmToPreGraspConstPtr; 00098 00099 00100 template<typename ContainerAllocator> 00101 std::ostream& operator<<(std::ostream& s, const ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> & v) 00102 { 00103 ros::message_operations::Printer< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> >::stream(s, "", v); 00104 return s;} 00105 00106 } // namespace srs_interaction_primitives 00107 00108 namespace ros 00109 { 00110 namespace message_traits 00111 { 00112 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > : public TrueType {}; 00113 template<class ContainerAllocator> struct IsMessage< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> const> : public TrueType {}; 00114 template<class ContainerAllocator> 00115 struct MD5Sum< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > { 00116 static const char* value() 00117 { 00118 return "936778fe3aa277975862a8422206acf6"; 00119 } 00120 00121 static const char* value(const ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> &) { return value(); } 00122 static const uint64_t static_value1 = 0x936778fe3aa27797ULL; 00123 static const uint64_t static_value2 = 0x5862a8422206acf6ULL; 00124 }; 00125 00126 template<class ContainerAllocator> 00127 struct DataType< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "srs_interaction_primitives/MoveArmToPreGrasp"; 00131 } 00132 00133 static const char* value(const ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> &) { return value(); } 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct Definition< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "string marker_name\n\ 00141 uint8 pos_id\n\ 00142 "; 00143 } 00144 00145 static const char* value(const ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 } // namespace message_traits 00149 } // namespace ros 00150 00151 namespace ros 00152 { 00153 namespace serialization 00154 { 00155 00156 template<class ContainerAllocator> struct Serializer< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > 00157 { 00158 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00159 { 00160 stream.next(m.marker_name); 00161 stream.next(m.pos_id); 00162 } 00163 00164 ROS_DECLARE_ALLINONE_SERIALIZER; 00165 }; // struct MoveArmToPreGrasp_ 00166 } // namespace serialization 00167 } // namespace ros 00168 00169 namespace ros 00170 { 00171 namespace message_operations 00172 { 00173 00174 template<class ContainerAllocator> 00175 struct Printer< ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> > 00176 { 00177 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_interaction_primitives::MoveArmToPreGrasp_<ContainerAllocator> & v) 00178 { 00179 s << indent << "marker_name: "; 00180 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.marker_name); 00181 s << indent << "pos_id: "; 00182 Printer<uint8_t>::stream(s, indent + " ", v.pos_id); 00183 } 00184 }; 00185 00186 00187 } // namespace message_operations 00188 } // namespace ros 00189 00190 #endif // SRS_INTERACTION_PRIMITIVES_MESSAGE_MOVEARMTOPREGRASP_H 00191