Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial
Fork of ros_lib_indigo by
dynamic_reconfigure/ConfigDescription.h
- Committer:
- garyservin
- Date:
- 2016-03-31
- Revision:
- 0:fd24f7ca9688
File content as of revision 0:fd24f7ca9688:
#ifndef _ROS_dynamic_reconfigure_ConfigDescription_h
#define _ROS_dynamic_reconfigure_ConfigDescription_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "dynamic_reconfigure/Group.h"
#include "dynamic_reconfigure/Config.h"
namespace dynamic_reconfigure
{
class ConfigDescription : public ros::Msg
{
public:
uint8_t groups_length;
dynamic_reconfigure::Group st_groups;
dynamic_reconfigure::Group * groups;
dynamic_reconfigure::Config max;
dynamic_reconfigure::Config min;
dynamic_reconfigure::Config dflt;
ConfigDescription():
groups_length(0), groups(NULL),
max(),
min(),
dflt()
{
}
virtual int serialize(unsigned char *outbuffer) const
{
int offset = 0;
*(outbuffer + offset++) = groups_length;
*(outbuffer + offset++) = 0;
*(outbuffer + offset++) = 0;
*(outbuffer + offset++) = 0;
for( uint8_t i = 0; i < groups_length; i++){
offset += this->groups[i].serialize(outbuffer + offset);
}
offset += this->max.serialize(outbuffer + offset);
offset += this->min.serialize(outbuffer + offset);
offset += this->dflt.serialize(outbuffer + offset);
return offset;
}
virtual int deserialize(unsigned char *inbuffer)
{
int offset = 0;
uint8_t groups_lengthT = *(inbuffer + offset++);
if(groups_lengthT > groups_length)
this->groups = (dynamic_reconfigure::Group*)realloc(this->groups, groups_lengthT * sizeof(dynamic_reconfigure::Group));
offset += 3;
groups_length = groups_lengthT;
for( uint8_t i = 0; i < groups_length; i++){
offset += this->st_groups.deserialize(inbuffer + offset);
memcpy( &(this->groups[i]), &(this->st_groups), sizeof(dynamic_reconfigure::Group));
}
offset += this->max.deserialize(inbuffer + offset);
offset += this->min.deserialize(inbuffer + offset);
offset += this->dflt.deserialize(inbuffer + offset);
return offset;
}
const char * getType(){ return "dynamic_reconfigure/ConfigDescription"; };
const char * getMD5(){ return "757ce9d44ba8ddd801bb30bc456f946f"; };
};
}
#endif
