JointState.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 // Generated by gencpp from file sensor_msgs/JointState.msg
3 // DO NOT EDIT!
4 
5 
6 #ifndef SENSOR_MSGS_MESSAGE_JOINTSTATE_H
7 #define SENSOR_MSGS_MESSAGE_JOINTSTATE_H
8 
9 
10 #include <string>
11 #include <vector>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
18 
19 #include <std_msgs/Header.h>
20 
21 namespace sensor_msgs
22 {
23 template <class ContainerAllocator>
25 {
27 
29  : header()
30  , name()
31  , position()
32  , velocity()
33  , effort() {
34  }
35  JointState_(const ContainerAllocator& _alloc)
36  : header(_alloc)
37  , name(_alloc)
38  , position(_alloc)
39  , velocity(_alloc)
40  , effort(_alloc) {
41  (void)_alloc;
42  }
43 
44 
45 
46  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
48 
49  typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _name_type;
51 
52  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _position_type;
54 
55  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _velocity_type;
57 
58  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _effort_type;
60 
61 
62 
63 
64  typedef std::shared_ptr< ::sensor_msgs::JointState_<ContainerAllocator> > Ptr;
65  typedef std::shared_ptr< ::sensor_msgs::JointState_<ContainerAllocator> const> ConstPtr;
66 
67 }; // struct JointState_
68 
69 typedef ::sensor_msgs::JointState_<std::allocator<void> > JointState;
70 
71 typedef std::shared_ptr< ::sensor_msgs::JointState > JointStatePtr;
72 typedef std::shared_ptr< ::sensor_msgs::JointState const> JointStateConstPtr;
73 
74 // constants requiring out of line definition
75 
76 
77 
78 template<typename ContainerAllocator>
79 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::JointState_<ContainerAllocator> & v)
80 {
82 return s;
83 }
84 
85 } // namespace sensor_msgs
86 
87 namespace roswrap
88 {
89 namespace message_traits
90 {
91 
92 
93 
94 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
95 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
96 
97 // !!!!!!!!!!! ['__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']
98 
99 
100 
101 
102 template <class ContainerAllocator>
103 struct IsFixedSize< ::sensor_msgs::JointState_<ContainerAllocator> >
104  : FalseType
105  { };
106 
107 template <class ContainerAllocator>
108 struct IsFixedSize< ::sensor_msgs::JointState_<ContainerAllocator> const>
109  : FalseType
110  { };
111 
112 template <class ContainerAllocator>
113 struct IsMessage< ::sensor_msgs::JointState_<ContainerAllocator> >
114  : TrueType
115  { };
116 
117 template <class ContainerAllocator>
118 struct IsMessage< ::sensor_msgs::JointState_<ContainerAllocator> const>
119  : TrueType
120  { };
121 
122 template <class ContainerAllocator>
123 struct HasHeader< ::sensor_msgs::JointState_<ContainerAllocator> >
124  : TrueType
125  { };
126 
127 template <class ContainerAllocator>
128 struct HasHeader< ::sensor_msgs::JointState_<ContainerAllocator> const>
129  : TrueType
130  { };
131 
132 
133 template<class ContainerAllocator>
134 struct MD5Sum< ::sensor_msgs::JointState_<ContainerAllocator> >
135 {
136  static const char* value()
137  {
138  return "3066dcd76a6cfaef579bd0f34173e9fd";
139  }
140 
141  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
142  static const uint64_t static_value1 = 0x3066dcd76a6cfaefULL;
143  static const uint64_t static_value2 = 0x579bd0f34173e9fdULL;
144 };
145 
146 template<class ContainerAllocator>
147 struct DataType< ::sensor_msgs::JointState_<ContainerAllocator> >
148 {
149  static const char* value()
150  {
151  return "sensor_msgs/JointState";
152  }
153 
154  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
155 };
156 
157 template<class ContainerAllocator>
158 struct Definition< ::sensor_msgs::JointState_<ContainerAllocator> >
159 {
160  static const char* value()
161  {
162  return "# This is a message that holds data to describe the state of a set of torque controlled joints. \n\
163 #\n\
164 # The state of each joint (revolute or prismatic) is defined by:\n\
165 # * the position of the joint (rad or m),\n\
166 # * the velocity of the joint (rad/s or m/s) and \n\
167 # * the effort that is applied in the joint (Nm or N).\n\
168 #\n\
169 # Each joint is uniquely identified by its name\n\
170 # The header specifies the time at which the joint states were recorded. All the joint states\n\
171 # in one message have to be recorded at the same time.\n\
172 #\n\
173 # This message consists of a multiple arrays, one for each part of the joint state. \n\
174 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
175 # effort associated with them, you can leave the effort array empty. \n\
176 #\n\
177 # All arrays in this message should have the same size, or be empty.\n\
178 # This is the only way to uniquely associate the joint name with the correct\n\
179 # states.\n\
180 \n\
181 \n\
182 Header header\n\
183 \n\
184 string[] name\n\
185 float64[] position\n\
186 float64[] velocity\n\
187 float64[] effort\n\
188 \n\
189 ================================================================================\n\
190 MSG: std_msgs/Header\n\
191 # Standard metadata for higher-level stamped data types.\n\
192 # This is generally used to communicate timestamped data \n\
193 # in a particular coordinate frame.\n\
194 # \n\
195 # sequence ID: consecutively increasing ID \n\
196 uint32 seq\n\
197 #Two-integer timestamp that is expressed as:\n\
198 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
199 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
200 # time-handling sugar is provided by the client library\n\
201 time stamp\n\
202 #Frame this data is associated with\n\
203 # 0: no frame\n\
204 # 1: global frame\n\
205 string frame_id\n\
206 ";
207  }
208 
209  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
210 };
211 
212 } // namespace message_traits
213 } // namespace roswrap
214 
215 namespace roswrap
216 {
217 namespace serialization
218 {
219 
220  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::JointState_<ContainerAllocator> >
221  {
222  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
223  {
224  stream.next(m.header);
225  stream.next(m.name);
226  stream.next(m.position);
227  stream.next(m.velocity);
228  stream.next(m.effort);
229  }
230 
232  }; // struct JointState_
233 
234 } // namespace serialization
235 } // namespace roswrap
236 
237 namespace roswrap
238 {
239 namespace message_operations
240 {
241 
242 template<class ContainerAllocator>
243 struct Printer< ::sensor_msgs::JointState_<ContainerAllocator> >
244 {
245  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::JointState_<ContainerAllocator>& v)
246  {
247  s << indent << "header: ";
248  s << std::endl;
250  s << indent << "name[]" << std::endl;
251  for (size_t i = 0; i < v.name.size(); ++i)
252  {
253  s << indent << " name[" << i << "]: ";
254  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]);
255  }
256  s << indent << "position[]" << std::endl;
257  for (size_t i = 0; i < v.position.size(); ++i)
258  {
259  s << indent << " position[" << i << "]: ";
260  Printer<double>::stream(s, indent + " ", v.position[i]);
261  }
262  s << indent << "velocity[]" << std::endl;
263  for (size_t i = 0; i < v.velocity.size(); ++i)
264  {
265  s << indent << " velocity[" << i << "]: ";
266  Printer<double>::stream(s, indent + " ", v.velocity[i]);
267  }
268  s << indent << "effort[]" << std::endl;
269  for (size_t i = 0; i < v.effort.size(); ++i)
270  {
271  s << indent << " effort[" << i << "]: ";
272  Printer<double>::stream(s, indent + " ", v.effort[i]);
273  }
274  }
275 };
276 
277 } // namespace message_operations
278 } // namespace roswrap
279 
280 #endif // SENSOR_MSGS_MESSAGE_JOINTSTATE_H
roswrap::message_traits::FalseType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:89
sensor_msgs::JointState_::Type
JointState_< ContainerAllocator > Type
Definition: JointState.h:26
sensor_msgs::JointState_::velocity
_velocity_type velocity
Definition: JointState.h:56
multiscan_pcap_player.indent
indent
Definition: multiscan_pcap_player.py:252
roswrap::serialization::Serializer
Templated serialization class. Default implementation provides backwards compatibility with old messa...
Definition: serialization.h:120
sensor_msgs::JointState
::sensor_msgs::JointState_< std::allocator< void > > JointState
Definition: JointState.h:69
sensor_msgs::JointState_::JointState_
JointState_()
Definition: JointState.h:28
roswrap::message_traits::HasHeader
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
Definition: message_traits.h:107
roswrap::message_traits::Definition< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
Definition: JointState.h:209
const
#define const
Definition: getopt.c:38
s
XmlRpcServer s
sensor_msgs::JointState_::_effort_type
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _effort_type
Definition: JointState.h:58
sensor_msgs::JointState_
Definition: JointState.h:24
sensor_msgs::JointState_::_name_type
std::vector< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other >, typename ContainerAllocator::template rebind< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > >::other > _name_type
Definition: JointState.h:49
sensor_msgs::JointState_::position
_position_type position
Definition: JointState.h:53
roswrap::message_operations::Printer::stream
static void stream(Stream &s, const std::string &indent, const M &value)
Definition: message_operations.h:43
roswrap::message_traits::IsFixedSize
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Definition: message_traits.h:103
sensor_msgs::JointState_::name
_name_type name
Definition: JointState.h:50
roswrap::message_traits::Definition< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value()
Definition: JointState.h:160
ros::message_operations::Printer
ROS_DECLARE_ALLINONE_SERIALIZER
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Definition: serialization.h:74
sensor_msgs::JointState_::effort
_effort_type effort
Definition: JointState.h:59
roswrap::message_traits::DataType
Specialize to provide the datatype for a message.
Definition: message_traits.h:135
sensor_msgs::JointStatePtr
std::shared_ptr< ::sensor_msgs::JointState > JointStatePtr
Definition: JointState.h:71
roswrap::message_traits::Definition
Specialize to provide the definition for a message.
Definition: message_traits.h:152
sensor_msgs::operator<<
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
Definition: BatteryState.h:187
roswrap::message_traits::MD5Sum< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
Definition: JointState.h:141
sensor_msgs::JointState_::ConstPtr
std::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > const > ConstPtr
Definition: JointState.h:65
sensor_msgs::JointState_::_header_type
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: JointState.h:46
roswrap::message_operations::Printer< ::sensor_msgs::JointState_< ContainerAllocator > >::stream
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::JointState_< ContainerAllocator > &v)
Definition: JointState.h:245
roswrap
Definition: param_modi.cpp:41
sensor_msgs::JointState_::Ptr
std::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > > Ptr
Definition: JointState.h:64
roswrap::message_operations::Printer
Definition: message_operations.h:40
std_msgs::Header_
Definition: Header.h:23
roswrap::message_traits::TrueType
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Definition: message_traits.h:79
roswrap::message_traits::MD5Sum
Specialize to provide the md5sum for a message.
Definition: message_traits.h:118
sensor_msgs::JointState_::header
_header_type header
Definition: JointState.h:47
sensor_msgs::JointState_::JointState_
JointState_(const ContainerAllocator &_alloc)
Definition: JointState.h:35
sensor_msgs::JointState_::_position_type
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _position_type
Definition: JointState.h:52
roswrap::message_traits::DataType< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
Definition: JointState.h:154
roswrap::message_traits::IsMessage
Am I message or not.
Definition: message_traits.h:112
sensor_msgs::JointStateConstPtr
std::shared_ptr< ::sensor_msgs::JointState const > JointStateConstPtr
Definition: JointState.h:72
roswrap::message_traits::DataType< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value()
Definition: JointState.h:149
sick_scan_base.h
roswrap::serialization::Stream
Stream base-class, provides common functionality for IStream and OStream.
Definition: serialization.h:705
roswrap::serialization::Serializer< ::sensor_msgs::JointState_< ContainerAllocator > >::allInOne
static void allInOne(Stream &stream, T m)
Definition: JointState.h:222
sensor_msgs::JointState_::_velocity_type
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _velocity_type
Definition: JointState.h:55
roswrap::message_traits::MD5Sum< ::sensor_msgs::JointState_< ContainerAllocator > >::value
static const char * value()
Definition: JointState.h:136
sensor_msgs
Tools for manipulating sensor_msgs.
Header.h


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08