Go to the documentation of this file.00001
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVODATA_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVODATA_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 #include "pr2_gripper_sensor_msgs/PR2GripperSensorRTState.h"
00018
00019 namespace pr2_gripper_sensor_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PR2GripperForceServoData_ {
00023 typedef PR2GripperForceServoData_<ContainerAllocator> Type;
00024
00025 PR2GripperForceServoData_()
00026 : stamp()
00027 , left_fingertip_pad_force(0.0)
00028 , right_fingertip_pad_force(0.0)
00029 , joint_effort(0.0)
00030 , force_achieved(false)
00031 , rtstate()
00032 {
00033 }
00034
00035 PR2GripperForceServoData_(const ContainerAllocator& _alloc)
00036 : stamp()
00037 , left_fingertip_pad_force(0.0)
00038 , right_fingertip_pad_force(0.0)
00039 , joint_effort(0.0)
00040 , force_achieved(false)
00041 , rtstate(_alloc)
00042 {
00043 }
00044
00045 typedef ros::Time _stamp_type;
00046 ros::Time stamp;
00047
00048 typedef double _left_fingertip_pad_force_type;
00049 double left_fingertip_pad_force;
00050
00051 typedef double _right_fingertip_pad_force_type;
00052 double right_fingertip_pad_force;
00053
00054 typedef double _joint_effort_type;
00055 double joint_effort;
00056
00057 typedef uint8_t _force_achieved_type;
00058 uint8_t force_achieved;
00059
00060 typedef ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> _rtstate_type;
00061 ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> rtstate;
00062
00063
00064 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > Ptr;
00065 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> const> ConstPtr;
00066 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00067 };
00068 typedef ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<std::allocator<void> > PR2GripperForceServoData;
00069
00070 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData> PR2GripperForceServoDataPtr;
00071 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData const> PR2GripperForceServoDataConstPtr;
00072
00073
00074 template<typename ContainerAllocator>
00075 std::ostream& operator<<(std::ostream& s, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> & v)
00076 {
00077 ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> >::stream(s, "", v);
00078 return s;}
00079
00080 }
00081
00082 namespace ros
00083 {
00084 namespace message_traits
00085 {
00086 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > : public TrueType {};
00087 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> const> : public TrueType {};
00088 template<class ContainerAllocator>
00089 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > {
00090 static const char* value()
00091 {
00092 return "d3960eb2ecb6a9b4c27065619e47fd06";
00093 }
00094
00095 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> &) { return value(); }
00096 static const uint64_t static_value1 = 0xd3960eb2ecb6a9b4ULL;
00097 static const uint64_t static_value2 = 0xc27065619e47fd06ULL;
00098 };
00099
00100 template<class ContainerAllocator>
00101 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "pr2_gripper_sensor_msgs/PR2GripperForceServoData";
00105 }
00106
00107 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> &) { return value(); }
00108 };
00109
00110 template<class ContainerAllocator>
00111 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > {
00112 static const char* value()
00113 {
00114 return "# Time the data was recorded at\n\
00115 time stamp\n\
00116 \n\
00117 # the force experienced by the finger Pads (N)\n\
00118 # NOTE:this ignores data from the edges of the finger pressure\n\
00119 float64 left_fingertip_pad_force\n\
00120 float64 right_fingertip_pad_force\n\
00121 \n\
00122 # the current gripper virtual parallel joint effort (in N)\n\
00123 float64 joint_effort\n\
00124 \n\
00125 # true when the gripper is no longer moving\n\
00126 # and we have reached the desired force level\n\
00127 bool force_achieved\n\
00128 \n\
00129 \n\
00130 # the control state of our realtime controller\n\
00131 PR2GripperSensorRTState rtstate\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00135 # the control state of our realtime controller\n\
00136 int8 realtime_controller_state\n\
00137 \n\
00138 # predefined values to indicate our realtime_controller_state\n\
00139 int8 DISABLED = 0\n\
00140 int8 POSITION_SERVO = 3\n\
00141 int8 FORCE_SERVO = 4\n\
00142 int8 FIND_CONTACT = 5\n\
00143 int8 SLIP_SERVO = 6\n\
00144 ";
00145 }
00146
00147 static const char* value(const ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> > : public TrueType {};
00151 }
00152 }
00153
00154 namespace ros
00155 {
00156 namespace serialization
00157 {
00158
00159 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> >
00160 {
00161 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00162 {
00163 stream.next(m.stamp);
00164 stream.next(m.left_fingertip_pad_force);
00165 stream.next(m.right_fingertip_pad_force);
00166 stream.next(m.joint_effort);
00167 stream.next(m.force_achieved);
00168 stream.next(m.rtstate);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_gripper_sensor_msgs::PR2GripperForceServoData_<ContainerAllocator> & v)
00185 {
00186 s << indent << "stamp: ";
00187 Printer<ros::Time>::stream(s, indent + " ", v.stamp);
00188 s << indent << "left_fingertip_pad_force: ";
00189 Printer<double>::stream(s, indent + " ", v.left_fingertip_pad_force);
00190 s << indent << "right_fingertip_pad_force: ";
00191 Printer<double>::stream(s, indent + " ", v.right_fingertip_pad_force);
00192 s << indent << "joint_effort: ";
00193 Printer<double>::stream(s, indent + " ", v.joint_effort);
00194 s << indent << "force_achieved: ";
00195 Printer<uint8_t>::stream(s, indent + " ", v.force_achieved);
00196 s << indent << "rtstate: ";
00197 s << std::endl;
00198 Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >::stream(s, indent + " ", v.rtstate);
00199 }
00200 };
00201
00202
00203 }
00204 }
00205
00206 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFORCESERVODATA_H
00207