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