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