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