$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_msgs/msg/ModelStates.msg */ 00002 #ifndef GAZEBO_MSGS_MESSAGE_MODELSTATES_H 00003 #define GAZEBO_MSGS_MESSAGE_MODELSTATES_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_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct ModelStates_ { 00024 typedef ModelStates_<ContainerAllocator> Type; 00025 00026 ModelStates_() 00027 : name() 00028 , pose() 00029 , twist() 00030 { 00031 } 00032 00033 ModelStates_(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_msgs/ModelStates"; } 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 "# broadcast all model states in world frame\n\ 00078 string[] name # model names\n\ 00079 geometry_msgs/Pose[] pose # desired pose in world frame\n\ 00080 geometry_msgs/Twist[] twist # desired twist in world frame\n\ 00081 \n\ 00082 ================================================================================\n\ 00083 MSG: geometry_msgs/Pose\n\ 00084 # A representation of pose in free space, composed of postion and orientation. \n\ 00085 Point position\n\ 00086 Quaternion orientation\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: geometry_msgs/Point\n\ 00090 # This contains the position of a point in free space\n\ 00091 float64 x\n\ 00092 float64 y\n\ 00093 float64 z\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: geometry_msgs/Quaternion\n\ 00097 # This represents an orientation in free space in quaternion form.\n\ 00098 \n\ 00099 float64 x\n\ 00100 float64 y\n\ 00101 float64 z\n\ 00102 float64 w\n\ 00103 \n\ 00104 ================================================================================\n\ 00105 MSG: geometry_msgs/Twist\n\ 00106 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00107 Vector3 linear\n\ 00108 Vector3 angular\n\ 00109 \n\ 00110 ================================================================================\n\ 00111 MSG: geometry_msgs/Vector3\n\ 00112 # This represents a vector in free space. \n\ 00113 \n\ 00114 float64 x\n\ 00115 float64 y\n\ 00116 float64 z\n\ 00117 "; } 00118 public: 00119 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00124 { 00125 ros::serialization::OStream stream(write_ptr, 1000000000); 00126 ros::serialization::serialize(stream, name); 00127 ros::serialization::serialize(stream, pose); 00128 ros::serialization::serialize(stream, twist); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00133 { 00134 ros::serialization::IStream stream(read_ptr, 1000000000); 00135 ros::serialization::deserialize(stream, name); 00136 ros::serialization::deserialize(stream, pose); 00137 ros::serialization::deserialize(stream, twist); 00138 return stream.getData(); 00139 } 00140 00141 ROS_DEPRECATED virtual uint32_t serializationLength() const 00142 { 00143 uint32_t size = 0; 00144 size += ros::serialization::serializationLength(name); 00145 size += ros::serialization::serializationLength(pose); 00146 size += ros::serialization::serializationLength(twist); 00147 return size; 00148 } 00149 00150 typedef boost::shared_ptr< ::gazebo_msgs::ModelStates_<ContainerAllocator> > Ptr; 00151 typedef boost::shared_ptr< ::gazebo_msgs::ModelStates_<ContainerAllocator> const> ConstPtr; 00152 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00153 }; // struct ModelStates 00154 typedef ::gazebo_msgs::ModelStates_<std::allocator<void> > ModelStates; 00155 00156 typedef boost::shared_ptr< ::gazebo_msgs::ModelStates> ModelStatesPtr; 00157 typedef boost::shared_ptr< ::gazebo_msgs::ModelStates const> ModelStatesConstPtr; 00158 00159 00160 template<typename ContainerAllocator> 00161 std::ostream& operator<<(std::ostream& s, const ::gazebo_msgs::ModelStates_<ContainerAllocator> & v) 00162 { 00163 ros::message_operations::Printer< ::gazebo_msgs::ModelStates_<ContainerAllocator> >::stream(s, "", v); 00164 return s;} 00165 00166 } // namespace gazebo_msgs 00167 00168 namespace ros 00169 { 00170 namespace message_traits 00171 { 00172 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ModelStates_<ContainerAllocator> > : public TrueType {}; 00173 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ModelStates_<ContainerAllocator> const> : public TrueType {}; 00174 template<class ContainerAllocator> 00175 struct MD5Sum< ::gazebo_msgs::ModelStates_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "48c080191eb15c41858319b4d8a609c2"; 00179 } 00180 00181 static const char* value(const ::gazebo_msgs::ModelStates_<ContainerAllocator> &) { return value(); } 00182 static const uint64_t static_value1 = 0x48c080191eb15c41ULL; 00183 static const uint64_t static_value2 = 0x858319b4d8a609c2ULL; 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct DataType< ::gazebo_msgs::ModelStates_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "gazebo_msgs/ModelStates"; 00191 } 00192 00193 static const char* value(const ::gazebo_msgs::ModelStates_<ContainerAllocator> &) { return value(); } 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct Definition< ::gazebo_msgs::ModelStates_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "# broadcast all model states in world frame\n\ 00201 string[] name # model names\n\ 00202 geometry_msgs/Pose[] pose # desired pose in world frame\n\ 00203 geometry_msgs/Twist[] twist # desired twist in world frame\n\ 00204 \n\ 00205 ================================================================================\n\ 00206 MSG: geometry_msgs/Pose\n\ 00207 # A representation of pose in free space, composed of postion and orientation. \n\ 00208 Point position\n\ 00209 Quaternion orientation\n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: geometry_msgs/Point\n\ 00213 # This contains the position of a point in free space\n\ 00214 float64 x\n\ 00215 float64 y\n\ 00216 float64 z\n\ 00217 \n\ 00218 ================================================================================\n\ 00219 MSG: geometry_msgs/Quaternion\n\ 00220 # This represents an orientation in free space in quaternion form.\n\ 00221 \n\ 00222 float64 x\n\ 00223 float64 y\n\ 00224 float64 z\n\ 00225 float64 w\n\ 00226 \n\ 00227 ================================================================================\n\ 00228 MSG: geometry_msgs/Twist\n\ 00229 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00230 Vector3 linear\n\ 00231 Vector3 angular\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Vector3\n\ 00235 # This represents a vector in free space. \n\ 00236 \n\ 00237 float64 x\n\ 00238 float64 y\n\ 00239 float64 z\n\ 00240 "; 00241 } 00242 00243 static const char* value(const ::gazebo_msgs::ModelStates_<ContainerAllocator> &) { return value(); } 00244 }; 00245 00246 } // namespace message_traits 00247 } // namespace ros 00248 00249 namespace ros 00250 { 00251 namespace serialization 00252 { 00253 00254 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ModelStates_<ContainerAllocator> > 00255 { 00256 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00257 { 00258 stream.next(m.name); 00259 stream.next(m.pose); 00260 stream.next(m.twist); 00261 } 00262 00263 ROS_DECLARE_ALLINONE_SERIALIZER; 00264 }; // struct ModelStates_ 00265 } // namespace serialization 00266 } // namespace ros 00267 00268 namespace ros 00269 { 00270 namespace message_operations 00271 { 00272 00273 template<class ContainerAllocator> 00274 struct Printer< ::gazebo_msgs::ModelStates_<ContainerAllocator> > 00275 { 00276 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo_msgs::ModelStates_<ContainerAllocator> & v) 00277 { 00278 s << indent << "name[]" << std::endl; 00279 for (size_t i = 0; i < v.name.size(); ++i) 00280 { 00281 s << indent << " name[" << i << "]: "; 00282 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]); 00283 } 00284 s << indent << "pose[]" << std::endl; 00285 for (size_t i = 0; i < v.pose.size(); ++i) 00286 { 00287 s << indent << " pose[" << i << "]: "; 00288 s << std::endl; 00289 s << indent; 00290 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]); 00291 } 00292 s << indent << "twist[]" << std::endl; 00293 for (size_t i = 0; i < v.twist.size(); ++i) 00294 { 00295 s << indent << " twist[" << i << "]: "; 00296 s << std::endl; 00297 s << indent; 00298 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist[i]); 00299 } 00300 } 00301 }; 00302 00303 00304 } // namespace message_operations 00305 } // namespace ros 00306 00307 #endif // GAZEBO_MSGS_MESSAGE_MODELSTATES_H 00308