$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/ModelState.msg */ 00002 #ifndef GAZEBO_MESSAGE_MODELSTATE_H 00003 #define GAZEBO_MESSAGE_MODELSTATE_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 ModelState_ { 00024 typedef ModelState_<ContainerAllocator> Type; 00025 00026 ModelState_() 00027 : model_name() 00028 , pose() 00029 , twist() 00030 , reference_frame() 00031 { 00032 } 00033 00034 ModelState_(const ContainerAllocator& _alloc) 00035 : model_name(_alloc) 00036 , pose(_alloc) 00037 , twist(_alloc) 00038 , reference_frame(_alloc) 00039 { 00040 } 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_name_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model_name; 00044 00045 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00046 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00047 00048 typedef ::geometry_msgs::Twist_<ContainerAllocator> _twist_type; 00049 ::geometry_msgs::Twist_<ContainerAllocator> twist; 00050 00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _reference_frame_type; 00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > reference_frame; 00053 00054 00055 private: 00056 static const char* __s_getDataType_() { return "gazebo/ModelState"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00059 00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00061 00062 private: 00063 static const char* __s_getMD5Sum_() { return "9330fd35f2fcd82d457e54bd54e10593"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00066 00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00068 00069 private: 00070 static const char* __s_getMessageDefinition_() { return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00071 \n\ 00072 # Set Gazebo Model pose and twist\n\ 00073 string model_name # model to set state (pose and twist)\n\ 00074 geometry_msgs/Pose pose # desired pose in reference frame\n\ 00075 geometry_msgs/Twist twist # desired twist in reference frame\n\ 00076 string reference_frame # set pose/twist relative to the frame of this entity (Body/Model)\n\ 00077 # leave empty or \"world\" or \"map\" defaults to world-frame\n\ 00078 \n\ 00079 \n\ 00080 ================================================================================\n\ 00081 MSG: geometry_msgs/Pose\n\ 00082 # A representation of pose in free space, composed of postion and orientation. \n\ 00083 Point position\n\ 00084 Quaternion orientation\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: geometry_msgs/Point\n\ 00088 # This contains the position of a point in free space\n\ 00089 float64 x\n\ 00090 float64 y\n\ 00091 float64 z\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: geometry_msgs/Quaternion\n\ 00095 # This represents an orientation in free space in quaternion form.\n\ 00096 \n\ 00097 float64 x\n\ 00098 float64 y\n\ 00099 float64 z\n\ 00100 float64 w\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Twist\n\ 00104 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00105 Vector3 linear\n\ 00106 Vector3 angular\n\ 00107 \n\ 00108 ================================================================================\n\ 00109 MSG: geometry_msgs/Vector3\n\ 00110 # This represents a vector in free space. \n\ 00111 \n\ 00112 float64 x\n\ 00113 float64 y\n\ 00114 float64 z\n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, model_name); 00125 ros::serialization::serialize(stream, pose); 00126 ros::serialization::serialize(stream, twist); 00127 ros::serialization::serialize(stream, reference_frame); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, model_name); 00135 ros::serialization::deserialize(stream, pose); 00136 ros::serialization::deserialize(stream, twist); 00137 ros::serialization::deserialize(stream, reference_frame); 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(model_name); 00145 size += ros::serialization::serializationLength(pose); 00146 size += ros::serialization::serializationLength(twist); 00147 size += ros::serialization::serializationLength(reference_frame); 00148 return size; 00149 } 00150 00151 typedef boost::shared_ptr< ::gazebo::ModelState_<ContainerAllocator> > Ptr; 00152 typedef boost::shared_ptr< ::gazebo::ModelState_<ContainerAllocator> const> ConstPtr; 00153 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00154 }; // struct ModelState 00155 typedef ::gazebo::ModelState_<std::allocator<void> > ModelState; 00156 00157 typedef boost::shared_ptr< ::gazebo::ModelState> ModelStatePtr; 00158 typedef boost::shared_ptr< ::gazebo::ModelState const> ModelStateConstPtr; 00159 00160 00161 template<typename ContainerAllocator> 00162 std::ostream& operator<<(std::ostream& s, const ::gazebo::ModelState_<ContainerAllocator> & v) 00163 { 00164 ros::message_operations::Printer< ::gazebo::ModelState_<ContainerAllocator> >::stream(s, "", v); 00165 return s;} 00166 00167 } // namespace gazebo 00168 00169 namespace ros 00170 { 00171 namespace message_traits 00172 { 00173 template<class ContainerAllocator> struct IsMessage< ::gazebo::ModelState_<ContainerAllocator> > : public TrueType {}; 00174 template<class ContainerAllocator> struct IsMessage< ::gazebo::ModelState_<ContainerAllocator> const> : public TrueType {}; 00175 template<class ContainerAllocator> 00176 struct MD5Sum< ::gazebo::ModelState_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "9330fd35f2fcd82d457e54bd54e10593"; 00180 } 00181 00182 static const char* value(const ::gazebo::ModelState_<ContainerAllocator> &) { return value(); } 00183 static const uint64_t static_value1 = 0x9330fd35f2fcd82dULL; 00184 static const uint64_t static_value2 = 0x457e54bd54e10593ULL; 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct DataType< ::gazebo::ModelState_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "gazebo/ModelState"; 00192 } 00193 00194 static const char* value(const ::gazebo::ModelState_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 template<class ContainerAllocator> 00198 struct Definition< ::gazebo::ModelState_<ContainerAllocator> > { 00199 static const char* value() 00200 { 00201 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00202 \n\ 00203 # Set Gazebo Model pose and twist\n\ 00204 string model_name # model to set state (pose and twist)\n\ 00205 geometry_msgs/Pose pose # desired pose in reference frame\n\ 00206 geometry_msgs/Twist twist # desired twist in reference frame\n\ 00207 string reference_frame # set pose/twist relative to the frame of this entity (Body/Model)\n\ 00208 # leave empty or \"world\" or \"map\" defaults to world-frame\n\ 00209 \n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: geometry_msgs/Pose\n\ 00213 # A representation of pose in free space, composed of postion and orientation. \n\ 00214 Point position\n\ 00215 Quaternion orientation\n\ 00216 \n\ 00217 ================================================================================\n\ 00218 MSG: geometry_msgs/Point\n\ 00219 # This contains the position of a point in free space\n\ 00220 float64 x\n\ 00221 float64 y\n\ 00222 float64 z\n\ 00223 \n\ 00224 ================================================================================\n\ 00225 MSG: geometry_msgs/Quaternion\n\ 00226 # This represents an orientation in free space in quaternion form.\n\ 00227 \n\ 00228 float64 x\n\ 00229 float64 y\n\ 00230 float64 z\n\ 00231 float64 w\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Twist\n\ 00235 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00236 Vector3 linear\n\ 00237 Vector3 angular\n\ 00238 \n\ 00239 ================================================================================\n\ 00240 MSG: geometry_msgs/Vector3\n\ 00241 # This represents a vector in free space. \n\ 00242 \n\ 00243 float64 x\n\ 00244 float64 y\n\ 00245 float64 z\n\ 00246 "; 00247 } 00248 00249 static const char* value(const ::gazebo::ModelState_<ContainerAllocator> &) { return value(); } 00250 }; 00251 00252 } // namespace message_traits 00253 } // namespace ros 00254 00255 namespace ros 00256 { 00257 namespace serialization 00258 { 00259 00260 template<class ContainerAllocator> struct Serializer< ::gazebo::ModelState_<ContainerAllocator> > 00261 { 00262 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00263 { 00264 stream.next(m.model_name); 00265 stream.next(m.pose); 00266 stream.next(m.twist); 00267 stream.next(m.reference_frame); 00268 } 00269 00270 ROS_DECLARE_ALLINONE_SERIALIZER; 00271 }; // struct ModelState_ 00272 } // namespace serialization 00273 } // namespace ros 00274 00275 namespace ros 00276 { 00277 namespace message_operations 00278 { 00279 00280 template<class ContainerAllocator> 00281 struct Printer< ::gazebo::ModelState_<ContainerAllocator> > 00282 { 00283 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo::ModelState_<ContainerAllocator> & v) 00284 { 00285 s << indent << "model_name: "; 00286 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.model_name); 00287 s << indent << "pose: "; 00288 s << std::endl; 00289 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00290 s << indent << "twist: "; 00291 s << std::endl; 00292 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist); 00293 s << indent << "reference_frame: "; 00294 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.reference_frame); 00295 } 00296 }; 00297 00298 00299 } // namespace message_operations 00300 } // namespace ros 00301 00302 #endif // GAZEBO_MESSAGE_MODELSTATE_H 00303