ModelState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-simulator_gazebo/doc_stacks/2014-10-06_12-11-14.842894/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   typedef boost::shared_ptr< ::gazebo_msgs::ModelState_<ContainerAllocator> > Ptr;
00056   typedef boost::shared_ptr< ::gazebo_msgs::ModelState_<ContainerAllocator>  const> ConstPtr;
00057   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00058 }; // struct ModelState
00059 typedef  ::gazebo_msgs::ModelState_<std::allocator<void> > ModelState;
00060 
00061 typedef boost::shared_ptr< ::gazebo_msgs::ModelState> ModelStatePtr;
00062 typedef boost::shared_ptr< ::gazebo_msgs::ModelState const> ModelStateConstPtr;
00063 
00064 
00065 template<typename ContainerAllocator>
00066 std::ostream& operator<<(std::ostream& s, const  ::gazebo_msgs::ModelState_<ContainerAllocator> & v)
00067 {
00068   ros::message_operations::Printer< ::gazebo_msgs::ModelState_<ContainerAllocator> >::stream(s, "", v);
00069   return s;}
00070 
00071 } // namespace gazebo_msgs
00072 
00073 namespace ros
00074 {
00075 namespace message_traits
00076 {
00077 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ModelState_<ContainerAllocator> > : public TrueType {};
00078 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ModelState_<ContainerAllocator>  const> : public TrueType {};
00079 template<class ContainerAllocator>
00080 struct MD5Sum< ::gazebo_msgs::ModelState_<ContainerAllocator> > {
00081   static const char* value() 
00082   {
00083     return "9330fd35f2fcd82d457e54bd54e10593";
00084   }
00085 
00086   static const char* value(const  ::gazebo_msgs::ModelState_<ContainerAllocator> &) { return value(); } 
00087   static const uint64_t static_value1 = 0x9330fd35f2fcd82dULL;
00088   static const uint64_t static_value2 = 0x457e54bd54e10593ULL;
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct DataType< ::gazebo_msgs::ModelState_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "gazebo_msgs/ModelState";
00096   }
00097 
00098   static const char* value(const  ::gazebo_msgs::ModelState_<ContainerAllocator> &) { return value(); } 
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct Definition< ::gazebo_msgs::ModelState_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "# Set Gazebo Model pose and twist\n\
00106 string model_name           # model to set state (pose and twist)\n\
00107 geometry_msgs/Pose pose     # desired pose in reference frame\n\
00108 geometry_msgs/Twist twist   # desired twist in reference frame\n\
00109 string reference_frame      # set pose/twist relative to the frame of this entity (Body/Model)\n\
00110                             # leave empty or \"world\" or \"map\" defaults to world-frame\n\
00111 \n\
00112 \n\
00113 ================================================================================\n\
00114 MSG: geometry_msgs/Pose\n\
00115 # A representation of pose in free space, composed of postion and orientation. \n\
00116 Point position\n\
00117 Quaternion orientation\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: geometry_msgs/Point\n\
00121 # This contains the position of a point in free space\n\
00122 float64 x\n\
00123 float64 y\n\
00124 float64 z\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: geometry_msgs/Quaternion\n\
00128 # This represents an orientation in free space in quaternion form.\n\
00129 \n\
00130 float64 x\n\
00131 float64 y\n\
00132 float64 z\n\
00133 float64 w\n\
00134 \n\
00135 ================================================================================\n\
00136 MSG: geometry_msgs/Twist\n\
00137 # This expresses velocity in free space broken into its linear and angular parts.\n\
00138 Vector3  linear\n\
00139 Vector3  angular\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: geometry_msgs/Vector3\n\
00143 # This represents a vector in free space. \n\
00144 \n\
00145 float64 x\n\
00146 float64 y\n\
00147 float64 z\n\
00148 ";
00149   }
00150 
00151   static const char* value(const  ::gazebo_msgs::ModelState_<ContainerAllocator> &) { return value(); } 
00152 };
00153 
00154 } // namespace message_traits
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161 
00162 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ModelState_<ContainerAllocator> >
00163 {
00164   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165   {
00166     stream.next(m.model_name);
00167     stream.next(m.pose);
00168     stream.next(m.twist);
00169     stream.next(m.reference_frame);
00170   }
00171 
00172   ROS_DECLARE_ALLINONE_SERIALIZER;
00173 }; // struct ModelState_
00174 } // namespace serialization
00175 } // namespace ros
00176 
00177 namespace ros
00178 {
00179 namespace message_operations
00180 {
00181 
00182 template<class ContainerAllocator>
00183 struct Printer< ::gazebo_msgs::ModelState_<ContainerAllocator> >
00184 {
00185   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::gazebo_msgs::ModelState_<ContainerAllocator> & v) 
00186   {
00187     s << indent << "model_name: ";
00188     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.model_name);
00189     s << indent << "pose: ";
00190 s << std::endl;
00191     Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + "  ", v.pose);
00192     s << indent << "twist: ";
00193 s << std::endl;
00194     Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + "  ", v.twist);
00195     s << indent << "reference_frame: ";
00196     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.reference_frame);
00197   }
00198 };
00199 
00200 
00201 } // namespace message_operations
00202 } // namespace ros
00203 
00204 #endif // GAZEBO_MSGS_MESSAGE_MODELSTATE_H
00205 


gazebo_msgs
Author(s): John Hsu
autogenerated on Mon Oct 6 2014 12:14:34