Skip to content
Snippets Groups Projects
Commit 7e38c10a authored by Compiler bot's avatar Compiler bot
Browse files

autogen lib 2021-06-23T16:03:59+02:00

parent 4bfddfd8
No related branches found
No related tags found
No related merge requests found
#ifndef _ROS_mccd_msgs_Position_h #ifndef _ROS_mccd_msgs_Odometry_h
#define _ROS_mccd_msgs_Position_h #define _ROS_mccd_msgs_Odometry_h
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
namespace mccd_msgs namespace mccd_msgs
{ {
class Position : public ros::Msg class Odometry : public ros::Msg
{ {
public: public:
typedef float _x_type; typedef float _x_type;
...@@ -18,11 +18,17 @@ namespace mccd_msgs ...@@ -18,11 +18,17 @@ namespace mccd_msgs
_y_type y; _y_type y;
typedef float _theta_type; typedef float _theta_type;
_theta_type theta; _theta_type theta;
typedef float _left_wheel_linear_speed_type;
_left_wheel_linear_speed_type left_wheel_linear_speed;
typedef float _right_wheel_linear_speed_type;
_right_wheel_linear_speed_type right_wheel_linear_speed;
Position(): Odometry():
x(0), x(0),
y(0), y(0),
theta(0) theta(0),
left_wheel_linear_speed(0),
right_wheel_linear_speed(0)
{ {
} }
...@@ -32,6 +38,8 @@ namespace mccd_msgs ...@@ -32,6 +38,8 @@ namespace mccd_msgs
offset += serializeAvrFloat64(outbuffer + offset, this->x); offset += serializeAvrFloat64(outbuffer + offset, this->x);
offset += serializeAvrFloat64(outbuffer + offset, this->y); offset += serializeAvrFloat64(outbuffer + offset, this->y);
offset += serializeAvrFloat64(outbuffer + offset, this->theta); offset += serializeAvrFloat64(outbuffer + offset, this->theta);
offset += serializeAvrFloat64(outbuffer + offset, this->left_wheel_linear_speed);
offset += serializeAvrFloat64(outbuffer + offset, this->right_wheel_linear_speed);
return offset; return offset;
} }
...@@ -41,11 +49,13 @@ namespace mccd_msgs ...@@ -41,11 +49,13 @@ namespace mccd_msgs
offset += deserializeAvrFloat64(inbuffer + offset, &(this->x)); offset += deserializeAvrFloat64(inbuffer + offset, &(this->x));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->y)); offset += deserializeAvrFloat64(inbuffer + offset, &(this->y));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->theta)); offset += deserializeAvrFloat64(inbuffer + offset, &(this->theta));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->left_wheel_linear_speed));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->right_wheel_linear_speed));
return offset; return offset;
} }
virtual const char * getType() override { return "mccd_msgs/Position"; }; virtual const char * getType() override { return "mccd_msgs/Odometry"; };
virtual const char * getMD5() override { return "938fa65709584ad8e77d238529be13b8"; }; virtual const char * getMD5() override { return "b38882eca1cebf6837c7619e762604a5"; };
}; };
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "ros/msg.h" #include "ros/msg.h"
#include "nav_msgs/Path.h"
#include "geometry_msgs/PoseStamped.h" #include "geometry_msgs/PoseStamped.h"
#include "nav_msgs/Path.h"
namespace nav_msgs namespace nav_msgs
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment