00001
00002 #ifndef VREP_COMMON_MESSAGE_FORCESENSORDATA_H
00003 #define VREP_COMMON_MESSAGE_FORCESENSORDATA_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/Int32.h"
00018 #include "geometry_msgs/Vector3.h"
00019 #include "geometry_msgs/Vector3.h"
00020
00021 namespace vrep_common
00022 {
00023 template <class ContainerAllocator>
00024 struct ForceSensorData_ {
00025 typedef ForceSensorData_<ContainerAllocator> Type;
00026
00027 ForceSensorData_()
00028 : sensorState()
00029 , force()
00030 , torque()
00031 {
00032 }
00033
00034 ForceSensorData_(const ContainerAllocator& _alloc)
00035 : sensorState(_alloc)
00036 , force(_alloc)
00037 , torque(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Int32_<ContainerAllocator> _sensorState_type;
00042 ::std_msgs::Int32_<ContainerAllocator> sensorState;
00043
00044 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _force_type;
00045 ::geometry_msgs::Vector3_<ContainerAllocator> force;
00046
00047 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _torque_type;
00048 ::geometry_msgs::Vector3_<ContainerAllocator> torque;
00049
00050
00051 typedef boost::shared_ptr< ::vrep_common::ForceSensorData_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::vrep_common::ForceSensorData_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::vrep_common::ForceSensorData_<std::allocator<void> > ForceSensorData;
00056
00057 typedef boost::shared_ptr< ::vrep_common::ForceSensorData> ForceSensorDataPtr;
00058 typedef boost::shared_ptr< ::vrep_common::ForceSensorData const> ForceSensorDataConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::vrep_common::ForceSensorData_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::vrep_common::ForceSensorData_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::vrep_common::ForceSensorData_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::vrep_common::ForceSensorData_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::vrep_common::ForceSensorData_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "975cc3fe659f11cb0dbd06416cff4a10";
00080 }
00081
00082 static const char* value(const ::vrep_common::ForceSensorData_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0x975cc3fe659f11cbULL;
00084 static const uint64_t static_value2 = 0x0dbd06416cff4a10ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::vrep_common::ForceSensorData_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "vrep_common/ForceSensorData";
00092 }
00093
00094 static const char* value(const ::vrep_common::ForceSensorData_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::vrep_common::ForceSensorData_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "std_msgs/Int32 sensorState\n\
00102 geometry_msgs/Vector3 force\n\
00103 geometry_msgs/Vector3 torque\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: std_msgs/Int32\n\
00107 int32 data\n\
00108 ================================================================================\n\
00109 MSG: geometry_msgs/Vector3\n\
00110 # This represents a vector in free space. \n\
00111 \n\
00112 float64 x\n\
00113 float64 y\n\
00114 float64 z\n\
00115 ";
00116 }
00117
00118 static const char* value(const ::vrep_common::ForceSensorData_<ContainerAllocator> &) { return value(); }
00119 };
00120
00121 template<class ContainerAllocator> struct IsFixedSize< ::vrep_common::ForceSensorData_<ContainerAllocator> > : public TrueType {};
00122 }
00123 }
00124
00125 namespace ros
00126 {
00127 namespace serialization
00128 {
00129
00130 template<class ContainerAllocator> struct Serializer< ::vrep_common::ForceSensorData_<ContainerAllocator> >
00131 {
00132 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00133 {
00134 stream.next(m.sensorState);
00135 stream.next(m.force);
00136 stream.next(m.torque);
00137 }
00138
00139 ROS_DECLARE_ALLINONE_SERIALIZER;
00140 };
00141 }
00142 }
00143
00144 namespace ros
00145 {
00146 namespace message_operations
00147 {
00148
00149 template<class ContainerAllocator>
00150 struct Printer< ::vrep_common::ForceSensorData_<ContainerAllocator> >
00151 {
00152 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::vrep_common::ForceSensorData_<ContainerAllocator> & v)
00153 {
00154 s << indent << "sensorState: ";
00155 s << std::endl;
00156 Printer< ::std_msgs::Int32_<ContainerAllocator> >::stream(s, indent + " ", v.sensorState);
00157 s << indent << "force: ";
00158 s << std::endl;
00159 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.force);
00160 s << indent << "torque: ";
00161 s << std::endl;
00162 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.torque);
00163 }
00164 };
00165
00166
00167 }
00168 }
00169
00170 #endif // VREP_COMMON_MESSAGE_FORCESENSORDATA_H
00171