Go to the documentation of this file.00001
00002 #ifndef TELEKYB_MSGS_MESSAGE_TKGRCOMMANDS_H
00003 #define TELEKYB_MSGS_MESSAGE_TKGRCOMMANDS_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 telekyb_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct TKGRCommands_ {
00023 typedef TKGRCommands_<ContainerAllocator> Type;
00024
00025 TKGRCommands_()
00026 : header()
00027 , fingers_displacement(0.0)
00028 {
00029 }
00030
00031 TKGRCommands_(const ContainerAllocator& _alloc)
00032 : header(_alloc)
00033 , fingers_displacement(0.0)
00034 {
00035 }
00036
00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00038 ::std_msgs::Header_<ContainerAllocator> header;
00039
00040 typedef double _fingers_displacement_type;
00041 double fingers_displacement;
00042
00043
00044 typedef boost::shared_ptr< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::telekyb_msgs::TKGRCommands_<std::allocator<void> > TKGRCommands;
00049
00050 typedef boost::shared_ptr< ::telekyb_msgs::TKGRCommands> TKGRCommandsPtr;
00051 typedef boost::shared_ptr< ::telekyb_msgs::TKGRCommands const> TKGRCommandsConstPtr;
00052
00053
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> & v)
00056 {
00057 ros::message_operations::Printer< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> >::stream(s, "", v);
00058 return s;}
00059
00060 }
00061
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > {
00070 static const char* value()
00071 {
00072 return "e81866954242f2fe4ca8751ac93d815a";
00073 }
00074
00075 static const char* value(const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> &) { return value(); }
00076 static const uint64_t static_value1 = 0xe81866954242f2feULL;
00077 static const uint64_t static_value2 = 0x4ca8751ac93d815aULL;
00078 };
00079
00080 template<class ContainerAllocator>
00081 struct DataType< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "telekyb_msgs/TKGRCommands";
00085 }
00086
00087 static const char* value(const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> &) { return value(); }
00088 };
00089
00090 template<class ContainerAllocator>
00091 struct Definition< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "#\n\
00095 # Copyright 2011 Antonio Franchi and Martin Riedel \n\
00096 #\n\
00097 # This file is part of TeleKyb.\n\
00098 #\n\
00099 # TeleKyb is free software: you can redistribute it and/or modify\n\
00100 # it under the terms of the GNU General Public License as published by\n\
00101 # the Free Software Foundation, either version 3 of the License, or\n\
00102 # (at your option) any later version.\n\
00103 #\n\
00104 # TeleKyb is distributed in the hope that it will be useful,\n\
00105 # but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
00106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n\
00107 # GNU General Public License for more details.\n\
00108 #\n\
00109 # You should have received a copy of the GNU General Public License\n\
00110 # along with TeleKyb. If not, see <http://www.gnu.org/licenses/>.\n\
00111 \n\
00112 # Contains the set point for the low-lever controller of the gripper\n\
00113 \n\
00114 Header header\n\
00115 \n\
00116 # Discussion? Change to 64bit?\n\
00117 # Add ranges\n\
00118 float64 fingers_displacement\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: std_msgs/Header\n\
00122 # Standard metadata for higher-level stamped data types.\n\
00123 # This is generally used to communicate timestamped data \n\
00124 # in a particular coordinate frame.\n\
00125 # \n\
00126 # sequence ID: consecutively increasing ID \n\
00127 uint32 seq\n\
00128 #Two-integer timestamp that is expressed as:\n\
00129 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00130 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00131 # time-handling sugar is provided by the client library\n\
00132 time stamp\n\
00133 #Frame this data is associated with\n\
00134 # 0: no frame\n\
00135 # 1: global frame\n\
00136 string frame_id\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator> struct HasHeader< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > : public TrueType {};
00145 template<class ContainerAllocator> struct HasHeader< const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> > : public TrueType {};
00146 }
00147 }
00148
00149 namespace ros
00150 {
00151 namespace serialization
00152 {
00153
00154 template<class ContainerAllocator> struct Serializer< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> >
00155 {
00156 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00157 {
00158 stream.next(m.header);
00159 stream.next(m.fingers_displacement);
00160 }
00161
00162 ROS_DECLARE_ALLINONE_SERIALIZER;
00163 };
00164 }
00165 }
00166
00167 namespace ros
00168 {
00169 namespace message_operations
00170 {
00171
00172 template<class ContainerAllocator>
00173 struct Printer< ::telekyb_msgs::TKGRCommands_<ContainerAllocator> >
00174 {
00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::telekyb_msgs::TKGRCommands_<ContainerAllocator> & v)
00176 {
00177 s << indent << "header: ";
00178 s << std::endl;
00179 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00180 s << indent << "fingers_displacement: ";
00181 Printer<double>::stream(s, indent + " ", v.fingers_displacement);
00182 }
00183 };
00184
00185
00186 }
00187 }
00188
00189 #endif // TELEKYB_MSGS_MESSAGE_TKGRCOMMANDS_H
00190