Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::riq_msgs::RIQActuatorState_<std::allocator<void> > RIQActuatorState;
00053
00054 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState> RIQActuatorStatePtr;
00055 typedef boost::shared_ptr< ::riq_msgs::RIQActuatorState const> RIQActuatorStateConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::riq_msgs::RIQActuatorState_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::riq_msgs::RIQActuatorState_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "cbea6b39c5eb1a580f94afb79f0a3ba4";
00077 }
00078
00079 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xcbea6b39c5eb1a58ULL;
00081 static const uint64_t static_value2 = 0x0f94afb79f0a3ba4ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "riq_msgs/RIQActuatorState";
00089 }
00090
00091 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# ROS state information for RobotIQ actuator.\n\
00099 \n\
00100 # Measured motor current (in Amps)\n\
00101 float64 current\n\
00102 \n\
00103 # Motor position range from (0.0 to 1.0)\n\
00104 float64 position\n\
00105 \n\
00106 # True when finger / actuator detected an object\n\
00107 bool object_detected\n\
00108 ";
00109 }
00110
00111 static const char* value(const ::riq_msgs::RIQActuatorState_<ContainerAllocator> &) { return value(); }
00112 };
00113
00114 template<class ContainerAllocator> struct IsFixedSize< ::riq_msgs::RIQActuatorState_<ContainerAllocator> > : public TrueType {};
00115 }
00116 }
00117
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122
00123 template<class ContainerAllocator> struct Serializer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> >
00124 {
00125 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126 {
00127 stream.next(m.current);
00128 stream.next(m.position);
00129 stream.next(m.object_detected);
00130 }
00131
00132 ROS_DECLARE_ALLINONE_SERIALIZER;
00133 };
00134 }
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_operations
00140 {
00141
00142 template<class ContainerAllocator>
00143 struct Printer< ::riq_msgs::RIQActuatorState_<ContainerAllocator> >
00144 {
00145 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::riq_msgs::RIQActuatorState_<ContainerAllocator> & v)
00146 {
00147 s << indent << "current: ";
00148 Printer<double>::stream(s, indent + " ", v.current);
00149 s << indent << "position: ";
00150 Printer<double>::stream(s, indent + " ", v.position);
00151 s << indent << "object_detected: ";
00152 Printer<uint8_t>::stream(s, indent + " ", v.object_detected);
00153 }
00154 };
00155
00156
00157 }
00158 }
00159
00160 #endif // RIQ_MSGS_MESSAGE_RIQACTUATORSTATE_H
00161