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

autogen lib 2021-06-28T22:38:17+02:00

parent 78be5ae7
No related branches found
No related tags found
No related merge requests found
#ifndef _ROS_ctrlpan_msgs_alim_stat_h
#define _ROS_ctrlpan_msgs_alim_stat_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
namespace ctrlpan_msgs
{
class alim_stat : public ros::Msg
{
public:
typedef float _voltage_12_type;
_voltage_12_type voltage_12;
typedef float _voltage_5_type;
_voltage_5_type voltage_5;
typedef float _current_12_type;
_current_12_type current_12;
typedef float _current_5_type;
_current_5_type current_5;
alim_stat():
voltage_12(0),
voltage_5(0),
current_12(0),
current_5(0)
{
}
virtual int serialize(unsigned char *outbuffer) const override
{
int offset = 0;
offset += serializeAvrFloat64(outbuffer + offset, this->voltage_12);
offset += serializeAvrFloat64(outbuffer + offset, this->voltage_5);
offset += serializeAvrFloat64(outbuffer + offset, this->current_12);
offset += serializeAvrFloat64(outbuffer + offset, this->current_5);
return offset;
}
virtual int deserialize(unsigned char *inbuffer) override
{
int offset = 0;
offset += deserializeAvrFloat64(inbuffer + offset, &(this->voltage_12));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->voltage_5));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->current_12));
offset += deserializeAvrFloat64(inbuffer + offset, &(this->current_5));
return offset;
}
virtual const char * getType() override { return "ctrlpan_msgs/alim_stat"; };
virtual const char * getMD5() override { return "106867c5bc529b0f5a207a4bf4612a99"; };
};
}
#endif
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