$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/LinkState.msg */ 00002 #ifndef GAZEBO_MESSAGE_LINKSTATE_H 00003 #define GAZEBO_MESSAGE_LINKSTATE_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 LinkState_ { 00024 typedef LinkState_<ContainerAllocator> Type; 00025 00026 LinkState_() 00027 : link_name() 00028 , pose() 00029 , twist() 00030 , reference_frame() 00031 { 00032 } 00033 00034 LinkState_(const ContainerAllocator& _alloc) 00035 : link_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 > _link_name_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_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/LinkState"; } 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 "0818ebbf28ce3a08d48ab1eaa7309ebe"; } 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 # @todo: FIXME: sets pose and twist of a link. All children link poses/twists of the URDF tree are not updated accordingly, but should be.\n\ 00073 string link_name # link name\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 link/body\n\ 00077 # leave empty or \"world\" or \"map\" defaults to world-frame\n\ 00078 \n\ 00079 ================================================================================\n\ 00080 MSG: geometry_msgs/Pose\n\ 00081 # A representation of pose in free space, composed of postion and orientation. \n\ 00082 Point position\n\ 00083 Quaternion orientation\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: geometry_msgs/Point\n\ 00087 # This contains the position of a point in free space\n\ 00088 float64 x\n\ 00089 float64 y\n\ 00090 float64 z\n\ 00091 \n\ 00092 ================================================================================\n\ 00093 MSG: geometry_msgs/Quaternion\n\ 00094 # This represents an orientation in free space in quaternion form.\n\ 00095 \n\ 00096 float64 x\n\ 00097 float64 y\n\ 00098 float64 z\n\ 00099 float64 w\n\ 00100 \n\ 00101 ================================================================================\n\ 00102 MSG: geometry_msgs/Twist\n\ 00103 # This expresses velocity in free space broken into it's linear and angular parts. \n\ 00104 Vector3 linear\n\ 00105 Vector3 angular\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: geometry_msgs/Vector3\n\ 00109 # This represents a vector in free space. \n\ 00110 \n\ 00111 float64 x\n\ 00112 float64 y\n\ 00113 float64 z\n\ 00114 "; } 00115 public: 00116 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00117 00118 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00119 00120 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00121 { 00122 ros::serialization::OStream stream(write_ptr, 1000000000); 00123 ros::serialization::serialize(stream, link_name); 00124 ros::serialization::serialize(stream, pose); 00125 ros::serialization::serialize(stream, twist); 00126 ros::serialization::serialize(stream, reference_frame); 00127 return stream.getData(); 00128 } 00129 00130 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00131 { 00132 ros::serialization::IStream stream(read_ptr, 1000000000); 00133 ros::serialization::deserialize(stream, link_name); 00134 ros::serialization::deserialize(stream, pose); 00135 ros::serialization::deserialize(stream, twist); 00136 ros::serialization::deserialize(stream, reference_frame); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint32_t serializationLength() const 00141 { 00142 uint32_t size = 0; 00143 size += ros::serialization::serializationLength(link_name); 00144 size += ros::serialization::serializationLength(pose); 00145 size += ros::serialization::serializationLength(twist); 00146 size += ros::serialization::serializationLength(reference_frame); 00147 return size; 00148 } 00149 00150 typedef boost::shared_ptr< ::gazebo::LinkState_<ContainerAllocator> > Ptr; 00151 typedef boost::shared_ptr< ::gazebo::LinkState_<ContainerAllocator> const> ConstPtr; 00152 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00153 }; // struct LinkState 00154 typedef ::gazebo::LinkState_<std::allocator<void> > LinkState; 00155 00156 typedef boost::shared_ptr< ::gazebo::LinkState> LinkStatePtr; 00157 typedef boost::shared_ptr< ::gazebo::LinkState const> LinkStateConstPtr; 00158 00159 00160 template<typename ContainerAllocator> 00161 std::ostream& operator<<(std::ostream& s, const ::gazebo::LinkState_<ContainerAllocator> & v) 00162 { 00163 ros::message_operations::Printer< ::gazebo::LinkState_<ContainerAllocator> >::stream(s, "", v); 00164 return s;} 00165 00166 } // namespace gazebo 00167 00168 namespace ros 00169 { 00170 namespace message_traits 00171 { 00172 template<class ContainerAllocator> struct IsMessage< ::gazebo::LinkState_<ContainerAllocator> > : public TrueType {}; 00173 template<class ContainerAllocator> struct IsMessage< ::gazebo::LinkState_<ContainerAllocator> const> : public TrueType {}; 00174 template<class ContainerAllocator> 00175 struct MD5Sum< ::gazebo::LinkState_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "0818ebbf28ce3a08d48ab1eaa7309ebe"; 00179 } 00180 00181 static const char* value(const ::gazebo::LinkState_<ContainerAllocator> &) { return value(); } 00182 static const uint64_t static_value1 = 0x0818ebbf28ce3a08ULL; 00183 static const uint64_t static_value2 = 0xd48ab1eaa7309ebeULL; 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct DataType< ::gazebo::LinkState_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "gazebo/LinkState"; 00191 } 00192 00193 static const char* value(const ::gazebo::LinkState_<ContainerAllocator> &) { return value(); } 00194 }; 00195 00196 template<class ContainerAllocator> 00197 struct Definition< ::gazebo::LinkState_<ContainerAllocator> > { 00198 static const char* value() 00199 { 00200 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00201 \n\ 00202 # @todo: FIXME: sets pose and twist of a link. All children link poses/twists of the URDF tree are not updated accordingly, but should be.\n\ 00203 string link_name # link name\n\ 00204 geometry_msgs/Pose pose # desired pose in reference frame\n\ 00205 geometry_msgs/Twist twist # desired twist in reference frame\n\ 00206 string reference_frame # set pose/twist relative to the frame of this link/body\n\ 00207 # leave empty or \"world\" or \"map\" defaults to 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::LinkState_<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::LinkState_<ContainerAllocator> > 00259 { 00260 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00261 { 00262 stream.next(m.link_name); 00263 stream.next(m.pose); 00264 stream.next(m.twist); 00265 stream.next(m.reference_frame); 00266 } 00267 00268 ROS_DECLARE_ALLINONE_SERIALIZER; 00269 }; // struct LinkState_ 00270 } // namespace serialization 00271 } // namespace ros 00272 00273 namespace ros 00274 { 00275 namespace message_operations 00276 { 00277 00278 template<class ContainerAllocator> 00279 struct Printer< ::gazebo::LinkState_<ContainerAllocator> > 00280 { 00281 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo::LinkState_<ContainerAllocator> & v) 00282 { 00283 s << indent << "link_name: "; 00284 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name); 00285 s << indent << "pose: "; 00286 s << std::endl; 00287 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00288 s << indent << "twist: "; 00289 s << std::endl; 00290 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist); 00291 s << indent << "reference_frame: "; 00292 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.reference_frame); 00293 } 00294 }; 00295 00296 00297 } // namespace message_operations 00298 } // namespace ros 00299 00300 #endif // GAZEBO_MESSAGE_LINKSTATE_H 00301