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