00001
00002 #ifndef VREP_COMMON_MESSAGE_VREPINFO_H
00003 #define VREP_COMMON_MESSAGE_VREPINFO_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 "std_msgs/Header.h"
00018 #include "std_msgs/Int32.h"
00019 #include "std_msgs/Float32.h"
00020 #include "std_msgs/Float32.h"
00021
00022 namespace vrep_common
00023 {
00024 template <class ContainerAllocator>
00025 struct VrepInfo_ {
00026 typedef VrepInfo_<ContainerAllocator> Type;
00027
00028 VrepInfo_()
00029 : headerInfo()
00030 , simulatorState()
00031 , simulationTime()
00032 , timeStep()
00033 {
00034 }
00035
00036 VrepInfo_(const ContainerAllocator& _alloc)
00037 : headerInfo(_alloc)
00038 , simulatorState(_alloc)
00039 , simulationTime(_alloc)
00040 , timeStep(_alloc)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _headerInfo_type;
00045 ::std_msgs::Header_<ContainerAllocator> headerInfo;
00046
00047 typedef ::std_msgs::Int32_<ContainerAllocator> _simulatorState_type;
00048 ::std_msgs::Int32_<ContainerAllocator> simulatorState;
00049
00050 typedef ::std_msgs::Float32_<ContainerAllocator> _simulationTime_type;
00051 ::std_msgs::Float32_<ContainerAllocator> simulationTime;
00052
00053 typedef ::std_msgs::Float32_<ContainerAllocator> _timeStep_type;
00054 ::std_msgs::Float32_<ContainerAllocator> timeStep;
00055
00056
00057 typedef boost::shared_ptr< ::vrep_common::VrepInfo_<ContainerAllocator> > Ptr;
00058 typedef boost::shared_ptr< ::vrep_common::VrepInfo_<ContainerAllocator> const> ConstPtr;
00059 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00060 };
00061 typedef ::vrep_common::VrepInfo_<std::allocator<void> > VrepInfo;
00062
00063 typedef boost::shared_ptr< ::vrep_common::VrepInfo> VrepInfoPtr;
00064 typedef boost::shared_ptr< ::vrep_common::VrepInfo const> VrepInfoConstPtr;
00065
00066
00067 template<typename ContainerAllocator>
00068 std::ostream& operator<<(std::ostream& s, const ::vrep_common::VrepInfo_<ContainerAllocator> & v)
00069 {
00070 ros::message_operations::Printer< ::vrep_common::VrepInfo_<ContainerAllocator> >::stream(s, "", v);
00071 return s;}
00072
00073 }
00074
00075 namespace ros
00076 {
00077 namespace message_traits
00078 {
00079 template<class ContainerAllocator> struct IsMessage< ::vrep_common::VrepInfo_<ContainerAllocator> > : public TrueType {};
00080 template<class ContainerAllocator> struct IsMessage< ::vrep_common::VrepInfo_<ContainerAllocator> const> : public TrueType {};
00081 template<class ContainerAllocator>
00082 struct MD5Sum< ::vrep_common::VrepInfo_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "66334ab2212d3c89226a89b7a37b2f95";
00086 }
00087
00088 static const char* value(const ::vrep_common::VrepInfo_<ContainerAllocator> &) { return value(); }
00089 static const uint64_t static_value1 = 0x66334ab2212d3c89ULL;
00090 static const uint64_t static_value2 = 0x226a89b7a37b2f95ULL;
00091 };
00092
00093 template<class ContainerAllocator>
00094 struct DataType< ::vrep_common::VrepInfo_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "vrep_common/VrepInfo";
00098 }
00099
00100 static const char* value(const ::vrep_common::VrepInfo_<ContainerAllocator> &) { return value(); }
00101 };
00102
00103 template<class ContainerAllocator>
00104 struct Definition< ::vrep_common::VrepInfo_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "std_msgs/Header headerInfo\n\
00108 std_msgs/Int32 simulatorState\n\
00109 std_msgs/Float32 simulationTime\n\
00110 std_msgs/Float32 timeStep\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: std_msgs/Header\n\
00114 # Standard metadata for higher-level stamped data types.\n\
00115 # This is generally used to communicate timestamped data \n\
00116 # in a particular coordinate frame.\n\
00117 # \n\
00118 # sequence ID: consecutively increasing ID \n\
00119 uint32 seq\n\
00120 #Two-integer timestamp that is expressed as:\n\
00121 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00122 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00123 # time-handling sugar is provided by the client library\n\
00124 time stamp\n\
00125 #Frame this data is associated with\n\
00126 # 0: no frame\n\
00127 # 1: global frame\n\
00128 string frame_id\n\
00129 \n\
00130 ================================================================================\n\
00131 MSG: std_msgs/Int32\n\
00132 int32 data\n\
00133 ================================================================================\n\
00134 MSG: std_msgs/Float32\n\
00135 float32 data\n\
00136 ";
00137 }
00138
00139 static const char* value(const ::vrep_common::VrepInfo_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 }
00143 }
00144
00145 namespace ros
00146 {
00147 namespace serialization
00148 {
00149
00150 template<class ContainerAllocator> struct Serializer< ::vrep_common::VrepInfo_<ContainerAllocator> >
00151 {
00152 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00153 {
00154 stream.next(m.headerInfo);
00155 stream.next(m.simulatorState);
00156 stream.next(m.simulationTime);
00157 stream.next(m.timeStep);
00158 }
00159
00160 ROS_DECLARE_ALLINONE_SERIALIZER;
00161 };
00162 }
00163 }
00164
00165 namespace ros
00166 {
00167 namespace message_operations
00168 {
00169
00170 template<class ContainerAllocator>
00171 struct Printer< ::vrep_common::VrepInfo_<ContainerAllocator> >
00172 {
00173 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vrep_common::VrepInfo_<ContainerAllocator> & v)
00174 {
00175 s << indent << "headerInfo: ";
00176 s << std::endl;
00177 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.headerInfo);
00178 s << indent << "simulatorState: ";
00179 s << std::endl;
00180 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.simulatorState);
00181 s << indent << "simulationTime: ";
00182 s << std::endl;
00183 Printer< ::std_msgs::Float32_<ContainerAllocator> >::stream(s, indent + " ", v.simulationTime);
00184 s << indent << "timeStep: ";
00185 s << std::endl;
00186 Printer< ::std_msgs::Float32_<ContainerAllocator> >::stream(s, indent + " ", v.timeStep);
00187 }
00188 };
00189
00190
00191 }
00192 }
00193
00194 #endif // VREP_COMMON_MESSAGE_VREPINFO_H
00195