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