00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_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_gripper_sensor_msgs/PR2GripperForceServoCommand.h"
00014
00015 namespace pr2_gripper_sensor_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct PR2GripperForceServoGoal_ : public ros::Message
00019 {
00020 typedef PR2GripperForceServoGoal_<ContainerAllocator> Type;
00021
00022 PR2GripperForceServoGoal_()
00023 : command()
00024 {
00025 }
00026
00027 PR2GripperForceServoGoal_(const ContainerAllocator& _alloc)
00028 : command(_alloc)
00029 {
00030 }
00031
00032 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> _command_type;
00033 ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> command;
00034
00035
00036 private:
00037 static const char* __s_getDataType_() { return "pr2_gripper_sensor_msgs/PR2GripperForceServoGoal"; }
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 "72dfec6461d0f26a4433260fc791bc48"; }
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 # Action to launch the gripper into force servoing mode \n\
00053 \n\
00054 #goals\n\
00055 PR2GripperForceServoCommand command\n\
00056 \n\
00057 ================================================================================\n\
00058 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\
00059 # the amount of fingertip force (in Newtons) to apply.\n\
00060 # NOTE: the joint will squeeze until each finger reaches this level\n\
00061 # values < 0 (opening force) are ignored\n\
00062 #\n\
00063 # 10 N can crack an egg or crush a soda can.\n\
00064 # 15 N can firmly pick up a can of soup.\n\
00065 # Experiment on your own.\n\
00066 #\n\
00067 float64 fingertip_force\n\
00068 "; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00075 {
00076 ros::serialization::OStream stream(write_ptr, 1000000000);
00077 ros::serialization::serialize(stream, command);
00078 return stream.getData();
00079 }
00080
00081 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00082 {
00083 ros::serialization::IStream stream(read_ptr, 1000000000);
00084 ros::serialization::deserialize(stream, command);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint32_t serializationLength() const
00089 {
00090 uint32_t size = 0;
00091 size += ros::serialization::serializationLength(command);
00092 return size;
00093 }
00094
00095 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > Ptr;
00096 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> const> ConstPtr;
00097 };
00098 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<std::allocator<void> > PR2GripperForceServoGoal;
00099
00100 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal> PR2GripperForceServoGoalPtr;
00101 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal const> PR2GripperForceServoGoalConstPtr;
00102
00103
00104 template<typename ContainerAllocator>
00105 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> & v)
00106 {
00107 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> >::stream(s, "", v);
00108 return s;}
00109
00110 }
00111
00112 namespace ros
00113 {
00114 namespace message_traits
00115 {
00116 template<class ContainerAllocator>
00117 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > {
00118 static const char* value()
00119 {
00120 return "72dfec6461d0f26a4433260fc791bc48";
00121 }
00122
00123 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); }
00124 static const uint64_t static_value1 = 0x72dfec6461d0f26aULL;
00125 static const uint64_t static_value2 = 0x4433260fc791bc48ULL;
00126 };
00127
00128 template<class ContainerAllocator>
00129 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "pr2_gripper_sensor_msgs/PR2GripperForceServoGoal";
00133 }
00134
00135 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); }
00136 };
00137
00138 template<class ContainerAllocator>
00139 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > {
00140 static const char* value()
00141 {
00142 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00143 # Action to launch the gripper into force servoing mode \n\
00144 \n\
00145 #goals\n\
00146 PR2GripperForceServoCommand command\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: pr2_gripper_sensor_msgs/PR2GripperForceServoCommand\n\
00150 # the amount of fingertip force (in Newtons) to apply.\n\
00151 # NOTE: the joint will squeeze until each finger reaches this level\n\
00152 # values < 0 (opening force) are ignored\n\
00153 #\n\
00154 # 10 N can crack an egg or crush a soda can.\n\
00155 # 15 N can firmly pick up a can of soup.\n\
00156 # Experiment on your own.\n\
00157 #\n\
00158 float64 fingertip_force\n\
00159 ";
00160 }
00161
00162 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> > : public TrueType {};
00166 }
00167 }
00168
00169 namespace ros
00170 {
00171 namespace serialization
00172 {
00173
00174 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> >
00175 {
00176 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00177 {
00178 stream.next(m.command);
00179 }
00180
00181 ROS_DECLARE_ALLINONE_SERIALIZER;
00182 };
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace message_operations
00189 {
00190
00191 template<class ContainerAllocator>
00192 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> >
00193 {
00194 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoGoal_<ContainerAllocator> & v)
00195 {
00196 s << indent << "command: ";
00197 s << std::endl;
00198 Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoCommand_<ContainerAllocator> >::stream(s, indent + " ", v.command);
00199 }
00200 };
00201
00202
00203 }
00204 }
00205
00206 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVOGOAL_H
00207