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