All Classes Namespaces Files Functions Variables Typedefs
command.h
Go to the documentation of this file.
1 /* Auto-generated by genmsg_cpp for file /home/kreuk/ros/Grijper/msg/command.msg */
2 #ifndef GRIJPER_MESSAGE_COMMAND_H
3 #define GRIJPER_MESSAGE_COMMAND_H
4 #include <string>
5 #include <vector>
6 #include <map>
7 #include <ostream>
8 #include "ros/serialization.h"
9 #include "ros/builtin_message_traits.h"
10 #include "ros/message_operations.h"
11 #include "ros/time.h"
12 
13 #include "ros/macros.h"
14 
15 #include "ros/assert.h"
16 
17 
18 namespace Grijper
19 {
20 template <class ContainerAllocator>
21 struct command_ {
23 
25  : cmd()
26  , force(0.0)
27  {
28  }
29 
30  command_(const ContainerAllocator& _alloc)
31  : cmd(_alloc)
32  , force(0.0)
33  {
34  }
35 
36  typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _cmd_type;
37  std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > cmd;
38 
39  typedef float _force_type;
40  float force;
41 
42 
43  typedef boost::shared_ptr< ::Grijper::command_<ContainerAllocator> > Ptr;
44  typedef boost::shared_ptr< ::Grijper::command_<ContainerAllocator> const> ConstPtr;
45  boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
46 }; // struct command
47 typedef ::Grijper::command_<std::allocator<void> > command;
48 
49 typedef boost::shared_ptr< ::Grijper::command> commandPtr;
50 typedef boost::shared_ptr< ::Grijper::command const> commandConstPtr;
51 
52 
53 template<typename ContainerAllocator>
54 std::ostream& operator<<(std::ostream& s, const ::Grijper::command_<ContainerAllocator> & v)
55 {
56  ros::message_operations::Printer< ::Grijper::command_<ContainerAllocator> >::stream(s, "", v);
57  return s;}
58 
59 } // namespace Grijper
60 
61 namespace ros
62 {
63 namespace message_traits
64 {
65 template<class ContainerAllocator> struct IsMessage< ::Grijper::command_<ContainerAllocator> > : public TrueType {};
66 template<class ContainerAllocator> struct IsMessage< ::Grijper::command_<ContainerAllocator> const> : public TrueType {};
67 template<class ContainerAllocator>
68 struct MD5Sum< ::Grijper::command_<ContainerAllocator> > {
69  static const char* value()
70  {
71  return "eb00b428ff12135fc9b18d757044344c";
72  }
73 
74  static const char* value(const ::Grijper::command_<ContainerAllocator> &) { return value(); }
75  static const uint64_t static_value1 = 0xeb00b428ff12135fULL;
76  static const uint64_t static_value2 = 0xc9b18d757044344cULL;
77 };
78 
79 template<class ContainerAllocator>
80 struct DataType< ::Grijper::command_<ContainerAllocator> > {
81  static const char* value()
82  {
83  return "Grijper/command";
84  }
85 
86  static const char* value(const ::Grijper::command_<ContainerAllocator> &) { return value(); }
87 };
88 
89 template<class ContainerAllocator>
90 struct Definition< ::Grijper::command_<ContainerAllocator> > {
91  static const char* value()
92  {
93  return "string cmd\n\
94 float32 force\n\
95 ";
96  }
97 
98  static const char* value(const ::Grijper::command_<ContainerAllocator> &) { return value(); }
99 };
100 
101 } // namespace message_traits
102 } // namespace ros
103 
104 namespace ros
105 {
106 namespace serialization
107 {
108 
109 template<class ContainerAllocator> struct Serializer< ::Grijper::command_<ContainerAllocator> >
110 {
111  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
112  {
113  stream.next(m.cmd);
114  stream.next(m.force);
115  }
116 
118 }; // struct command_
119 } // namespace serialization
120 } // namespace ros
121 
122 namespace ros
123 {
124 namespace message_operations
125 {
126 
127 template<class ContainerAllocator>
128 struct Printer< ::Grijper::command_<ContainerAllocator> >
129 {
130  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::Grijper::command_<ContainerAllocator> & v)
131  {
132  s << indent << "cmd: ";
133  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.cmd);
134  s << indent << "force: ";
135  Printer<float>::stream(s, indent + " ", v.force);
136  }
137 };
138 
139 
140 } // namespace message_operations
141 } // namespace ros
142 
143 #endif // GRIJPER_MESSAGE_COMMAND_H
144 


Grijper
Author(s): Stijn van Schooten, Wybren ten Cate, Florens Kreuk, Jan Wymenga,Joris Coenen, Roy Groot
autogenerated on Thu Oct 3 2013 22:59:42