$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_calibration/doc_stacks/2013-03-01_16-35-11.769043/pr2_calibration/calibration_msgs/msg/ChainMeasurement.msg */ 00002 #ifndef CALIBRATION_MSGS_MESSAGE_CHAINMEASUREMENT_H 00003 #define CALIBRATION_MSGS_MESSAGE_CHAINMEASUREMENT_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 #include "sensor_msgs/JointState.h" 00019 00020 namespace calibration_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct ChainMeasurement_ { 00024 typedef ChainMeasurement_<ContainerAllocator> Type; 00025 00026 ChainMeasurement_() 00027 : header() 00028 , chain_id() 00029 , chain_state() 00030 { 00031 } 00032 00033 ChainMeasurement_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , chain_id(_alloc) 00036 , chain_state(_alloc) 00037 { 00038 } 00039 00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00041 ::std_msgs::Header_<ContainerAllocator> header; 00042 00043 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _chain_id_type; 00044 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > chain_id; 00045 00046 typedef ::sensor_msgs::JointState_<ContainerAllocator> _chain_state_type; 00047 ::sensor_msgs::JointState_<ContainerAllocator> chain_state; 00048 00049 00050 private: 00051 static const char* __s_getDataType_() { return "calibration_msgs/ChainMeasurement"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "a57d957972fc9bc34b14f2a3cac0fbae"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00066 string chain_id\n\ 00067 sensor_msgs/JointState chain_state\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: std_msgs/Header\n\ 00071 # Standard metadata for higher-level stamped data types.\n\ 00072 # This is generally used to communicate timestamped data \n\ 00073 # in a particular coordinate frame.\n\ 00074 # \n\ 00075 # sequence ID: consecutively increasing ID \n\ 00076 uint32 seq\n\ 00077 #Two-integer timestamp that is expressed as:\n\ 00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00080 # time-handling sugar is provided by the client library\n\ 00081 time stamp\n\ 00082 #Frame this data is associated with\n\ 00083 # 0: no frame\n\ 00084 # 1: global frame\n\ 00085 string frame_id\n\ 00086 \n\ 00087 ================================================================================\n\ 00088 MSG: sensor_msgs/JointState\n\ 00089 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00090 #\n\ 00091 # The state of each joint (revolute or prismatic) is defined by:\n\ 00092 # * the position of the joint (rad or m),\n\ 00093 # * the velocity of the joint (rad/s or m/s) and \n\ 00094 # * the effort that is applied in the joint (Nm or N).\n\ 00095 #\n\ 00096 # Each joint is uniquely identified by its name\n\ 00097 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00098 # in one message have to be recorded at the same time.\n\ 00099 #\n\ 00100 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00101 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00102 # effort associated with them, you can leave the effort array empty. \n\ 00103 #\n\ 00104 # All arrays in this message should have the same size, or be empty.\n\ 00105 # This is the only way to uniquely associate the joint name with the correct\n\ 00106 # states.\n\ 00107 \n\ 00108 \n\ 00109 Header header\n\ 00110 \n\ 00111 string[] name\n\ 00112 float64[] position\n\ 00113 float64[] velocity\n\ 00114 float64[] effort\n\ 00115 \n\ 00116 "; } 00117 public: 00118 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00119 00120 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00121 00122 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00123 { 00124 ros::serialization::OStream stream(write_ptr, 1000000000); 00125 ros::serialization::serialize(stream, header); 00126 ros::serialization::serialize(stream, chain_id); 00127 ros::serialization::serialize(stream, chain_state); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, header); 00135 ros::serialization::deserialize(stream, chain_id); 00136 ros::serialization::deserialize(stream, chain_state); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint32_t serializationLength() const 00141 { 00142 uint32_t size = 0; 00143 size += ros::serialization::serializationLength(header); 00144 size += ros::serialization::serializationLength(chain_id); 00145 size += ros::serialization::serializationLength(chain_state); 00146 return size; 00147 } 00148 00149 typedef boost::shared_ptr< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > Ptr; 00150 typedef boost::shared_ptr< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> const> ConstPtr; 00151 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00152 }; // struct ChainMeasurement 00153 typedef ::calibration_msgs::ChainMeasurement_<std::allocator<void> > ChainMeasurement; 00154 00155 typedef boost::shared_ptr< ::calibration_msgs::ChainMeasurement> ChainMeasurementPtr; 00156 typedef boost::shared_ptr< ::calibration_msgs::ChainMeasurement const> ChainMeasurementConstPtr; 00157 00158 00159 template<typename ContainerAllocator> 00160 std::ostream& operator<<(std::ostream& s, const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> & v) 00161 { 00162 ros::message_operations::Printer< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> >::stream(s, "", v); 00163 return s;} 00164 00165 } // namespace calibration_msgs 00166 00167 namespace ros 00168 { 00169 namespace message_traits 00170 { 00171 template<class ContainerAllocator> struct IsMessage< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > : public TrueType {}; 00172 template<class ContainerAllocator> struct IsMessage< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> const> : public TrueType {}; 00173 template<class ContainerAllocator> 00174 struct MD5Sum< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > { 00175 static const char* value() 00176 { 00177 return "a57d957972fc9bc34b14f2a3cac0fbae"; 00178 } 00179 00180 static const char* value(const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> &) { return value(); } 00181 static const uint64_t static_value1 = 0xa57d957972fc9bc3ULL; 00182 static const uint64_t static_value2 = 0x4b14f2a3cac0fbaeULL; 00183 }; 00184 00185 template<class ContainerAllocator> 00186 struct DataType< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > { 00187 static const char* value() 00188 { 00189 return "calibration_msgs/ChainMeasurement"; 00190 } 00191 00192 static const char* value(const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> &) { return value(); } 00193 }; 00194 00195 template<class ContainerAllocator> 00196 struct Definition< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "Header header\n\ 00200 string chain_id\n\ 00201 sensor_msgs/JointState chain_state\n\ 00202 \n\ 00203 ================================================================================\n\ 00204 MSG: std_msgs/Header\n\ 00205 # Standard metadata for higher-level stamped data types.\n\ 00206 # This is generally used to communicate timestamped data \n\ 00207 # in a particular coordinate frame.\n\ 00208 # \n\ 00209 # sequence ID: consecutively increasing ID \n\ 00210 uint32 seq\n\ 00211 #Two-integer timestamp that is expressed as:\n\ 00212 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00213 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00214 # time-handling sugar is provided by the client library\n\ 00215 time stamp\n\ 00216 #Frame this data is associated with\n\ 00217 # 0: no frame\n\ 00218 # 1: global frame\n\ 00219 string frame_id\n\ 00220 \n\ 00221 ================================================================================\n\ 00222 MSG: sensor_msgs/JointState\n\ 00223 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\ 00224 #\n\ 00225 # The state of each joint (revolute or prismatic) is defined by:\n\ 00226 # * the position of the joint (rad or m),\n\ 00227 # * the velocity of the joint (rad/s or m/s) and \n\ 00228 # * the effort that is applied in the joint (Nm or N).\n\ 00229 #\n\ 00230 # Each joint is uniquely identified by its name\n\ 00231 # The header specifies the time at which the joint states were recorded. All the joint states\n\ 00232 # in one message have to be recorded at the same time.\n\ 00233 #\n\ 00234 # This message consists of a multiple arrays, one for each part of the joint state. \n\ 00235 # The goal is to make each of the fields optional. When e.g. your joints have no\n\ 00236 # effort associated with them, you can leave the effort array empty. \n\ 00237 #\n\ 00238 # All arrays in this message should have the same size, or be empty.\n\ 00239 # This is the only way to uniquely associate the joint name with the correct\n\ 00240 # states.\n\ 00241 \n\ 00242 \n\ 00243 Header header\n\ 00244 \n\ 00245 string[] name\n\ 00246 float64[] position\n\ 00247 float64[] velocity\n\ 00248 float64[] effort\n\ 00249 \n\ 00250 "; 00251 } 00252 00253 static const char* value(const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> &) { return value(); } 00254 }; 00255 00256 template<class ContainerAllocator> struct HasHeader< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > : public TrueType {}; 00257 template<class ContainerAllocator> struct HasHeader< const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > : public TrueType {}; 00258 } // namespace message_traits 00259 } // namespace ros 00260 00261 namespace ros 00262 { 00263 namespace serialization 00264 { 00265 00266 template<class ContainerAllocator> struct Serializer< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > 00267 { 00268 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00269 { 00270 stream.next(m.header); 00271 stream.next(m.chain_id); 00272 stream.next(m.chain_state); 00273 } 00274 00275 ROS_DECLARE_ALLINONE_SERIALIZER; 00276 }; // struct ChainMeasurement_ 00277 } // namespace serialization 00278 } // namespace ros 00279 00280 namespace ros 00281 { 00282 namespace message_operations 00283 { 00284 00285 template<class ContainerAllocator> 00286 struct Printer< ::calibration_msgs::ChainMeasurement_<ContainerAllocator> > 00287 { 00288 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::calibration_msgs::ChainMeasurement_<ContainerAllocator> & v) 00289 { 00290 s << indent << "header: "; 00291 s << std::endl; 00292 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00293 s << indent << "chain_id: "; 00294 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.chain_id); 00295 s << indent << "chain_state: "; 00296 s << std::endl; 00297 Printer< ::sensor_msgs::JointState_<ContainerAllocator> >::stream(s, indent + " ", v.chain_state); 00298 } 00299 }; 00300 00301 00302 } // namespace message_operations 00303 } // namespace ros 00304 00305 #endif // CALIBRATION_MSGS_MESSAGE_CHAINMEASUREMENT_H 00306