Pr2GripperCommand.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/src/moveit_pr2/pr2_controllers_msgs/msg/Pr2GripperCommand.msg
00034  *
00035  */
00036 
00037 
00038 #ifndef PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_H
00039 #define PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_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 Pr2GripperCommand_
00056 {
00057   typedef Pr2GripperCommand_<ContainerAllocator> Type;
00058 
00059   Pr2GripperCommand_()
00060     : position(0.0)
00061     , max_effort(0.0)  {
00062     }
00063   Pr2GripperCommand_(const ContainerAllocator& _alloc)
00064     : position(0.0)
00065     , max_effort(0.0)  {
00066     }
00067 
00068 
00069 
00070    typedef double _position_type;
00071   _position_type position;
00072 
00073    typedef double _max_effort_type;
00074   _max_effort_type max_effort;
00075 
00076 
00077 
00078 
00079   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> > Ptr;
00080   typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const> ConstPtr;
00081   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 
00083 }; // struct Pr2GripperCommand_
00084 
00085 typedef ::pr2_controllers_msgs::Pr2GripperCommand_<std::allocator<void> > Pr2GripperCommand;
00086 
00087 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand > Pr2GripperCommandPtr;
00088 typedef boost::shared_ptr< ::pr2_controllers_msgs::Pr2GripperCommand const> Pr2GripperCommandConstPtr;
00089 
00090 // constants requiring out of line definition
00091 
00092 
00093 
00094 template<typename ContainerAllocator>
00095 std::ostream& operator<<(std::ostream& s, const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> & v)
00096 {
00097 ros::message_operations::Printer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >::stream(s, "", v);
00098 return s;
00099 }
00100 
00101 } // namespace pr2_controllers_msgs
00102 
00103 namespace ros
00104 {
00105 namespace message_traits
00106 {
00107 
00108 
00109 
00110 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
00111 // {'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']}
00112 
00113 // !!!!!!!!!!! ['__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']
00114 
00115 
00116 
00117 
00118 template <class ContainerAllocator>
00119 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00120   : TrueType
00121   { };
00122 
00123 template <class ContainerAllocator>
00124 struct IsFixedSize< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const>
00125   : TrueType
00126   { };
00127 
00128 template <class ContainerAllocator>
00129 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00130   : TrueType
00131   { };
00132 
00133 template <class ContainerAllocator>
00134 struct IsMessage< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const>
00135   : TrueType
00136   { };
00137 
00138 template <class ContainerAllocator>
00139 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00140   : FalseType
00141   { };
00142 
00143 template <class ContainerAllocator>
00144 struct HasHeader< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> const>
00145   : FalseType
00146   { };
00147 
00148 
00149 template<class ContainerAllocator>
00150 struct MD5Sum< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00151 {
00152   static const char* value()
00153   {
00154     return "680acaff79486f017132a7f198d40f08";
00155   }
00156 
00157   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator>&) { return value(); }
00158   static const uint64_t static_value1 = 0x680acaff79486f01ULL;
00159   static const uint64_t static_value2 = 0x7132a7f198d40f08ULL;
00160 };
00161 
00162 template<class ContainerAllocator>
00163 struct DataType< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00164 {
00165   static const char* value()
00166   {
00167     return "pr2_controllers_msgs/Pr2GripperCommand";
00168   }
00169 
00170   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator>&) { return value(); }
00171 };
00172 
00173 template<class ContainerAllocator>
00174 struct Definition< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00175 {
00176   static const char* value()
00177   {
00178     return "float64 position\n\
00179 float64 max_effort\n\
00180 \n\
00181 ";
00182   }
00183 
00184   static const char* value(const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator>&) { return value(); }
00185 };
00186 
00187 } // namespace message_traits
00188 } // namespace ros
00189 
00190 namespace ros
00191 {
00192 namespace serialization
00193 {
00194 
00195   template<class ContainerAllocator> struct Serializer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00196   {
00197     template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00198     {
00199       stream.next(m.position);
00200       stream.next(m.max_effort);
00201     }
00202 
00203     ROS_DECLARE_ALLINONE_SERIALIZER;
00204   }; // struct Pr2GripperCommand_
00205 
00206 } // namespace serialization
00207 } // namespace ros
00208 
00209 namespace ros
00210 {
00211 namespace message_operations
00212 {
00213 
00214 template<class ContainerAllocator>
00215 struct Printer< ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator> >
00216 {
00217   template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_controllers_msgs::Pr2GripperCommand_<ContainerAllocator>& v)
00218   {
00219     s << indent << "position: ";
00220     Printer<double>::stream(s, indent + "  ", v.position);
00221     s << indent << "max_effort: ";
00222     Printer<double>::stream(s, indent + "  ", v.max_effort);
00223   }
00224 };
00225 
00226 } // namespace message_operations
00227 } // namespace ros
00228 
00229 #endif // PR2_CONTROLLERS_MSGS_MESSAGE_PR2GRIPPERCOMMAND_H


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