$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-riq_hand/doc_stacks/2013-03-02_13-09-40.648474/riq_hand/riq_msgs/msg/RIQHandCommand.msg */ 00002 #ifndef RIQ_MSGS_MESSAGE_RIQHANDCOMMAND_H 00003 #define RIQ_MSGS_MESSAGE_RIQHANDCOMMAND_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 00018 namespace riq_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct RIQHandCommand_ { 00022 typedef RIQHandCommand_<ContainerAllocator> Type; 00023 00024 RIQHandCommand_() 00025 : mode(0) 00026 , action(0) 00027 , velocity(0.0) 00028 , force(0.0) 00029 { 00030 } 00031 00032 RIQHandCommand_(const ContainerAllocator& _alloc) 00033 : mode(0) 00034 , action(0) 00035 , velocity(0.0) 00036 , force(0.0) 00037 { 00038 } 00039 00040 typedef int8_t _mode_type; 00041 int8_t mode; 00042 00043 typedef int8_t _action_type; 00044 int8_t action; 00045 00046 typedef double _velocity_type; 00047 double velocity; 00048 00049 typedef double _force_type; 00050 double force; 00051 00052 enum { CYLINDRICAL = 0 }; 00053 enum { PINCH = 1 }; 00054 enum { SPHERIOD = 2 }; 00055 enum { SCISSORS = 3 }; 00056 enum { STOP = 0 }; 00057 enum { CLOSE = 1 }; 00058 enum { OPEN = 2 }; 00059 00060 private: 00061 static const char* __s_getDataType_() { return "riq_msgs/RIQHandCommand"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00064 00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00066 00067 private: 00068 static const char* __s_getMD5Sum_() { return "1ea172a0fa98ff8b257948fc31b156cd"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00071 00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00073 00074 private: 00075 static const char* __s_getMessageDefinition_() { return "# ROS command message from RobotIQ hand\n\ 00076 \n\ 00077 # mode constants\n\ 00078 int8 CYLINDRICAL = 0\n\ 00079 int8 PINCH = 1\n\ 00080 int8 SPHERIOD = 2\n\ 00081 int8 SCISSORS = 3\n\ 00082 \n\ 00083 # action constants\n\ 00084 int8 STOP = 0\n\ 00085 int8 CLOSE = 1\n\ 00086 int8 OPEN = 2\n\ 00087 \n\ 00088 \n\ 00089 int8 mode # PINCH, CYLINDRICAL, SPHERIOD, SCISSORS \n\ 00090 int8 action # CLOSE, OPEN, STOP\n\ 00091 float64 velocity # Speed value goes from 0.0 to 1.0\n\ 00092 float64 force # Force value goes from 0.0 to 1.0 \n\ 00093 "; } 00094 public: 00095 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00096 00097 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00100 { 00101 ros::serialization::OStream stream(write_ptr, 1000000000); 00102 ros::serialization::serialize(stream, mode); 00103 ros::serialization::serialize(stream, action); 00104 ros::serialization::serialize(stream, velocity); 00105 ros::serialization::serialize(stream, force); 00106 return stream.getData(); 00107 } 00108 00109 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00110 { 00111 ros::serialization::IStream stream(read_ptr, 1000000000); 00112 ros::serialization::deserialize(stream, mode); 00113 ros::serialization::deserialize(stream, action); 00114 ros::serialization::deserialize(stream, velocity); 00115 ros::serialization::deserialize(stream, force); 00116 return stream.getData(); 00117 } 00118 00119 ROS_DEPRECATED virtual uint32_t serializationLength() const 00120 { 00121 uint32_t size = 0; 00122 size += ros::serialization::serializationLength(mode); 00123 size += ros::serialization::serializationLength(action); 00124 size += ros::serialization::serializationLength(velocity); 00125 size += ros::serialization::serializationLength(force); 00126 return size; 00127 } 00128 00129 typedef boost::shared_ptr< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > Ptr; 00130 typedef boost::shared_ptr< ::riq_msgs::RIQHandCommand_<ContainerAllocator> const> ConstPtr; 00131 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00132 }; // struct RIQHandCommand 00133 typedef ::riq_msgs::RIQHandCommand_<std::allocator<void> > RIQHandCommand; 00134 00135 typedef boost::shared_ptr< ::riq_msgs::RIQHandCommand> RIQHandCommandPtr; 00136 typedef boost::shared_ptr< ::riq_msgs::RIQHandCommand const> RIQHandCommandConstPtr; 00137 00138 00139 template<typename ContainerAllocator> 00140 std::ostream& operator<<(std::ostream& s, const ::riq_msgs::RIQHandCommand_<ContainerAllocator> & v) 00141 { 00142 ros::message_operations::Printer< ::riq_msgs::RIQHandCommand_<ContainerAllocator> >::stream(s, "", v); 00143 return s;} 00144 00145 } // namespace riq_msgs 00146 00147 namespace ros 00148 { 00149 namespace message_traits 00150 { 00151 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > : public TrueType {}; 00152 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQHandCommand_<ContainerAllocator> const> : public TrueType {}; 00153 template<class ContainerAllocator> 00154 struct MD5Sum< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "1ea172a0fa98ff8b257948fc31b156cd"; 00158 } 00159 00160 static const char* value(const ::riq_msgs::RIQHandCommand_<ContainerAllocator> &) { return value(); } 00161 static const uint64_t static_value1 = 0x1ea172a0fa98ff8bULL; 00162 static const uint64_t static_value2 = 0x257948fc31b156cdULL; 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct DataType< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "riq_msgs/RIQHandCommand"; 00170 } 00171 00172 static const char* value(const ::riq_msgs::RIQHandCommand_<ContainerAllocator> &) { return value(); } 00173 }; 00174 00175 template<class ContainerAllocator> 00176 struct Definition< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > { 00177 static const char* value() 00178 { 00179 return "# ROS command message from RobotIQ hand\n\ 00180 \n\ 00181 # mode constants\n\ 00182 int8 CYLINDRICAL = 0\n\ 00183 int8 PINCH = 1\n\ 00184 int8 SPHERIOD = 2\n\ 00185 int8 SCISSORS = 3\n\ 00186 \n\ 00187 # action constants\n\ 00188 int8 STOP = 0\n\ 00189 int8 CLOSE = 1\n\ 00190 int8 OPEN = 2\n\ 00191 \n\ 00192 \n\ 00193 int8 mode # PINCH, CYLINDRICAL, SPHERIOD, SCISSORS \n\ 00194 int8 action # CLOSE, OPEN, STOP\n\ 00195 float64 velocity # Speed value goes from 0.0 to 1.0\n\ 00196 float64 force # Force value goes from 0.0 to 1.0 \n\ 00197 "; 00198 } 00199 00200 static const char* value(const ::riq_msgs::RIQHandCommand_<ContainerAllocator> &) { return value(); } 00201 }; 00202 00203 template<class ContainerAllocator> struct IsFixedSize< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > : public TrueType {}; 00204 } // namespace message_traits 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace serialization 00210 { 00211 00212 template<class ContainerAllocator> struct Serializer< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > 00213 { 00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00215 { 00216 stream.next(m.mode); 00217 stream.next(m.action); 00218 stream.next(m.velocity); 00219 stream.next(m.force); 00220 } 00221 00222 ROS_DECLARE_ALLINONE_SERIALIZER; 00223 }; // struct RIQHandCommand_ 00224 } // namespace serialization 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace message_operations 00230 { 00231 00232 template<class ContainerAllocator> 00233 struct Printer< ::riq_msgs::RIQHandCommand_<ContainerAllocator> > 00234 { 00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::riq_msgs::RIQHandCommand_<ContainerAllocator> & v) 00236 { 00237 s << indent << "mode: "; 00238 Printer<int8_t>::stream(s, indent + " ", v.mode); 00239 s << indent << "action: "; 00240 Printer<int8_t>::stream(s, indent + " ", v.action); 00241 s << indent << "velocity: "; 00242 Printer<double>::stream(s, indent + " ", v.velocity); 00243 s << indent << "force: "; 00244 Printer<double>::stream(s, indent + " ", v.force); 00245 } 00246 }; 00247 00248 00249 } // namespace message_operations 00250 } // namespace ros 00251 00252 #endif // RIQ_MSGS_MESSAGE_RIQHANDCOMMAND_H 00253