PR2GripperFindContactData.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-pr2_object_manipulation/doc_stacks/2014-10-06_11-30-38.833395/pr2_object_manipulation/manipulation/pr2_gripper_sensor_msgs/msg/PR2GripperFindContactData.msg */
00002 #ifndef PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTDATA_H
00003 #define PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTDATA_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 PR2GripperFindContactData_ {
00023   typedef PR2GripperFindContactData_<ContainerAllocator> Type;
00024 
00025   PR2GripperFindContactData_()
00026   : stamp()
00027   , contact_conditions_met(false)
00028   , left_fingertip_pad_contact(false)
00029   , right_fingertip_pad_contact(false)
00030   , left_fingertip_pad_force(0.0)
00031   , right_fingertip_pad_force(0.0)
00032   , joint_position(0.0)
00033   , joint_effort(0.0)
00034   , rtstate()
00035   {
00036   }
00037 
00038   PR2GripperFindContactData_(const ContainerAllocator& _alloc)
00039   : stamp()
00040   , contact_conditions_met(false)
00041   , left_fingertip_pad_contact(false)
00042   , right_fingertip_pad_contact(false)
00043   , left_fingertip_pad_force(0.0)
00044   , right_fingertip_pad_force(0.0)
00045   , joint_position(0.0)
00046   , joint_effort(0.0)
00047   , rtstate(_alloc)
00048   {
00049   }
00050 
00051   typedef ros::Time _stamp_type;
00052   ros::Time stamp;
00053 
00054   typedef uint8_t _contact_conditions_met_type;
00055   uint8_t contact_conditions_met;
00056 
00057   typedef uint8_t _left_fingertip_pad_contact_type;
00058   uint8_t left_fingertip_pad_contact;
00059 
00060   typedef uint8_t _right_fingertip_pad_contact_type;
00061   uint8_t right_fingertip_pad_contact;
00062 
00063   typedef double _left_fingertip_pad_force_type;
00064   double left_fingertip_pad_force;
00065 
00066   typedef double _right_fingertip_pad_force_type;
00067   double right_fingertip_pad_force;
00068 
00069   typedef double _joint_position_type;
00070   double joint_position;
00071 
00072   typedef double _joint_effort_type;
00073   double joint_effort;
00074 
00075   typedef  ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator>  _rtstate_type;
00076    ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator>  rtstate;
00077 
00078 
00079   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > Ptr;
00080   typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator>  const> ConstPtr;
00081   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 }; // struct PR2GripperFindContactData
00083 typedef  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<std::allocator<void> > PR2GripperFindContactData;
00084 
00085 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData> PR2GripperFindContactDataPtr;
00086 typedef boost::shared_ptr< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData const> PR2GripperFindContactDataConstPtr;
00087 
00088 
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> & v)
00091 {
00092   ros::message_operations::Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >::stream(s, "", v);
00093   return s;}
00094 
00095 } // namespace pr2_gripper_sensor_msgs
00096 
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator>  const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "bc53e3dc7d19b896ca9b5ea205d54b91";
00108   }
00109 
00110   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> &) { return value(); } 
00111   static const uint64_t static_value1 = 0xbc53e3dc7d19b896ULL;
00112   static const uint64_t static_value2 = 0xca9b5ea205d54b91ULL;
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct DataType< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "pr2_gripper_sensor_msgs/PR2GripperFindContactData";
00120   }
00121 
00122   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> &) { return value(); } 
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct Definition< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "# Time the data was recorded at\n\
00130 time stamp\n\
00131 \n\
00132 # true when our contact conditions have been met\n\
00133 # (see PR2GripperFindContact command)\n\
00134 bool contact_conditions_met\n\
00135 \n\
00136 # the finger contact conditions \n\
00137 # true if the finger experienced a contact event\n\
00138 #\n\
00139 # contact events are defined as contact with the fingerpads\n\
00140 # as either steady-state or high-freq force events\n\
00141 bool left_fingertip_pad_contact\n\
00142 bool right_fingertip_pad_contact\n\
00143 \n\
00144 # the force experinced by the finger Pads  (N)\n\
00145 # NOTE:this ignores data from the edges of the finger pressure\n\
00146 float64 left_fingertip_pad_force\n\
00147 float64 right_fingertip_pad_force\n\
00148 \n\
00149 # the current joint position (m)\n\
00150 float64 joint_position\n\
00151 \n\
00152 # the virtual (parallel) joint effort (N)\n\
00153 float64 joint_effort\n\
00154 \n\
00155 # the control state of our realtime controller\n\
00156 PR2GripperSensorRTState rtstate\n\
00157 ================================================================================\n\
00158 MSG: pr2_gripper_sensor_msgs/PR2GripperSensorRTState\n\
00159 # the control state of our realtime controller\n\
00160 int8 realtime_controller_state\n\
00161 \n\
00162 # predefined values to indicate our realtime_controller_state\n\
00163 int8 DISABLED = 0\n\
00164 int8 POSITION_SERVO = 3\n\
00165 int8 FORCE_SERVO = 4\n\
00166 int8 FIND_CONTACT = 5\n\
00167 int8 SLIP_SERVO = 6\n\
00168 ";
00169   }
00170 
00171   static const char* value(const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> &) { return value(); } 
00172 };
00173 
00174 template<class ContainerAllocator> struct IsFixedSize< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> > : public TrueType {};
00175 } // namespace message_traits
00176 } // namespace ros
00177 
00178 namespace ros
00179 {
00180 namespace serialization
00181 {
00182 
00183 template<class ContainerAllocator> struct Serializer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >
00184 {
00185   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00186   {
00187     stream.next(m.stamp);
00188     stream.next(m.contact_conditions_met);
00189     stream.next(m.left_fingertip_pad_contact);
00190     stream.next(m.right_fingertip_pad_contact);
00191     stream.next(m.left_fingertip_pad_force);
00192     stream.next(m.right_fingertip_pad_force);
00193     stream.next(m.joint_position);
00194     stream.next(m.joint_effort);
00195     stream.next(m.rtstate);
00196   }
00197 
00198   ROS_DECLARE_ALLINONE_SERIALIZER;
00199 }; // struct PR2GripperFindContactData_
00200 } // namespace serialization
00201 } // namespace ros
00202 
00203 namespace ros
00204 {
00205 namespace message_operations
00206 {
00207 
00208 template<class ContainerAllocator>
00209 struct Printer< ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> >
00210 {
00211   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::pr2_gripper_sensor_msgs::PR2GripperFindContactData_<ContainerAllocator> & v) 
00212   {
00213     s << indent << "stamp: ";
00214     Printer<ros::Time>::stream(s, indent + "  ", v.stamp);
00215     s << indent << "contact_conditions_met: ";
00216     Printer<uint8_t>::stream(s, indent + "  ", v.contact_conditions_met);
00217     s << indent << "left_fingertip_pad_contact: ";
00218     Printer<uint8_t>::stream(s, indent + "  ", v.left_fingertip_pad_contact);
00219     s << indent << "right_fingertip_pad_contact: ";
00220     Printer<uint8_t>::stream(s, indent + "  ", v.right_fingertip_pad_contact);
00221     s << indent << "left_fingertip_pad_force: ";
00222     Printer<double>::stream(s, indent + "  ", v.left_fingertip_pad_force);
00223     s << indent << "right_fingertip_pad_force: ";
00224     Printer<double>::stream(s, indent + "  ", v.right_fingertip_pad_force);
00225     s << indent << "joint_position: ";
00226     Printer<double>::stream(s, indent + "  ", v.joint_position);
00227     s << indent << "joint_effort: ";
00228     Printer<double>::stream(s, indent + "  ", v.joint_effort);
00229     s << indent << "rtstate: ";
00230 s << std::endl;
00231     Printer< ::pr2_gripper_sensor_msgs::PR2GripperSensorRTState_<ContainerAllocator> >::stream(s, indent + "  ", v.rtstate);
00232   }
00233 };
00234 
00235 
00236 } // namespace message_operations
00237 } // namespace ros
00238 
00239 #endif // PR2_GRIPPER_SENSOR_MSGS_MESSAGE_PR2GRIPPERFINDCONTACTDATA_H
00240 


pr2_gripper_sensor_msgs
Author(s): Joe Romano
autogenerated on Mon Oct 6 2014 12:17:33