$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-uos/doc_stacks/2013-03-05_12-26-08.414952/katana_driver/katana_msgs/msg/GripperControllerState.msg */ 00002 #ifndef KATANA_MSGS_MESSAGE_GRIPPERCONTROLLERSTATE_H 00003 #define KATANA_MSGS_MESSAGE_GRIPPERCONTROLLERSTATE_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 "std_msgs/Header.h" 00018 00019 namespace katana_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct GripperControllerState_ { 00023 typedef GripperControllerState_<ContainerAllocator> Type; 00024 00025 GripperControllerState_() 00026 : header() 00027 , name() 00028 , actual() 00029 , desired() 00030 , error() 00031 { 00032 } 00033 00034 GripperControllerState_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , name(_alloc) 00037 , actual(_alloc) 00038 , desired(_alloc) 00039 , error(_alloc) 00040 { 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 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 > _name_type; 00047 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 > name; 00048 00049 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _actual_type; 00050 std::vector<double, typename ContainerAllocator::template rebind<double>::other > actual; 00051 00052 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _desired_type; 00053 std::vector<double, typename ContainerAllocator::template rebind<double>::other > desired; 00054 00055 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _error_type; 00056 std::vector<double, typename ContainerAllocator::template rebind<double>::other > error; 00057 00058 00059 ROS_DEPRECATED uint32_t get_name_size() const { return (uint32_t)name.size(); } 00060 ROS_DEPRECATED void set_name_size(uint32_t size) { name.resize((size_t)size); } 00061 ROS_DEPRECATED void get_name_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->name; } 00062 ROS_DEPRECATED void set_name_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->name = vec; } 00063 ROS_DEPRECATED uint32_t get_actual_size() const { return (uint32_t)actual.size(); } 00064 ROS_DEPRECATED void set_actual_size(uint32_t size) { actual.resize((size_t)size); } 00065 ROS_DEPRECATED void get_actual_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->actual; } 00066 ROS_DEPRECATED void set_actual_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->actual = vec; } 00067 ROS_DEPRECATED uint32_t get_desired_size() const { return (uint32_t)desired.size(); } 00068 ROS_DEPRECATED void set_desired_size(uint32_t size) { desired.resize((size_t)size); } 00069 ROS_DEPRECATED void get_desired_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->desired; } 00070 ROS_DEPRECATED void set_desired_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->desired = vec; } 00071 ROS_DEPRECATED uint32_t get_error_size() const { return (uint32_t)error.size(); } 00072 ROS_DEPRECATED void set_error_size(uint32_t size) { error.resize((size_t)size); } 00073 ROS_DEPRECATED void get_error_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->error; } 00074 ROS_DEPRECATED void set_error_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->error = vec; } 00075 private: 00076 static const char* __s_getDataType_() { return "katana_msgs/GripperControllerState"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00079 00080 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00081 00082 private: 00083 static const char* __s_getMD5Sum_() { return "57ba9ed166f48062eddf3c6e509f2dc0"; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00086 00087 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00088 00089 private: 00090 static const char* __s_getMessageDefinition_() { return "# The actual and desired angles (in radian) of the gripper joints, \n\ 00091 # and the error between actual and desired.\n\ 00092 #\n\ 00093 # Each joint is uniquely identified by its name.\n\ 00094 #\n\ 00095 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00096 # in one message have to be recorded at the same time.\n\ 00097 #\n\ 00098 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00099 #\n\ 00100 # All arrays in this message should have the same size.\n\ 00101 # This is the only way to uniquely associate the joint name with the correct\n\ 00102 # states.\n\ 00103 Header header\n\ 00104 \n\ 00105 string[] name\n\ 00106 float64[] actual\n\ 00107 float64[] desired\n\ 00108 float64[] error\n\ 00109 \n\ 00110 ================================================================================\n\ 00111 MSG: std_msgs/Header\n\ 00112 # Standard metadata for higher-level stamped data types.\n\ 00113 # This is generally used to communicate timestamped data \n\ 00114 # in a particular coordinate frame.\n\ 00115 # \n\ 00116 # sequence ID: consecutively increasing ID \n\ 00117 uint32 seq\n\ 00118 #Two-integer timestamp that is expressed as:\n\ 00119 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00120 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00121 # time-handling sugar is provided by the client library\n\ 00122 time stamp\n\ 00123 #Frame this data is associated with\n\ 00124 # 0: no frame\n\ 00125 # 1: global frame\n\ 00126 string frame_id\n\ 00127 \n\ 00128 "; } 00129 public: 00130 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00131 00132 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00133 00134 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00135 { 00136 ros::serialization::OStream stream(write_ptr, 1000000000); 00137 ros::serialization::serialize(stream, header); 00138 ros::serialization::serialize(stream, name); 00139 ros::serialization::serialize(stream, actual); 00140 ros::serialization::serialize(stream, desired); 00141 ros::serialization::serialize(stream, error); 00142 return stream.getData(); 00143 } 00144 00145 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00146 { 00147 ros::serialization::IStream stream(read_ptr, 1000000000); 00148 ros::serialization::deserialize(stream, header); 00149 ros::serialization::deserialize(stream, name); 00150 ros::serialization::deserialize(stream, actual); 00151 ros::serialization::deserialize(stream, desired); 00152 ros::serialization::deserialize(stream, error); 00153 return stream.getData(); 00154 } 00155 00156 ROS_DEPRECATED virtual uint32_t serializationLength() const 00157 { 00158 uint32_t size = 0; 00159 size += ros::serialization::serializationLength(header); 00160 size += ros::serialization::serializationLength(name); 00161 size += ros::serialization::serializationLength(actual); 00162 size += ros::serialization::serializationLength(desired); 00163 size += ros::serialization::serializationLength(error); 00164 return size; 00165 } 00166 00167 typedef boost::shared_ptr< ::katana_msgs::GripperControllerState_<ContainerAllocator> > Ptr; 00168 typedef boost::shared_ptr< ::katana_msgs::GripperControllerState_<ContainerAllocator> const> ConstPtr; 00169 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00170 }; // struct GripperControllerState 00171 typedef ::katana_msgs::GripperControllerState_<std::allocator<void> > GripperControllerState; 00172 00173 typedef boost::shared_ptr< ::katana_msgs::GripperControllerState> GripperControllerStatePtr; 00174 typedef boost::shared_ptr< ::katana_msgs::GripperControllerState const> GripperControllerStateConstPtr; 00175 00176 00177 template<typename ContainerAllocator> 00178 std::ostream& operator<<(std::ostream& s, const ::katana_msgs::GripperControllerState_<ContainerAllocator> & v) 00179 { 00180 ros::message_operations::Printer< ::katana_msgs::GripperControllerState_<ContainerAllocator> >::stream(s, "", v); 00181 return s;} 00182 00183 } // namespace katana_msgs 00184 00185 namespace ros 00186 { 00187 namespace message_traits 00188 { 00189 template<class ContainerAllocator> struct IsMessage< ::katana_msgs::GripperControllerState_<ContainerAllocator> > : public TrueType {}; 00190 template<class ContainerAllocator> struct IsMessage< ::katana_msgs::GripperControllerState_<ContainerAllocator> const> : public TrueType {}; 00191 template<class ContainerAllocator> 00192 struct MD5Sum< ::katana_msgs::GripperControllerState_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "57ba9ed166f48062eddf3c6e509f2dc0"; 00196 } 00197 00198 static const char* value(const ::katana_msgs::GripperControllerState_<ContainerAllocator> &) { return value(); } 00199 static const uint64_t static_value1 = 0x57ba9ed166f48062ULL; 00200 static const uint64_t static_value2 = 0xeddf3c6e509f2dc0ULL; 00201 }; 00202 00203 template<class ContainerAllocator> 00204 struct DataType< ::katana_msgs::GripperControllerState_<ContainerAllocator> > { 00205 static const char* value() 00206 { 00207 return "katana_msgs/GripperControllerState"; 00208 } 00209 00210 static const char* value(const ::katana_msgs::GripperControllerState_<ContainerAllocator> &) { return value(); } 00211 }; 00212 00213 template<class ContainerAllocator> 00214 struct Definition< ::katana_msgs::GripperControllerState_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "# The actual and desired angles (in radian) of the gripper joints, \n\ 00218 # and the error between actual and desired.\n\ 00219 #\n\ 00220 # Each joint is uniquely identified by its name.\n\ 00221 #\n\ 00222 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00223 # in one message have to be recorded at the same time.\n\ 00224 #\n\ 00225 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00226 #\n\ 00227 # All arrays in this message should have the same size.\n\ 00228 # This is the only way to uniquely associate the joint name with the correct\n\ 00229 # states.\n\ 00230 Header header\n\ 00231 \n\ 00232 string[] name\n\ 00233 float64[] actual\n\ 00234 float64[] desired\n\ 00235 float64[] error\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: std_msgs/Header\n\ 00239 # Standard metadata for higher-level stamped data types.\n\ 00240 # This is generally used to communicate timestamped data \n\ 00241 # in a particular coordinate frame.\n\ 00242 # \n\ 00243 # sequence ID: consecutively increasing ID \n\ 00244 uint32 seq\n\ 00245 #Two-integer timestamp that is expressed as:\n\ 00246 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00247 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00248 # time-handling sugar is provided by the client library\n\ 00249 time stamp\n\ 00250 #Frame this data is associated with\n\ 00251 # 0: no frame\n\ 00252 # 1: global frame\n\ 00253 string frame_id\n\ 00254 \n\ 00255 "; 00256 } 00257 00258 static const char* value(const ::katana_msgs::GripperControllerState_<ContainerAllocator> &) { return value(); } 00259 }; 00260 00261 template<class ContainerAllocator> struct HasHeader< ::katana_msgs::GripperControllerState_<ContainerAllocator> > : public TrueType {}; 00262 template<class ContainerAllocator> struct HasHeader< const ::katana_msgs::GripperControllerState_<ContainerAllocator> > : public TrueType {}; 00263 } // namespace message_traits 00264 } // namespace ros 00265 00266 namespace ros 00267 { 00268 namespace serialization 00269 { 00270 00271 template<class ContainerAllocator> struct Serializer< ::katana_msgs::GripperControllerState_<ContainerAllocator> > 00272 { 00273 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00274 { 00275 stream.next(m.header); 00276 stream.next(m.name); 00277 stream.next(m.actual); 00278 stream.next(m.desired); 00279 stream.next(m.error); 00280 } 00281 00282 ROS_DECLARE_ALLINONE_SERIALIZER; 00283 }; // struct GripperControllerState_ 00284 } // namespace serialization 00285 } // namespace ros 00286 00287 namespace ros 00288 { 00289 namespace message_operations 00290 { 00291 00292 template<class ContainerAllocator> 00293 struct Printer< ::katana_msgs::GripperControllerState_<ContainerAllocator> > 00294 { 00295 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::katana_msgs::GripperControllerState_<ContainerAllocator> & v) 00296 { 00297 s << indent << "header: "; 00298 s << std::endl; 00299 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00300 s << indent << "name[]" << std::endl; 00301 for (size_t i = 0; i < v.name.size(); ++i) 00302 { 00303 s << indent << " name[" << i << "]: "; 00304 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]); 00305 } 00306 s << indent << "actual[]" << std::endl; 00307 for (size_t i = 0; i < v.actual.size(); ++i) 00308 { 00309 s << indent << " actual[" << i << "]: "; 00310 Printer<double>::stream(s, indent + " ", v.actual[i]); 00311 } 00312 s << indent << "desired[]" << std::endl; 00313 for (size_t i = 0; i < v.desired.size(); ++i) 00314 { 00315 s << indent << " desired[" << i << "]: "; 00316 Printer<double>::stream(s, indent + " ", v.desired[i]); 00317 } 00318 s << indent << "error[]" << std::endl; 00319 for (size_t i = 0; i < v.error.size(); ++i) 00320 { 00321 s << indent << " error[" << i << "]: "; 00322 Printer<double>::stream(s, indent + " ", v.error[i]); 00323 } 00324 } 00325 }; 00326 00327 00328 } // namespace message_operations 00329 } // namespace ros 00330 00331 #endif // KATANA_MSGS_MESSAGE_GRIPPERCONTROLLERSTATE_H 00332