Go to the documentation of this file.00001
00002 #ifndef GAZEBO_MSGS_MESSAGE_LINKSTATES_H
00003 #define GAZEBO_MSGS_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_msgs
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 typedef boost::shared_ptr< ::gazebo_msgs::LinkStates_<ContainerAllocator> > Ptr;
00051 typedef boost::shared_ptr< ::gazebo_msgs::LinkStates_<ContainerAllocator> const> ConstPtr;
00052 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00053 };
00054 typedef ::gazebo_msgs::LinkStates_<std::allocator<void> > LinkStates;
00055
00056 typedef boost::shared_ptr< ::gazebo_msgs::LinkStates> LinkStatesPtr;
00057 typedef boost::shared_ptr< ::gazebo_msgs::LinkStates const> LinkStatesConstPtr;
00058
00059
00060 template<typename ContainerAllocator>
00061 std::ostream& operator<<(std::ostream& s, const ::gazebo_msgs::LinkStates_<ContainerAllocator> & v)
00062 {
00063 ros::message_operations::Printer< ::gazebo_msgs::LinkStates_<ContainerAllocator> >::stream(s, "", v);
00064 return s;}
00065
00066 }
00067
00068 namespace ros
00069 {
00070 namespace message_traits
00071 {
00072 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::LinkStates_<ContainerAllocator> > : public TrueType {};
00073 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::LinkStates_<ContainerAllocator> const> : public TrueType {};
00074 template<class ContainerAllocator>
00075 struct MD5Sum< ::gazebo_msgs::LinkStates_<ContainerAllocator> > {
00076 static const char* value()
00077 {
00078 return "48c080191eb15c41858319b4d8a609c2";
00079 }
00080
00081 static const char* value(const ::gazebo_msgs::LinkStates_<ContainerAllocator> &) { return value(); }
00082 static const uint64_t static_value1 = 0x48c080191eb15c41ULL;
00083 static const uint64_t static_value2 = 0x858319b4d8a609c2ULL;
00084 };
00085
00086 template<class ContainerAllocator>
00087 struct DataType< ::gazebo_msgs::LinkStates_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "gazebo_msgs/LinkStates";
00091 }
00092
00093 static const char* value(const ::gazebo_msgs::LinkStates_<ContainerAllocator> &) { return value(); }
00094 };
00095
00096 template<class ContainerAllocator>
00097 struct Definition< ::gazebo_msgs::LinkStates_<ContainerAllocator> > {
00098 static const char* value()
00099 {
00100 return "# broadcast all link states in world frame\n\
00101 string[] name # link names\n\
00102 geometry_msgs/Pose[] pose # desired pose in world frame\n\
00103 geometry_msgs/Twist[] twist # desired twist in world frame\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: geometry_msgs/Pose\n\
00107 # A representation of pose in free space, composed of postion and orientation. \n\
00108 Point position\n\
00109 Quaternion orientation\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: geometry_msgs/Point\n\
00113 # This contains the position of a point in free space\n\
00114 float64 x\n\
00115 float64 y\n\
00116 float64 z\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: geometry_msgs/Quaternion\n\
00120 # This represents an orientation in free space in quaternion form.\n\
00121 \n\
00122 float64 x\n\
00123 float64 y\n\
00124 float64 z\n\
00125 float64 w\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: geometry_msgs/Twist\n\
00129 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00130 Vector3 linear\n\
00131 Vector3 angular\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: geometry_msgs/Vector3\n\
00135 # This represents a vector in free space. \n\
00136 \n\
00137 float64 x\n\
00138 float64 y\n\
00139 float64 z\n\
00140 ";
00141 }
00142
00143 static const char* value(const ::gazebo_msgs::LinkStates_<ContainerAllocator> &) { return value(); }
00144 };
00145
00146 }
00147 }
00148
00149 namespace ros
00150 {
00151 namespace serialization
00152 {
00153
00154 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::LinkStates_<ContainerAllocator> >
00155 {
00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00157 {
00158 stream.next(m.name);
00159 stream.next(m.pose);
00160 stream.next(m.twist);
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::gazebo_msgs::LinkStates_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo_msgs::LinkStates_<ContainerAllocator> & v)
00177 {
00178 s << indent << "name[]" << std::endl;
00179 for (size_t i = 0; i < v.name.size(); ++i)
00180 {
00181 s << indent << " name[" << i << "]: ";
00182 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]);
00183 }
00184 s << indent << "pose[]" << std::endl;
00185 for (size_t i = 0; i < v.pose.size(); ++i)
00186 {
00187 s << indent << " pose[" << i << "]: ";
00188 s << std::endl;
00189 s << indent;
00190 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]);
00191 }
00192 s << indent << "twist[]" << std::endl;
00193 for (size_t i = 0; i < v.twist.size(); ++i)
00194 {
00195 s << indent << " twist[" << i << "]: ";
00196 s << std::endl;
00197 s << indent;
00198 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist[i]);
00199 }
00200 }
00201 };
00202
00203
00204 }
00205 }
00206
00207 #endif // GAZEBO_MSGS_MESSAGE_LINKSTATES_H
00208