$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/RIQActuatorState.msg */ 00002 #ifndef RIQ_MSGS_MESSAGE_RIQACTUATORSTATE_H 00003 #define RIQ_MSGS_MESSAGE_RIQACTUATORSTATE_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 RIQActuatorState_ { 00022 typedef RIQActuatorState_<ContainerAllocator> Type; 00023 00024 RIQActuatorState_() 00025 : current(0.0) 00026 , position(0.0) 00027 , object_detected(false) 00028 { 00029 } 00030 00031 RIQActuatorState_(const ContainerAllocator& _alloc) 00032 : current(0.0) 00033 , position(0.0) 00034 , object_detected(false) 00035 { 00036 } 00037 00038 typedef double _current_type; 00039 double current; 00040 00041 typedef double _position_type; 00042 double position; 00043 00044 typedef uint8_t _object_detected_type; 00045 uint8_t object_detected; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "riq_msgs/RIQActuatorState"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "cbea6b39c5eb1a580f94afb79f0a3ba4"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# ROS state information for RobotIQ actuator.\n\ 00064 \n\ 00065 # Measured motor current (in Amps)\n\ 00066 float64 current\n\ 00067 \n\ 00068 # Motor position range from (0.0 to 1.0)\n\ 00069 float64 position\n\ 00070 \n\ 00071 # True when finger / actuator detected an object\n\ 00072 bool object_detected\n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, current); 00083 ros::serialization::serialize(stream, position); 00084 ros::serialization::serialize(stream, object_detected); 00085 return stream.getData(); 00086 } 00087 00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00089 { 00090 ros::serialization::IStream stream(read_ptr, 1000000000); 00091 ros::serialization::deserialize(stream, current); 00092 ros::serialization::deserialize(stream, position); 00093 ros::serialization::deserialize(stream, object_detected); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint32_t serializationLength() const 00098 { 00099 uint32_t size = 0; 00100 size += ros::serialization::serializationLength(current); 00101 size += ros::serialization::serializationLength(position); 00102 size += ros::serialization::serializationLength(object_detected); 00103 return size; 00104 } 00105 00106 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > Ptr; 00107 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState_<ContainerAllocator> const> ConstPtr; 00108 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00109 }; // struct RIQActuatorState 00110 typedef ::riq_msgs::RIQActuatorState_<std::allocator<void> > RIQActuatorState; 00111 00112 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState> RIQActuatorStatePtr; 00113 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState const> RIQActuatorStateConstPtr; 00114 00115 00116 template<typename ContainerAllocator> 00117 std::ostream& operator<<(std::ostream& s, const ::riq_msgs::RIQActuatorState_<ContainerAllocator> & v) 00118 { 00119 ros::message_operations::Printer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> >::stream(s, "", v); 00120 return s;} 00121 00122 } // namespace riq_msgs 00123 00124 namespace ros 00125 { 00126 namespace message_traits 00127 { 00128 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > : public TrueType {}; 00129 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQActuatorState_<ContainerAllocator> const> : public TrueType {}; 00130 template<class ContainerAllocator> 00131 struct MD5Sum< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > { 00132 static const char* value() 00133 { 00134 return "cbea6b39c5eb1a580f94afb79f0a3ba4"; 00135 } 00136 00137 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); } 00138 static const uint64_t static_value1 = 0xcbea6b39c5eb1a58ULL; 00139 static const uint64_t static_value2 = 0x0f94afb79f0a3ba4ULL; 00140 }; 00141 00142 template<class ContainerAllocator> 00143 struct DataType< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > { 00144 static const char* value() 00145 { 00146 return "riq_msgs/RIQActuatorState"; 00147 } 00148 00149 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); } 00150 }; 00151 00152 template<class ContainerAllocator> 00153 struct Definition< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > { 00154 static const char* value() 00155 { 00156 return "# ROS state information for RobotIQ actuator.\n\ 00157 \n\ 00158 # Measured motor current (in Amps)\n\ 00159 float64 current\n\ 00160 \n\ 00161 # Motor position range from (0.0 to 1.0)\n\ 00162 float64 position\n\ 00163 \n\ 00164 # True when finger / actuator detected an object\n\ 00165 bool object_detected\n\ 00166 "; 00167 } 00168 00169 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); } 00170 }; 00171 00172 template<class ContainerAllocator> struct IsFixedSize< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > : public TrueType {}; 00173 } // namespace message_traits 00174 } // namespace ros 00175 00176 namespace ros 00177 { 00178 namespace serialization 00179 { 00180 00181 template<class ContainerAllocator> struct Serializer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > 00182 { 00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00184 { 00185 stream.next(m.current); 00186 stream.next(m.position); 00187 stream.next(m.object_detected); 00188 } 00189 00190 ROS_DECLARE_ALLINONE_SERIALIZER; 00191 }; // struct RIQActuatorState_ 00192 } // namespace serialization 00193 } // namespace ros 00194 00195 namespace ros 00196 { 00197 namespace message_operations 00198 { 00199 00200 template<class ContainerAllocator> 00201 struct Printer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > 00202 { 00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::riq_msgs::RIQActuatorState_<ContainerAllocator> & v) 00204 { 00205 s << indent << "current: "; 00206 Printer<double>::stream(s, indent + " ", v.current); 00207 s << indent << "position: "; 00208 Printer<double>::stream(s, indent + " ", v.position); 00209 s << indent << "object_detected: "; 00210 Printer<uint8_t>::stream(s, indent + " ", v.object_detected); 00211 } 00212 }; 00213 00214 00215 } // namespace message_operations 00216 } // namespace ros 00217 00218 #endif // RIQ_MSGS_MESSAGE_RIQACTUATORSTATE_H 00219