$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_controllers/doc_stacks/2013-03-01_16-45-23.561928/pr2_controllers/pr2_controllers_msgs/msg/Pr2GripperCommand.msg */ 00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_H 00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_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 pr2_controllers_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Pr2GripperCommand_ { 00022 typedef Pr2GripperCommand_<ContainerAllocator> Type; 00023 00024 Pr2GripperCommand_() 00025 : position(0.0) 00026 , max_effort(0.0) 00027 { 00028 } 00029 00030 Pr2GripperCommand_(const ContainerAllocator& _alloc) 00031 : position(0.0) 00032 , max_effort(0.0) 00033 { 00034 } 00035 00036 typedef double _position_type; 00037 double position; 00038 00039 typedef double _max_effort_type; 00040 double max_effort; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "pr2_controllers_msgs/Pr2GripperCommand"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "680acaff79486f017132a7f198d40f08"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "float64 position\n\ 00059 float64 max_effort\n\ 00060 \n\ 00061 "; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00064 00065 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00066 00067 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00068 { 00069 ros::serialization::OStream stream(write_ptr, 1000000000); 00070 ros::serialization::serialize(stream, position); 00071 ros::serialization::serialize(stream, max_effort); 00072 return stream.getData(); 00073 } 00074 00075 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00076 { 00077 ros::serialization::IStream stream(read_ptr, 1000000000); 00078 ros::serialization::deserialize(stream, position); 00079 ros::serialization::deserialize(stream, max_effort); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint32_t serializationLength() const 00084 { 00085 uint32_t size = 0; 00086 size += ros::serialization::serializationLength(position); 00087 size += ros::serialization::serializationLength(max_effort); 00088 return size; 00089 } 00090 00091 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > Ptr; 00092 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const> ConstPtr; 00093 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00094 }; // struct Pr2GripperCommand 00095 typedef ::pr2_controllers_msgs::Pr2GripperCommand_<std::allocator<void> > Pr2GripperCommand; 00096 00097 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand> Pr2GripperCommandPtr; 00098 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand const> Pr2GripperCommandConstPtr; 00099 00100 00101 template<typename ContainerAllocator> 00102 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> & v) 00103 { 00104 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >::stream(s, "", v); 00105 return s;} 00106 00107 } // namespace pr2_controllers_msgs 00108 00109 namespace ros 00110 { 00111 namespace message_traits 00112 { 00113 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > : public TrueType {}; 00114 template<class ContainerAllocator> struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const> : public TrueType {}; 00115 template<class ContainerAllocator> 00116 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > { 00117 static const char* value() 00118 { 00119 return "680acaff79486f017132a7f198d40f08"; 00120 } 00121 00122 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> &) { return value(); } 00123 static const uint64_t static_value1 = 0x680acaff79486f01ULL; 00124 static const uint64_t static_value2 = 0x7132a7f198d40f08ULL; 00125 }; 00126 00127 template<class ContainerAllocator> 00128 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "pr2_controllers_msgs/Pr2GripperCommand"; 00132 } 00133 00134 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> &) { return value(); } 00135 }; 00136 00137 template<class ContainerAllocator> 00138 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "float64 position\n\ 00142 float64 max_effort\n\ 00143 \n\ 00144 "; 00145 } 00146 00147 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> &) { return value(); } 00148 }; 00149 00150 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > : public TrueType {}; 00151 } // namespace message_traits 00152 } // namespace ros 00153 00154 namespace ros 00155 { 00156 namespace serialization 00157 { 00158 00159 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > 00160 { 00161 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00162 { 00163 stream.next(m.position); 00164 stream.next(m.max_effort); 00165 } 00166 00167 ROS_DECLARE_ALLINONE_SERIALIZER; 00168 }; // struct Pr2GripperCommand_ 00169 } // namespace serialization 00170 } // namespace ros 00171 00172 namespace ros 00173 { 00174 namespace message_operations 00175 { 00176 00177 template<class ContainerAllocator> 00178 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > 00179 { 00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> & v) 00181 { 00182 s << indent << "position: "; 00183 Printer<double>::stream(s, indent + " ", v.position); 00184 s << indent << "max_effort: "; 00185 Printer<double>::stream(s, indent + " ", v.max_effort); 00186 } 00187 }; 00188 00189 00190 } // namespace message_operations 00191 } // namespace ros 00192 00193 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_H 00194