Action.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-jsk-ros-pkg/doc_stacks/2013-03-23_12-16-27.483192/jsk-ros-pkg/jsk_smart_apps/jsk_gui_msgs/msg/Action.msg */
00002 #ifndef JSK_GUI_MSGS_MESSAGE_ACTION_H
00003 #define JSK_GUI_MSGS_MESSAGE_ACTION_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 
00018 namespace jsk_gui_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct Action_ {
00022   typedef Action_<ContainerAllocator> Type;
00023 
00024   Action_()
00025   : task_name()
00026   , arm_id(0)
00027   , state()
00028   , state_value(0.0)
00029   , direction()
00030   , direction_value(0.0)
00031   , touch_x(0)
00032   , touch_y(0)
00033   {
00034   }
00035 
00036   Action_(const ContainerAllocator& _alloc)
00037   : task_name(_alloc)
00038   , arm_id(0)
00039   , state(_alloc)
00040   , state_value(0.0)
00041   , direction(_alloc)
00042   , direction_value(0.0)
00043   , touch_x(0)
00044   , touch_y(0)
00045   {
00046   }
00047 
00048   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _task_name_type;
00049   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  task_name;
00050 
00051   typedef int64_t _arm_id_type;
00052   int64_t arm_id;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _state_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  state;
00056 
00057   typedef double _state_value_type;
00058   double state_value;
00059 
00060   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _direction_type;
00061   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  direction;
00062 
00063   typedef double _direction_value_type;
00064   double direction_value;
00065 
00066   typedef int64_t _touch_x_type;
00067   int64_t touch_x;
00068 
00069   typedef int64_t _touch_y_type;
00070   int64_t touch_y;
00071 
00072   enum { RARMID = 0 };
00073   enum { LARMID = 1 };
00074 
00075   typedef boost::shared_ptr< ::jsk_gui_msgs::Action_<ContainerAllocator> > Ptr;
00076   typedef boost::shared_ptr< ::jsk_gui_msgs::Action_<ContainerAllocator>  const> ConstPtr;
00077   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00078 }; // struct Action
00079 typedef  ::jsk_gui_msgs::Action_<std::allocator<void> > Action;
00080 
00081 typedef boost::shared_ptr< ::jsk_gui_msgs::Action> ActionPtr;
00082 typedef boost::shared_ptr< ::jsk_gui_msgs::Action const> ActionConstPtr;
00083 
00084 
00085 template<typename ContainerAllocator>
00086 std::ostream& operator<<(std::ostream& s, const  ::jsk_gui_msgs::Action_<ContainerAllocator> & v)
00087 {
00088   ros::message_operations::Printer< ::jsk_gui_msgs::Action_<ContainerAllocator> >::stream(s, "", v);
00089   return s;}
00090 
00091 } // namespace jsk_gui_msgs
00092 
00093 namespace ros
00094 {
00095 namespace message_traits
00096 {
00097 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Action_<ContainerAllocator> > : public TrueType {};
00098 template<class ContainerAllocator> struct IsMessage< ::jsk_gui_msgs::Action_<ContainerAllocator>  const> : public TrueType {};
00099 template<class ContainerAllocator>
00100 struct MD5Sum< ::jsk_gui_msgs::Action_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "d81dc8475ff89ce7097d2e73ebfc2591";
00104   }
00105 
00106   static const char* value(const  ::jsk_gui_msgs::Action_<ContainerAllocator> &) { return value(); } 
00107   static const uint64_t static_value1 = 0xd81dc8475ff89ce7ULL;
00108   static const uint64_t static_value2 = 0x097d2e73ebfc2591ULL;
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct DataType< ::jsk_gui_msgs::Action_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "jsk_gui_msgs/Action";
00116   }
00117 
00118   static const char* value(const  ::jsk_gui_msgs::Action_<ContainerAllocator> &) { return value(); } 
00119 };
00120 
00121 template<class ContainerAllocator>
00122 struct Definition< ::jsk_gui_msgs::Action_<ContainerAllocator> > {
00123   static const char* value() 
00124   {
00125     return "byte RARMID=0\n\
00126 byte LARMID=1\n\
00127 \n\
00128 # task: push, pick, open, slide, MoveNeck, MoveBase\n\
00129 string task_name\n\
00130 \n\
00131 # selection: button names\n\
00132 # string selection_name\n\
00133 \n\
00134 # arm: :rarm, :lsrm\n\
00135 int64 arm_id\n\
00136 \n\
00137 # state of touch: touch, pick, pinch, sweep\n\
00138 # for debugging\n\
00139 string state\n\
00140 # value of state\n\
00141 float64 state_value\n\
00142 \n\
00143 # direction: up, down, left, right\n\
00144 string direction\n\
00145 # value of direction, degree\n\
00146 float64 direction_value\n\
00147 \n\
00148 int64 touch_x\n\
00149 int64 touch_y\n\
00150 \n\
00151 # Example\n\
00152 #  push: touches[0].x, touches[0].y, task_name, arm_id\n\
00153 #  open: touches[0 1 2].x, touches[0 1 2].y, task_name, arm_id\n\
00154 #  slide: touches[0 1 2].x, touches[0 1 2].y, task_name, arm_id\n\
00155 #  move_neck: task_name, direction, direction_value\n\
00156 #  move_base: task_name, direction, direction_value\n\
00157 ";
00158   }
00159 
00160   static const char* value(const  ::jsk_gui_msgs::Action_<ContainerAllocator> &) { return value(); } 
00161 };
00162 
00163 } // namespace message_traits
00164 } // namespace ros
00165 
00166 namespace ros
00167 {
00168 namespace serialization
00169 {
00170 
00171 template<class ContainerAllocator> struct Serializer< ::jsk_gui_msgs::Action_<ContainerAllocator> >
00172 {
00173   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00174   {
00175     stream.next(m.task_name);
00176     stream.next(m.arm_id);
00177     stream.next(m.state);
00178     stream.next(m.state_value);
00179     stream.next(m.direction);
00180     stream.next(m.direction_value);
00181     stream.next(m.touch_x);
00182     stream.next(m.touch_y);
00183   }
00184 
00185   ROS_DECLARE_ALLINONE_SERIALIZER;
00186 }; // struct Action_
00187 } // namespace serialization
00188 } // namespace ros
00189 
00190 namespace ros
00191 {
00192 namespace message_operations
00193 {
00194 
00195 template<class ContainerAllocator>
00196 struct Printer< ::jsk_gui_msgs::Action_<ContainerAllocator> >
00197 {
00198   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::jsk_gui_msgs::Action_<ContainerAllocator> & v) 
00199   {
00200     s << indent << "task_name: ";
00201     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.task_name);
00202     s << indent << "arm_id: ";
00203     Printer<int64_t>::stream(s, indent + "  ", v.arm_id);
00204     s << indent << "state: ";
00205     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.state);
00206     s << indent << "state_value: ";
00207     Printer<double>::stream(s, indent + "  ", v.state_value);
00208     s << indent << "direction: ";
00209     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.direction);
00210     s << indent << "direction_value: ";
00211     Printer<double>::stream(s, indent + "  ", v.direction_value);
00212     s << indent << "touch_x: ";
00213     Printer<int64_t>::stream(s, indent + "  ", v.touch_x);
00214     s << indent << "touch_y: ";
00215     Printer<int64_t>::stream(s, indent + "  ", v.touch_y);
00216   }
00217 };
00218 
00219 
00220 } // namespace message_operations
00221 } // namespace ros
00222 
00223 #endif // JSK_GUI_MSGS_MESSAGE_ACTION_H
00224 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


jsk_gui_msgs
Author(s): chen
autogenerated on Sat Mar 23 2013 16:13:09