Pr2GripperCommandAction.h
Go to the documentation of this file.
00001 /* Software License Agreement (BSD License)
00002  *
00003  * Copyright (c) 2011, Willow Garage, Inc.
00004  * All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted provided that the following conditions
00008  * are met:
00009  *
00010  *  * Redistributions of source code must retain the above copyright
00011  *    notice, this list of conditions and the following disclaimer.
00012  *  * Redistributions in binary form must reproduce the above
00013  *    copyright notice, this list of conditions and the following
00014  *    disclaimer in the documentation and/or other materials provided
00015  *    with the distribution.
00016  *  * Neither the name of Willow Garage, Inc. nor the names of its
00017  *    contributors may be used to endorse or promote products derived
00018  *    from this software without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00021  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00022  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00023  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00024  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00025  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00026  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00027  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00028  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00029  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
00030  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00031  * POSSIBILITY OF SUCH DAMAGE.
00032  *
00033  * Auto-generated by genmsg_cpp from file /wg/stor2a/isucan/projects/moveit/devel/share/pr2_controllers_msgs/msg/Pr2GripperCommandAction.msg
00034  *
00035  */
00036 
00037 
00038 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDACTION_H
00039 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDACTION_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 #include <pr2_controllers_msgs/Pr2GripperCommandActionGoal.h>
00052 #include <pr2_controllers_msgs/Pr2GripperCommandActionResult.h>
00053 #include <pr2_controllers_msgs/Pr2GripperCommandActionFeedback.h>
00054 
00055 namespace pr2_controllers_msgs
00056 {
00057 template <class ContainerAllocator>
00058 struct Pr2GripperCommandAction_
00059 {
00060   typedef Pr2GripperCommandAction_<ContainerAllocator> Type;
00061 
00062   Pr2GripperCommandAction_()
00063     : action_goal()
00064     , action_result()
00065     , action_feedback()  {
00066     }
00067   Pr2GripperCommandAction_(const ContainerAllocator& _alloc)
00068     : action_goal(_alloc)
00069     , action_result(_alloc)
00070     , action_feedback(_alloc)  {
00071     }
00072 
00073 
00074 
00075    typedef  ::pr2_controllers_msgs::Pr2GripperCommandActionGoal_<ContainerAllocator>  _action_goal_type;
00076   _action_goal_type action_goal;
00077 
00078    typedef  ::pr2_controllers_msgs::Pr2GripperCommandActionResult_<ContainerAllocator>  _action_result_type;
00079   _action_result_type action_result;
00080 
00081    typedef  ::pr2_controllers_msgs::Pr2GripperCommandActionFeedback_<ContainerAllocator>  _action_feedback_type;
00082   _action_feedback_type action_feedback;
00083 
00084 
00085 
00086 
00087   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> > Ptr;
00088   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> const> ConstPtr;
00089   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00090 
00091 }; // struct Pr2GripperCommandAction_
00092 
00093 typedef ::pr2_controllers_msgs::Pr2GripperCommandAction_<std::allocator<void> > Pr2GripperCommandAction;
00094 
00095 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandAction > Pr2GripperCommandActionPtr;
00096 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommandAction const> Pr2GripperCommandActionConstPtr;
00097 
00098 // constants requiring out of line definition
00099 
00100 
00101 
00102 template<typename ContainerAllocator>
00103 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> & v)
00104 {
00105 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >::stream(s, "", v);
00106 return s;
00107 }
00108 
00109 } // namespace pr2_controllers_msgs
00110 
00111 namespace ros
00112 {
00113 namespace message_traits
00114 {
00115 
00116 
00117 
00118 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': False}
00119 // {'std_msgs': ['/opt/ros/groovy/share/std_msgs/msg'], 'actionlib_msgs': ['/opt/ros/groovy/share/actionlib_msgs/msg'], 'trajectory_msgs': ['/opt/ros/groovy/share/trajectory_msgs/msg'], 'geometry_msgs': ['/opt/ros/groovy/share/geometry_msgs/msg'], 'pr2_controllers_msgs': ['/wg/stor2a/isucan/projects/moveit/devel/share/pr2_controllers_msgs/msg', '/wg/stor2a/isucan/projects/moveit/devel/share/pr2_controllers_msgs/msg', '/wg/stor2a/isucan/projects/moveit/src/moveit_pr2/pr2_controllers_msgs/msg']}
00120 
00121 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
00122 
00123 
00124 
00125 
00126 template <class ContainerAllocator>
00127 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00128   : FalseType
00129   { };
00130 
00131 template <class ContainerAllocator>
00132 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> const>
00133   : FalseType
00134   { };
00135 
00136 template <class ContainerAllocator>
00137 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00138   : TrueType
00139   { };
00140 
00141 template <class ContainerAllocator>
00142 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> const>
00143   : TrueType
00144   { };
00145 
00146 template <class ContainerAllocator>
00147 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00148   : FalseType
00149   { };
00150 
00151 template <class ContainerAllocator>
00152 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> const>
00153   : FalseType
00154   { };
00155 
00156 
00157 template<class ContainerAllocator>
00158 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00159 {
00160   static const char* value()
00161   {
00162     return "950b2a6ebe831f5d4f4ceaba3d8be01e";
00163   }
00164 
00165   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator>&) { return value(); }
00166   static const uint64_t static_value1 = 0x950b2a6ebe831f5dULL;
00167   static const uint64_t static_value2 = 0x4f4ceaba3d8be01eULL;
00168 };
00169 
00170 template<class ContainerAllocator>
00171 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00172 {
00173   static const char* value()
00174   {
00175     return "pr2_controllers_msgs/Pr2GripperCommandAction";
00176   }
00177 
00178   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator>&) { return value(); }
00179 };
00180 
00181 template<class ContainerAllocator>
00182 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00183 {
00184   static const char* value()
00185   {
00186     return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00187 \n\
00188 Pr2GripperCommandActionGoal action_goal\n\
00189 Pr2GripperCommandActionResult action_result\n\
00190 Pr2GripperCommandActionFeedback action_feedback\n\
00191 \n\
00192 ================================================================================\n\
00193 MSG: pr2_controllers_msgs/Pr2GripperCommandActionGoal\n\
00194 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00195 \n\
00196 Header header\n\
00197 actionlib_msgs/GoalID goal_id\n\
00198 Pr2GripperCommandGoal goal\n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: std_msgs/Header\n\
00202 # Standard metadata for higher-level stamped data types.\n\
00203 # This is generally used to communicate timestamped data \n\
00204 # in a particular coordinate frame.\n\
00205 # \n\
00206 # sequence ID: consecutively increasing ID \n\
00207 uint32 seq\n\
00208 #Two-integer timestamp that is expressed as:\n\
00209 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00210 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00211 # time-handling sugar is provided by the client library\n\
00212 time stamp\n\
00213 #Frame this data is associated with\n\
00214 # 0: no frame\n\
00215 # 1: global frame\n\
00216 string frame_id\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: actionlib_msgs/GoalID\n\
00220 # The stamp should store the time at which this goal was requested.\n\
00221 # It is used by an action server when it tries to preempt all\n\
00222 # goals that were requested before a certain time\n\
00223 time stamp\n\
00224 \n\
00225 # The id provides a way to associate feedback and\n\
00226 # result message with specific goal requests. The id\n\
00227 # specified must be unique.\n\
00228 string id\n\
00229 \n\
00230 \n\
00231 ================================================================================\n\
00232 MSG: pr2_controllers_msgs/Pr2GripperCommandGoal\n\
00233 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00234 pr2_controllers_msgs/Pr2GripperCommand command\n\
00235 \n\
00236 ================================================================================\n\
00237 MSG: pr2_controllers_msgs/Pr2GripperCommand\n\
00238 float64 position\n\
00239 float64 max_effort\n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: pr2_controllers_msgs/Pr2GripperCommandActionResult\n\
00243 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00244 \n\
00245 Header header\n\
00246 actionlib_msgs/GoalStatus status\n\
00247 Pr2GripperCommandResult result\n\
00248 \n\
00249 ================================================================================\n\
00250 MSG: actionlib_msgs/GoalStatus\n\
00251 GoalID goal_id\n\
00252 uint8 status\n\
00253 uint8 PENDING         = 0   # The goal has yet to be processed by the action server\n\
00254 uint8 ACTIVE          = 1   # The goal is currently being processed by the action server\n\
00255 uint8 PREEMPTED       = 2   # The goal received a cancel request after it started executing\n\
00256                             #   and has since completed its execution (Terminal State)\n\
00257 uint8 SUCCEEDED       = 3   # The goal was achieved successfully by the action server (Terminal State)\n\
00258 uint8 ABORTED         = 4   # The goal was aborted during execution by the action server due\n\
00259                             #    to some failure (Terminal State)\n\
00260 uint8 REJECTED        = 5   # The goal was rejected by the action server without being processed,\n\
00261                             #    because the goal was unattainable or invalid (Terminal State)\n\
00262 uint8 PREEMPTING      = 6   # The goal received a cancel request after it started executing\n\
00263                             #    and has not yet completed execution\n\
00264 uint8 RECALLING       = 7   # The goal received a cancel request before it started executing,\n\
00265                             #    but the action server has not yet confirmed that the goal is canceled\n\
00266 uint8 RECALLED        = 8   # The goal received a cancel request before it started executing\n\
00267                             #    and was successfully cancelled (Terminal State)\n\
00268 uint8 LOST            = 9   # An action client can determine that a goal is LOST. This should not be\n\
00269                             #    sent over the wire by an action server\n\
00270 \n\
00271 #Allow for the user to associate a string with GoalStatus for debugging\n\
00272 string text\n\
00273 \n\
00274 \n\
00275 ================================================================================\n\
00276 MSG: pr2_controllers_msgs/Pr2GripperCommandResult\n\
00277 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00278 float64 position  # The current gripper gap size (in meters)\n\
00279 float64 effort    # The current effort exerted (in Newtons)\n\
00280 bool stalled      # True iff the gripper is exerting max effort and not moving\n\
00281 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: pr2_controllers_msgs/Pr2GripperCommandActionFeedback\n\
00285 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00286 \n\
00287 Header header\n\
00288 actionlib_msgs/GoalStatus status\n\
00289 Pr2GripperCommandFeedback feedback\n\
00290 \n\
00291 ================================================================================\n\
00292 MSG: pr2_controllers_msgs/Pr2GripperCommandFeedback\n\
00293 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00294 float64 position  # The current gripper gap size (in meters)\n\
00295 float64 effort    # The current effort exerted (in Newtons)\n\
00296 bool stalled      # True iff the gripper is exerting max effort and not moving\n\
00297 bool reached_goal # True iff the gripper position has reached the commanded setpoint\n\
00298 \n\
00299 \n\
00300 ";
00301   }
00302 
00303   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator>&) { return value(); }
00304 };
00305 
00306 } // namespace message_traits
00307 } // namespace ros
00308 
00309 namespace ros
00310 {
00311 namespace serialization
00312 {
00313 
00314   template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00315   {
00316     template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00317     {
00318       stream.next(m.action_goal);
00319       stream.next(m.action_result);
00320       stream.next(m.action_feedback);
00321     }
00322 
00323     ROS_DECLARE_ALLINONE_SERIALIZER;
00324   }; // struct Pr2GripperCommandAction_
00325 
00326 } // namespace serialization
00327 } // namespace ros
00328 
00329 namespace ros
00330 {
00331 namespace message_operations
00332 {
00333 
00334 template<class ContainerAllocator>
00335 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator> >
00336 {
00337   template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommandAction_<ContainerAllocator>& v)
00338   {
00339     s << indent << "action_goal: ";
00340     s << std::endl;
00341     Printer< ::pr2_controllers_msgs::Pr2GripperCommandActionGoal_<ContainerAllocator> >::stream(s, indent + "  ", v.action_goal);
00342     s << indent << "action_result: ";
00343     s << std::endl;
00344     Printer< ::pr2_controllers_msgs::Pr2GripperCommandActionResult_<ContainerAllocator> >::stream(s, indent + "  ", v.action_result);
00345     s << indent << "action_feedback: ";
00346     s << std::endl;
00347     Printer< ::pr2_controllers_msgs::Pr2GripperCommandActionFeedback_<ContainerAllocator> >::stream(s, indent + "  ", v.action_feedback);
00348   }
00349 };
00350 
00351 } // namespace message_operations
00352 } // namespace ros
00353 
00354 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMANDACTION_H


pr2_moveit_plugins
Author(s): Ioan Sucan , Sachin Chitta
autogenerated on Mon Oct 6 2014 11:14:04