Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H
00039 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H
00040
00041
00042 #include <string>
00043 #include <vector>
00044 #include <map>
00045
00046 #include <ros/types.h>
00047 #include <ros/serialization.h>
00048 #include <ros/builtin_message_traits.h>
00049 #include <ros/message_operations.h>
00050
00051
00052 namespace pr2_controllers_msgs
00053 {
00054 template <class ContainerAllocator>
00055 struct Pr2GripperCommandResult_
00056 {
00057 typedef Pr2GripperCommandResult_<ContainerAllocator> Type;
00058
00059 Pr2GripperCommandResult_()
00060 : position(0.0)
00061 , effort(0.0)
00062 , stalled(false)
00063 , reached_goal(false) {
00064 }
00065 Pr2GripperCommandResult_(const ContainerAllocator& _alloc)
00066 : position(0.0)
00067 , effort(0.0)
00068 , stalled(false)
00069 , reached_goal(false) {
00070 }
00071
00072
00073
00074 typedef double _position_type;
00075 _position_type position;
00076
00077 typedef double _effort_type;
00078 _effort_type effort;
00079
00080 typedef uint8_t _stalled_type;
00081 _stalled_type stalled;
00082
00083 typedef uint8_t _reached_goal_type;
00084 _reached_goal_type reached_goal;
00085
00086
00087
00088
00089 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> > Ptr;
00090 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const> ConstPtr;
00091 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00092
00093 };
00094
00095 typedef ::pr2_controllers_msgs::Pr2GripperCommandResult_<std::allocator<void> > Pr2GripperCommandResult;
00096
00097 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult > Pr2GripperCommandResultPtr;
00098 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandResult const> Pr2GripperCommandResultConstPtr;
00099
00100
00101
00102
00103
00104 template<typename ContainerAllocator>
00105 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> & v)
00106 {
00107 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >::stream(s, "", v);
00108 return s;
00109 }
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128 template <class ContainerAllocator>
00129 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00130 : TrueType
00131 { };
00132
00133 template <class ContainerAllocator>
00134 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const>
00135 : TrueType
00136 { };
00137
00138 template <class ContainerAllocator>
00139 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00140 : TrueType
00141 { };
00142
00143 template <class ContainerAllocator>
00144 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const>
00145 : TrueType
00146 { };
00147
00148 template <class ContainerAllocator>
00149 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00150 : FalseType
00151 { };
00152
00153 template <class ContainerAllocator>
00154 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> const>
00155 : FalseType
00156 { };
00157
00158
00159 template<class ContainerAllocator>
00160 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00161 {
00162 static const char* value()
00163 {
00164 return "e4cbff56d3562bcf113da5a5adeef91f";
00165 }
00166
00167 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>&) { return value(); }
00168 static const uint64_t static_value1 = 0xe4cbff56d3562bcfULL;
00169 static const uint64_t static_value2 = 0x113da5a5adeef91fULL;
00170 };
00171
00172 template<class ContainerAllocator>
00173 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00174 {
00175 static const char* value()
00176 {
00177 return "pr2_controllers_msgs/Pr2GripperCommandResult";
00178 }
00179
00180 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>&) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00185 {
00186 static const char* value()
00187 {
00188 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00189 float64 position # The current gripper gap size (in meters)\n\
00190 float64 effort # The current effort exerted (in Newtons)\n\
00191 bool stalled # True iff the gripper is exerting max effort and not moving\n\
00192 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00193 \n\
00194 ";
00195 }
00196
00197 static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>&) { return value(); }
00198 };
00199
00200 }
00201 }
00202
00203 namespace ros
00204 {
00205 namespace serialization
00206 {
00207
00208 template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00209 {
00210 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00211 {
00212 stream.next(m.position);
00213 stream.next(m.effort);
00214 stream.next(m.stalled);
00215 stream.next(m.reached_goal);
00216 }
00217
00218 ROS_DECLARE_ALLINONE_SERIALIZER;
00219 };
00220
00221 }
00222 }
00223
00224 namespace ros
00225 {
00226 namespace message_operations
00227 {
00228
00229 template<class ContainerAllocator>
00230 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator> >
00231 {
00232 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandResult_<ContainerAllocator>& v)
00233 {
00234 s << indent << "position: ";
00235 Printer<double>::stream(s, indent + " ", v.position);
00236 s << indent << "effort: ";
00237 Printer<double>::stream(s, indent + " ", v.effort);
00238 s << indent << "stalled: ";
00239 Printer<uint8_t>::stream(s, indent + " ", v.stalled);
00240 s << indent << "reached_goal: ";
00241 Printer<uint8_t>::stream(s, indent + " ", v.reached_goal);
00242 }
00243 };
00244
00245 }
00246 }
00247
00248 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDRESULT_H