00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_LABELEDGRIPPERPOSITIONCOMMAND_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_LABELEDGRIPPERPOSITIONCOMMAND_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 nasa_r2_common_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct LabeledGripperPositionCommand_ {
00023 typedef LabeledGripperPositionCommand_<ContainerAllocator> Type;
00024
00025 LabeledGripperPositionCommand_()
00026 : header()
00027 , originator()
00028 , name()
00029 , setpoint()
00030 , command()
00031 , force()
00032 , dutyCycle()
00033 {
00034 }
00035
00036 LabeledGripperPositionCommand_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , originator(_alloc)
00039 , name(_alloc)
00040 , setpoint(_alloc)
00041 , command(_alloc)
00042 , force(_alloc)
00043 , dutyCycle(_alloc)
00044 {
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _originator_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > originator;
00052
00053 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 > _name_type;
00054 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 > name;
00055
00056 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 > _setpoint_type;
00057 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 > setpoint;
00058
00059 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 > _command_type;
00060 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 > command;
00061
00062 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _force_type;
00063 std::vector<double, typename ContainerAllocator::template rebind<double>::other > force;
00064
00065 typedef std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > _dutyCycle_type;
00066 std::vector<uint16_t, typename ContainerAllocator::template rebind<uint16_t>::other > dutyCycle;
00067
00068
00069 typedef boost::shared_ptr< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > Ptr;
00070 typedef boost::shared_ptr< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> const> ConstPtr;
00071 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 };
00073 typedef ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<std::allocator<void> > LabeledGripperPositionCommand;
00074
00075 typedef boost::shared_ptr< ::nasa_r2_common_msgs::LabeledGripperPositionCommand> LabeledGripperPositionCommandPtr;
00076 typedef boost::shared_ptr< ::nasa_r2_common_msgs::LabeledGripperPositionCommand const> LabeledGripperPositionCommandConstPtr;
00077
00078
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> & v)
00081 {
00082 ros::message_operations::Printer< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> >::stream(s, "", v);
00083 return s;}
00084
00085 }
00086
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "cdc758be1e885c351a0d055826094942";
00098 }
00099
00100 static const char* value(const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> &) { return value(); }
00101 static const uint64_t static_value1 = 0xcdc758be1e885c35ULL;
00102 static const uint64_t static_value2 = 0x1a0d055826094942ULL;
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct DataType< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "nasa_r2_common_msgs/LabeledGripperPositionCommand";
00110 }
00111
00112 static const char* value(const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct Definition< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "Header header\n\
00120 string originator\n\
00121 string[] name\n\
00122 string[] setpoint\n\
00123 string[] command\n\
00124 float64[] force\n\
00125 uint16[] dutyCycle\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: std_msgs/Header\n\
00129 # Standard metadata for higher-level stamped data types.\n\
00130 # This is generally used to communicate timestamped data \n\
00131 # in a particular coordinate frame.\n\
00132 # \n\
00133 # sequence ID: consecutively increasing ID \n\
00134 uint32 seq\n\
00135 #Two-integer timestamp that is expressed as:\n\
00136 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00137 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00138 # time-handling sugar is provided by the client library\n\
00139 time stamp\n\
00140 #Frame this data is associated with\n\
00141 # 0: no frame\n\
00142 # 1: global frame\n\
00143 string frame_id\n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator> struct HasHeader< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > : public TrueType {};
00152 template<class ContainerAllocator> struct HasHeader< const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> > : public TrueType {};
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace serialization
00159 {
00160
00161 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> >
00162 {
00163 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00164 {
00165 stream.next(m.header);
00166 stream.next(m.originator);
00167 stream.next(m.name);
00168 stream.next(m.setpoint);
00169 stream.next(m.command);
00170 stream.next(m.force);
00171 stream.next(m.dutyCycle);
00172 }
00173
00174 ROS_DECLARE_ALLINONE_SERIALIZER;
00175 };
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace message_operations
00182 {
00183
00184 template<class ContainerAllocator>
00185 struct Printer< ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> >
00186 {
00187 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::LabeledGripperPositionCommand_<ContainerAllocator> & v)
00188 {
00189 s << indent << "header: ";
00190 s << std::endl;
00191 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00192 s << indent << "originator: ";
00193 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.originator);
00194 s << indent << "name[]" << std::endl;
00195 for (size_t i = 0; i < v.name.size(); ++i)
00196 {
00197 s << indent << " name[" << i << "]: ";
00198 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]);
00199 }
00200 s << indent << "setpoint[]" << std::endl;
00201 for (size_t i = 0; i < v.setpoint.size(); ++i)
00202 {
00203 s << indent << " setpoint[" << i << "]: ";
00204 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.setpoint[i]);
00205 }
00206 s << indent << "command[]" << std::endl;
00207 for (size_t i = 0; i < v.command.size(); ++i)
00208 {
00209 s << indent << " command[" << i << "]: ";
00210 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.command[i]);
00211 }
00212 s << indent << "force[]" << std::endl;
00213 for (size_t i = 0; i < v.force.size(); ++i)
00214 {
00215 s << indent << " force[" << i << "]: ";
00216 Printer<double>::stream(s, indent + " ", v.force[i]);
00217 }
00218 s << indent << "dutyCycle[]" << std::endl;
00219 for (size_t i = 0; i < v.dutyCycle.size(); ++i)
00220 {
00221 s << indent << " dutyCycle[" << i << "]: ";
00222 Printer<uint16_t>::stream(s, indent + " ", v.dutyCycle[i]);
00223 }
00224 }
00225 };
00226
00227
00228 }
00229 }
00230
00231 #endif // NASA_R2_COMMON_MSGS_MESSAGE_LABELEDGRIPPERPOSITIONCOMMAND_H
00232