kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
PoseWithCovariance.h
Go to the documentation of this file.
1 #ifndef _ROS_geometry_msgs_PoseWithCovariance_h
2 #define _ROS_geometry_msgs_PoseWithCovariance_h
3 
4 #include <stdint.h>
5 #include <string.h>
6 #include <stdlib.h>
7 #include "ros/msg.h"
8 #include "geometry_msgs/Pose.h"
9 
10 namespace geometry_msgs
11 {
12 
14  {
15  public:
17  float covariance[36];
18 
20  pose(),
21  covariance()
22  {
23  }
24 
25  virtual int serialize(unsigned char *outbuffer) const
26  {
27  int offset = 0;
28  offset += this->pose.serialize(outbuffer + offset);
29  for( uint8_t i = 0; i < 36; i++){
30  offset += serializeAvrFloat64(outbuffer + offset, this->covariance[i]);
31  }
32  return offset;
33  }
34 
35  virtual int deserialize(unsigned char *inbuffer)
36  {
37  int offset = 0;
38  offset += this->pose.deserialize(inbuffer + offset);
39  for( uint8_t i = 0; i < 36; i++){
40  offset += deserializeAvrFloat64(inbuffer + offset, &(this->covariance[i]));
41  }
42  return offset;
43  }
44 
45  const char * getType(){ return "geometry_msgs/PoseWithCovariance"; };
46  const char * getMD5(){ return "c23e848cf1b7533a8d7c259073a97e6f"; };
47 
48  };
49 
50 }
51 #endif
static int serializeAvrFloat64(unsigned char *outbuffer, const float f)
This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messa...
Definition: msg.h:62
const char * getMD5()
Definition: PoseWithCovariance.h:46
geometry_msgs::Pose pose
Definition: PoseWithCovariance.h:16
virtual int serialize(unsigned char *outbuffer) const
Definition: Pose.h:26
virtual int deserialize(unsigned char *inbuffer)
Definition: Pose.h:34
PoseWithCovariance()
Definition: PoseWithCovariance.h:19
Definition: PoseWithCovariance.h:13
const char * getType()
Definition: PoseWithCovariance.h:45
virtual int deserialize(unsigned char *inbuffer)
Definition: PoseWithCovariance.h:35
Definition: Pose.h:14
Definition: msg.h:43
static int deserializeAvrFloat64(const unsigned char *inbuffer, float *f)
This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand mes...
Definition: msg.h:100
virtual int serialize(unsigned char *outbuffer) const
Definition: PoseWithCovariance.h:25
float covariance[36]
Definition: PoseWithCovariance.h:17