$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arm_navigation/doc_stacks/2013-03-01_14-05-03.553953/arm_navigation/arm_navigation_msgs/msg/MultiDOFJointState.msg */ 00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_MULTIDOFJOINTSTATE_H 00003 #define ARM_NAVIGATION_MSGS_MESSAGE_MULTIDOFJOINTSTATE_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 "geometry_msgs/Pose.h" 00018 00019 namespace arm_navigation_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct MultiDOFJointState_ { 00023 typedef MultiDOFJointState_<ContainerAllocator> Type; 00024 00025 MultiDOFJointState_() 00026 : stamp() 00027 , joint_names() 00028 , frame_ids() 00029 , child_frame_ids() 00030 , poses() 00031 { 00032 } 00033 00034 MultiDOFJointState_(const ContainerAllocator& _alloc) 00035 : stamp() 00036 , joint_names(_alloc) 00037 , frame_ids(_alloc) 00038 , child_frame_ids(_alloc) 00039 , poses(_alloc) 00040 { 00041 } 00042 00043 typedef ros::Time _stamp_type; 00044 ros::Time stamp; 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 > _joint_names_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 > joint_names; 00048 00049 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 > _frame_ids_type; 00050 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 > frame_ids; 00051 00052 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 > _child_frame_ids_type; 00053 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 > child_frame_ids; 00054 00055 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _poses_type; 00056 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > poses; 00057 00058 00059 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00060 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00061 ROS_DEPRECATED void get_joint_names_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->joint_names; } 00062 ROS_DEPRECATED void set_joint_names_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->joint_names = vec; } 00063 ROS_DEPRECATED uint32_t get_frame_ids_size() const { return (uint32_t)frame_ids.size(); } 00064 ROS_DEPRECATED void set_frame_ids_size(uint32_t size) { frame_ids.resize((size_t)size); } 00065 ROS_DEPRECATED void get_frame_ids_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->frame_ids; } 00066 ROS_DEPRECATED void set_frame_ids_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->frame_ids = vec; } 00067 ROS_DEPRECATED uint32_t get_child_frame_ids_size() const { return (uint32_t)child_frame_ids.size(); } 00068 ROS_DEPRECATED void set_child_frame_ids_size(uint32_t size) { child_frame_ids.resize((size_t)size); } 00069 ROS_DEPRECATED void get_child_frame_ids_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->child_frame_ids; } 00070 ROS_DEPRECATED void set_child_frame_ids_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->child_frame_ids = vec; } 00071 ROS_DEPRECATED uint32_t get_poses_size() const { return (uint32_t)poses.size(); } 00072 ROS_DEPRECATED void set_poses_size(uint32_t size) { poses.resize((size_t)size); } 00073 ROS_DEPRECATED void get_poses_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->poses; } 00074 ROS_DEPRECATED void set_poses_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->poses = vec; } 00075 private: 00076 static const char* __s_getDataType_() { return "arm_navigation_msgs/MultiDOFJointState"; } 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 "ddd04f13c06870db031db8d5c0a6379d"; } 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 "#A representation of a multi-dof joint state\n\ 00091 time stamp\n\ 00092 string[] joint_names\n\ 00093 string[] frame_ids\n\ 00094 string[] child_frame_ids\n\ 00095 geometry_msgs/Pose[] poses\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: geometry_msgs/Pose\n\ 00099 # A representation of pose in free space, composed of postion and orientation. \n\ 00100 Point position\n\ 00101 Quaternion orientation\n\ 00102 \n\ 00103 ================================================================================\n\ 00104 MSG: geometry_msgs/Point\n\ 00105 # This contains the position of a point in free space\n\ 00106 float64 x\n\ 00107 float64 y\n\ 00108 float64 z\n\ 00109 \n\ 00110 ================================================================================\n\ 00111 MSG: geometry_msgs/Quaternion\n\ 00112 # This represents an orientation in free space in quaternion form.\n\ 00113 \n\ 00114 float64 x\n\ 00115 float64 y\n\ 00116 float64 z\n\ 00117 float64 w\n\ 00118 \n\ 00119 "; } 00120 public: 00121 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00124 00125 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00126 { 00127 ros::serialization::OStream stream(write_ptr, 1000000000); 00128 ros::serialization::serialize(stream, stamp); 00129 ros::serialization::serialize(stream, joint_names); 00130 ros::serialization::serialize(stream, frame_ids); 00131 ros::serialization::serialize(stream, child_frame_ids); 00132 ros::serialization::serialize(stream, poses); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00137 { 00138 ros::serialization::IStream stream(read_ptr, 1000000000); 00139 ros::serialization::deserialize(stream, stamp); 00140 ros::serialization::deserialize(stream, joint_names); 00141 ros::serialization::deserialize(stream, frame_ids); 00142 ros::serialization::deserialize(stream, child_frame_ids); 00143 ros::serialization::deserialize(stream, poses); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(stamp); 00151 size += ros::serialization::serializationLength(joint_names); 00152 size += ros::serialization::serializationLength(frame_ids); 00153 size += ros::serialization::serializationLength(child_frame_ids); 00154 size += ros::serialization::serializationLength(poses); 00155 return size; 00156 } 00157 00158 typedef boost::shared_ptr< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > Ptr; 00159 typedef boost::shared_ptr< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> const> ConstPtr; 00160 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00161 }; // struct MultiDOFJointState 00162 typedef ::arm_navigation_msgs::MultiDOFJointState_<std::allocator<void> > MultiDOFJointState; 00163 00164 typedef boost::shared_ptr< ::arm_navigation_msgs::MultiDOFJointState> MultiDOFJointStatePtr; 00165 typedef boost::shared_ptr< ::arm_navigation_msgs::MultiDOFJointState const> MultiDOFJointStateConstPtr; 00166 00167 00168 template<typename ContainerAllocator> 00169 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> & v) 00170 { 00171 ros::message_operations::Printer< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> >::stream(s, "", v); 00172 return s;} 00173 00174 } // namespace arm_navigation_msgs 00175 00176 namespace ros 00177 { 00178 namespace message_traits 00179 { 00180 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > : public TrueType {}; 00181 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> const> : public TrueType {}; 00182 template<class ContainerAllocator> 00183 struct MD5Sum< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > { 00184 static const char* value() 00185 { 00186 return "ddd04f13c06870db031db8d5c0a6379d"; 00187 } 00188 00189 static const char* value(const ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> &) { return value(); } 00190 static const uint64_t static_value1 = 0xddd04f13c06870dbULL; 00191 static const uint64_t static_value2 = 0x031db8d5c0a6379dULL; 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct DataType< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "arm_navigation_msgs/MultiDOFJointState"; 00199 } 00200 00201 static const char* value(const ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> &) { return value(); } 00202 }; 00203 00204 template<class ContainerAllocator> 00205 struct Definition< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > { 00206 static const char* value() 00207 { 00208 return "#A representation of a multi-dof joint state\n\ 00209 time stamp\n\ 00210 string[] joint_names\n\ 00211 string[] frame_ids\n\ 00212 string[] child_frame_ids\n\ 00213 geometry_msgs/Pose[] poses\n\ 00214 \n\ 00215 ================================================================================\n\ 00216 MSG: geometry_msgs/Pose\n\ 00217 # A representation of pose in free space, composed of postion and orientation. \n\ 00218 Point position\n\ 00219 Quaternion orientation\n\ 00220 \n\ 00221 ================================================================================\n\ 00222 MSG: geometry_msgs/Point\n\ 00223 # This contains the position of a point in free space\n\ 00224 float64 x\n\ 00225 float64 y\n\ 00226 float64 z\n\ 00227 \n\ 00228 ================================================================================\n\ 00229 MSG: geometry_msgs/Quaternion\n\ 00230 # This represents an orientation in free space in quaternion form.\n\ 00231 \n\ 00232 float64 x\n\ 00233 float64 y\n\ 00234 float64 z\n\ 00235 float64 w\n\ 00236 \n\ 00237 "; 00238 } 00239 00240 static const char* value(const ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> &) { return value(); } 00241 }; 00242 00243 } // namespace message_traits 00244 } // namespace ros 00245 00246 namespace ros 00247 { 00248 namespace serialization 00249 { 00250 00251 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > 00252 { 00253 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00254 { 00255 stream.next(m.stamp); 00256 stream.next(m.joint_names); 00257 stream.next(m.frame_ids); 00258 stream.next(m.child_frame_ids); 00259 stream.next(m.poses); 00260 } 00261 00262 ROS_DECLARE_ALLINONE_SERIALIZER; 00263 }; // struct MultiDOFJointState_ 00264 } // namespace serialization 00265 } // namespace ros 00266 00267 namespace ros 00268 { 00269 namespace message_operations 00270 { 00271 00272 template<class ContainerAllocator> 00273 struct Printer< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> > 00274 { 00275 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> & v) 00276 { 00277 s << indent << "stamp: "; 00278 Printer<ros::Time>::stream(s, indent + " ", v.stamp); 00279 s << indent << "joint_names[]" << std::endl; 00280 for (size_t i = 0; i < v.joint_names.size(); ++i) 00281 { 00282 s << indent << " joint_names[" << i << "]: "; 00283 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00284 } 00285 s << indent << "frame_ids[]" << std::endl; 00286 for (size_t i = 0; i < v.frame_ids.size(); ++i) 00287 { 00288 s << indent << " frame_ids[" << i << "]: "; 00289 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.frame_ids[i]); 00290 } 00291 s << indent << "child_frame_ids[]" << std::endl; 00292 for (size_t i = 0; i < v.child_frame_ids.size(); ++i) 00293 { 00294 s << indent << " child_frame_ids[" << i << "]: "; 00295 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.child_frame_ids[i]); 00296 } 00297 s << indent << "poses[]" << std::endl; 00298 for (size_t i = 0; i < v.poses.size(); ++i) 00299 { 00300 s << indent << " poses[" << i << "]: "; 00301 s << std::endl; 00302 s << indent; 00303 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.poses[i]); 00304 } 00305 } 00306 }; 00307 00308 00309 } // namespace message_operations 00310 } // namespace ros 00311 00312 #endif // ARM_NAVIGATION_MSGS_MESSAGE_MULTIDOFJOINTSTATE_H 00313