$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simulator_gazebo/doc_stacks/2013-03-02_13-33-37.038309/simulator_gazebo/gazebo/msg/LinkStates.msg */ 00002 #ifndef GAZEBO_MESSAGE_LINKSTATES_H 00003 #define GAZEBO_MESSAGE_LINKSTATES_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 #include "geometry_msgs/Twist.h" 00019 00020 namespace gazebo 00021 { 00022 template <class ContainerAllocator> 00023 struct LinkStates_ { 00024 typedef LinkStates_<ContainerAllocator> Type; 00025 00026 LinkStates_() 00027 : name() 00028 , pose() 00029 , twist() 00030 { 00031 } 00032 00033 LinkStates_(const ContainerAllocator& _alloc) 00034 : name(_alloc) 00035 , pose(_alloc) 00036 , twist(_alloc) 00037 { 00038 } 00039 00040 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 > _name_type; 00041 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 > name; 00042 00043 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _pose_type; 00044 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > pose; 00045 00046 typedef std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > _twist_type; 00047 std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > twist; 00048 00049 00050 ROS_DEPRECATED uint32_t get_name_size() const { return (uint32_t)name.size(); } 00051 ROS_DEPRECATED void set_name_size(uint32_t size) { name.resize((size_t)size); } 00052 ROS_DEPRECATED void get_name_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->name; } 00053 ROS_DEPRECATED void set_name_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->name = vec; } 00054 ROS_DEPRECATED uint32_t get_pose_size() const { return (uint32_t)pose.size(); } 00055 ROS_DEPRECATED void set_pose_size(uint32_t size) { pose.resize((size_t)size); } 00056 ROS_DEPRECATED void get_pose_vec(std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) const { vec = this->pose; } 00057 ROS_DEPRECATED void set_pose_vec(const std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > & vec) { this->pose = vec; } 00058 ROS_DEPRECATED uint32_t get_twist_size() const { return (uint32_t)twist.size(); } 00059 ROS_DEPRECATED void set_twist_size(uint32_t size) { twist.resize((size_t)size); } 00060 ROS_DEPRECATED void get_twist_vec(std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > & vec) const { vec = this->twist; } 00061 ROS_DEPRECATED void set_twist_vec(const std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > & vec) { this->twist = vec; } 00062 private: 00063 static const char* __s_getDataType_() { return "gazebo/LinkStates"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00066 00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00068 00069 private: 00070 static const char* __s_getMD5Sum_() { return "48c080191eb15c41858319b4d8a609c2"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00073 00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00075 00076 private: 00077 static const char* __s_getMessageDefinition_() { return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00078 \n\ 00079 # broadcast all link states in world frame\n\ 00080 string[] name # link names\n\ 00081 geometry_msgs/Pose[] pose # desired pose in world frame\n\ 00082 geometry_msgs/Twist[] twist # desired twist in world frame\n\ 00083 \n\ 00084 ================================================================================\n\ 00085 MSG: geometry_msgs/Pose\n\ 00086 # A representation of pose in free space, composed of postion and orientation. \n\ 00087 Point position\n\ 00088 Quaternion orientation\n\ 00089 \n\ 00090 ================================================================================\n\ 00091 MSG: geometry_msgs/Point\n\ 00092 # This contains the position of a point in free space\n\ 00093 float64 x\n\ 00094 float64 y\n\ 00095 float64 z\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: geometry_msgs/Quaternion\n\ 00099 # This represents an orientation in free space in quaternion form.\n\ 00100 \n\ 00101 float64 x\n\ 00102 float64 y\n\ 00103 float64 z\n\ 00104 float64 w\n\ 00105 \n\ 00106 ================================================================================\n\ 00107 MSG: geometry_msgs/Twist\n\ 00108 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00109 Vector3 linear\n\ 00110 Vector3 angular\n\ 00111 \n\ 00112 ================================================================================\n\ 00113 MSG: geometry_msgs/Vector3\n\ 00114 # This represents a vector in free space. \n\ 00115 \n\ 00116 float64 x\n\ 00117 float64 y\n\ 00118 float64 z\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, name); 00129 ros::serialization::serialize(stream, pose); 00130 ros::serialization::serialize(stream, twist); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00135 { 00136 ros::serialization::IStream stream(read_ptr, 1000000000); 00137 ros::serialization::deserialize(stream, name); 00138 ros::serialization::deserialize(stream, pose); 00139 ros::serialization::deserialize(stream, twist); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint32_t serializationLength() const 00144 { 00145 uint32_t size = 0; 00146 size += ros::serialization::serializationLength(name); 00147 size += ros::serialization::serializationLength(pose); 00148 size += ros::serialization::serializationLength(twist); 00149 return size; 00150 } 00151 00152 typedef boost::shared_ptr< ::gazebo::LinkStates_<ContainerAllocator> > Ptr; 00153 typedef boost::shared_ptr< ::gazebo::LinkStates_<ContainerAllocator> const> ConstPtr; 00154 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00155 }; // struct LinkStates 00156 typedef ::gazebo::LinkStates_<std::allocator<void> > LinkStates; 00157 00158 typedef boost::shared_ptr< ::gazebo::LinkStates> LinkStatesPtr; 00159 typedef boost::shared_ptr< ::gazebo::LinkStates const> LinkStatesConstPtr; 00160 00161 00162 template<typename ContainerAllocator> 00163 std::ostream& operator<<(std::ostream& s, const ::gazebo::LinkStates_<ContainerAllocator> & v) 00164 { 00165 ros::message_operations::Printer< ::gazebo::LinkStates_<ContainerAllocator> >::stream(s, "", v); 00166 return s;} 00167 00168 } // namespace gazebo 00169 00170 namespace ros 00171 { 00172 namespace message_traits 00173 { 00174 template<class ContainerAllocator> struct IsMessage< ::gazebo::LinkStates_<ContainerAllocator> > : public TrueType {}; 00175 template<class ContainerAllocator> struct IsMessage< ::gazebo::LinkStates_<ContainerAllocator> const> : public TrueType {}; 00176 template<class ContainerAllocator> 00177 struct MD5Sum< ::gazebo::LinkStates_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "48c080191eb15c41858319b4d8a609c2"; 00181 } 00182 00183 static const char* value(const ::gazebo::LinkStates_<ContainerAllocator> &) { return value(); } 00184 static const uint64_t static_value1 = 0x48c080191eb15c41ULL; 00185 static const uint64_t static_value2 = 0x858319b4d8a609c2ULL; 00186 }; 00187 00188 template<class ContainerAllocator> 00189 struct DataType< ::gazebo::LinkStates_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "gazebo/LinkStates"; 00193 } 00194 00195 static const char* value(const ::gazebo::LinkStates_<ContainerAllocator> &) { return value(); } 00196 }; 00197 00198 template<class ContainerAllocator> 00199 struct Definition< ::gazebo::LinkStates_<ContainerAllocator> > { 00200 static const char* value() 00201 { 00202 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00203 \n\ 00204 # broadcast all link states in world frame\n\ 00205 string[] name # link names\n\ 00206 geometry_msgs/Pose[] pose # desired pose in world frame\n\ 00207 geometry_msgs/Twist[] twist # desired twist in world frame\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 ================================================================================\n\ 00232 MSG: geometry_msgs/Twist\n\ 00233 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00234 Vector3 linear\n\ 00235 Vector3 angular\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: geometry_msgs/Vector3\n\ 00239 # This represents a vector in free space. \n\ 00240 \n\ 00241 float64 x\n\ 00242 float64 y\n\ 00243 float64 z\n\ 00244 "; 00245 } 00246 00247 static const char* value(const ::gazebo::LinkStates_<ContainerAllocator> &) { return value(); } 00248 }; 00249 00250 } // namespace message_traits 00251 } // namespace ros 00252 00253 namespace ros 00254 { 00255 namespace serialization 00256 { 00257 00258 template<class ContainerAllocator> struct Serializer< ::gazebo::LinkStates_<ContainerAllocator> > 00259 { 00260 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00261 { 00262 stream.next(m.name); 00263 stream.next(m.pose); 00264 stream.next(m.twist); 00265 } 00266 00267 ROS_DECLARE_ALLINONE_SERIALIZER; 00268 }; // struct LinkStates_ 00269 } // namespace serialization 00270 } // namespace ros 00271 00272 namespace ros 00273 { 00274 namespace message_operations 00275 { 00276 00277 template<class ContainerAllocator> 00278 struct Printer< ::gazebo::LinkStates_<ContainerAllocator> > 00279 { 00280 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo::LinkStates_<ContainerAllocator> & v) 00281 { 00282 s << indent << "name[]" << std::endl; 00283 for (size_t i = 0; i < v.name.size(); ++i) 00284 { 00285 s << indent << " name[" << i << "]: "; 00286 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]); 00287 } 00288 s << indent << "pose[]" << std::endl; 00289 for (size_t i = 0; i < v.pose.size(); ++i) 00290 { 00291 s << indent << " pose[" << i << "]: "; 00292 s << std::endl; 00293 s << indent; 00294 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]); 00295 } 00296 s << indent << "twist[]" << std::endl; 00297 for (size_t i = 0; i < v.twist.size(); ++i) 00298 { 00299 s << indent << " twist[" << i << "]: "; 00300 s << std::endl; 00301 s << indent; 00302 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist[i]); 00303 } 00304 } 00305 }; 00306 00307 00308 } // namespace message_operations 00309 } // namespace ros 00310 00311 #endif // GAZEBO_MESSAGE_LINKSTATES_H 00312