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