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