00001
00002 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDGOAL_H
00003 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDGOAL_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 #include "pr2_controllers_msgs/Pr2GripperCommand.h"
00014
00015 namespace pr2_controllers_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct Pr2GripperCommandGoal_ : public ros::Message
00019 {
00020 typedef Pr2GripperCommandGoal_<ContainerAllocator> Type;
00021
00022 Pr2GripperCommandGoal_()
00023 : command()
00024 {
00025 }
00026
00027 Pr2GripperCommandGoal_(const ContainerAllocator& _alloc)
00028 : command(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> _command_type;
00033 ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> command;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_controllers_msgs/Pr2GripperCommandGoal"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "86fd82f4ddc48a4cb6856cfa69217e43"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00052 pr2_controllers_msgs/Pr2GripperCommand command\n\
00053 \n\
00054 ================================================================================\n\
00055 MSG: pr2_controllers_msgs/Pr2GripperCommand\n\
00056 float64 position\n\
00057 float64 max_effort\n\
00058 \n\
00059 "; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00066 {
00067 ros::serialization::OStream stream(write_ptr, 1000000000);
00068 ros::serialization::serialize(stream, command);
00069 return stream.getData();
00070 }
00071
00072 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00073 {
00074 ros::serialization::IStream stream(read_ptr, 1000000000);
00075 ros::serialization::deserialize(stream, command);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint32_t serializationLength() const
00080 {
00081 uint32_t size = 0;
00082 size += ros::serialization::serializationLength(command);
00083 return size;
00084 }
00085
00086 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> > Ptr;
00087 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> const> ConstPtr;
00088 };
00089 typedef ::pr2_controllers_msgs::Pr2GripperCommandGoal_<std::allocator<void> > Pr2GripperCommandGoal;
00090
00091 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandGoal> Pr2GripperCommandGoalPtr;
00092 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandGoal const> Pr2GripperCommandGoalConstPtr;
00093
00094
00095 template<typename ContainerAllocator>
00096 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> & v)
00097 {
00098 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> >::stream(s, "", v);
00099 return s;}
00100
00101 }
00102
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 template<class ContainerAllocator>
00108 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> > {
00109 static const char* value()
00110 {
00111 return "86fd82f4ddc48a4cb6856cfa69217e43";
00112 }
00113
00114 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> &) { return value(); }
00115 static const uint64_t static_value1 = 0x86fd82f4ddc48a4cULL;
00116 static const uint64_t static_value2 = 0xb6856cfa69217e43ULL;
00117 };
00118
00119 template<class ContainerAllocator>
00120 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "pr2_controllers_msgs/Pr2GripperCommandGoal";
00124 }
00125
00126 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> &) { return value(); }
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00134 pr2_controllers_msgs/Pr2GripperCommand command\n\
00135 \n\
00136 ================================================================================\n\
00137 MSG: pr2_controllers_msgs/Pr2GripperCommand\n\
00138 float64 position\n\
00139 float64 max_effort\n\
00140 \n\
00141 ";
00142 }
00143
00144 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> &) { return value(); }
00145 };
00146
00147 template<class ContainerAllocator> struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> > : public TrueType {};
00148 }
00149 }
00150
00151 namespace ros
00152 {
00153 namespace serialization
00154 {
00155
00156 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> >
00157 {
00158 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00159 {
00160 stream.next(m.command);
00161 }
00162
00163 ROS_DECLARE_ALLINONE_SERIALIZER;
00164 };
00165 }
00166 }
00167
00168 namespace ros
00169 {
00170 namespace message_operations
00171 {
00172
00173 template<class ContainerAllocator>
00174 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> >
00175 {
00176 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandGoal_<ContainerAllocator> & v)
00177 {
00178 s << indent << "command: ";
00179 s << std::endl;
00180 Printer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command);
00181 }
00182 };
00183
00184
00185 }
00186 }
00187
00188 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDGOAL_H
00189