Irfan Tito Kurniawan / ros_lib
Committer:
irfantitok
Date:
Wed Sep 02 13:51:31 2020 +0000
Revision:
0:8f3710bfd298
Resolved round not found

Who changed what in which revision?

UserRevisionLine numberNew contents of line
irfantitok 0:8f3710bfd298 1 #ifndef _ROS_control_msgs_PidState_h
irfantitok 0:8f3710bfd298 2 #define _ROS_control_msgs_PidState_h
irfantitok 0:8f3710bfd298 3
irfantitok 0:8f3710bfd298 4 #include <stdint.h>
irfantitok 0:8f3710bfd298 5 #include <string.h>
irfantitok 0:8f3710bfd298 6 #include <stdlib.h>
irfantitok 0:8f3710bfd298 7 #include "ros/msg.h"
irfantitok 0:8f3710bfd298 8 #include "std_msgs/Header.h"
irfantitok 0:8f3710bfd298 9 #include "ros/duration.h"
irfantitok 0:8f3710bfd298 10
irfantitok 0:8f3710bfd298 11 namespace control_msgs
irfantitok 0:8f3710bfd298 12 {
irfantitok 0:8f3710bfd298 13
irfantitok 0:8f3710bfd298 14 class PidState : public ros::Msg
irfantitok 0:8f3710bfd298 15 {
irfantitok 0:8f3710bfd298 16 public:
irfantitok 0:8f3710bfd298 17 typedef std_msgs::Header _header_type;
irfantitok 0:8f3710bfd298 18 _header_type header;
irfantitok 0:8f3710bfd298 19 typedef ros::Duration _timestep_type;
irfantitok 0:8f3710bfd298 20 _timestep_type timestep;
irfantitok 0:8f3710bfd298 21 typedef double _error_type;
irfantitok 0:8f3710bfd298 22 _error_type error;
irfantitok 0:8f3710bfd298 23 typedef double _error_dot_type;
irfantitok 0:8f3710bfd298 24 _error_dot_type error_dot;
irfantitok 0:8f3710bfd298 25 typedef double _p_error_type;
irfantitok 0:8f3710bfd298 26 _p_error_type p_error;
irfantitok 0:8f3710bfd298 27 typedef double _i_error_type;
irfantitok 0:8f3710bfd298 28 _i_error_type i_error;
irfantitok 0:8f3710bfd298 29 typedef double _d_error_type;
irfantitok 0:8f3710bfd298 30 _d_error_type d_error;
irfantitok 0:8f3710bfd298 31 typedef double _p_term_type;
irfantitok 0:8f3710bfd298 32 _p_term_type p_term;
irfantitok 0:8f3710bfd298 33 typedef double _i_term_type;
irfantitok 0:8f3710bfd298 34 _i_term_type i_term;
irfantitok 0:8f3710bfd298 35 typedef double _d_term_type;
irfantitok 0:8f3710bfd298 36 _d_term_type d_term;
irfantitok 0:8f3710bfd298 37 typedef double _i_max_type;
irfantitok 0:8f3710bfd298 38 _i_max_type i_max;
irfantitok 0:8f3710bfd298 39 typedef double _i_min_type;
irfantitok 0:8f3710bfd298 40 _i_min_type i_min;
irfantitok 0:8f3710bfd298 41 typedef double _output_type;
irfantitok 0:8f3710bfd298 42 _output_type output;
irfantitok 0:8f3710bfd298 43
irfantitok 0:8f3710bfd298 44 PidState():
irfantitok 0:8f3710bfd298 45 header(),
irfantitok 0:8f3710bfd298 46 timestep(),
irfantitok 0:8f3710bfd298 47 error(0),
irfantitok 0:8f3710bfd298 48 error_dot(0),
irfantitok 0:8f3710bfd298 49 p_error(0),
irfantitok 0:8f3710bfd298 50 i_error(0),
irfantitok 0:8f3710bfd298 51 d_error(0),
irfantitok 0:8f3710bfd298 52 p_term(0),
irfantitok 0:8f3710bfd298 53 i_term(0),
irfantitok 0:8f3710bfd298 54 d_term(0),
irfantitok 0:8f3710bfd298 55 i_max(0),
irfantitok 0:8f3710bfd298 56 i_min(0),
irfantitok 0:8f3710bfd298 57 output(0)
irfantitok 0:8f3710bfd298 58 {
irfantitok 0:8f3710bfd298 59 }
irfantitok 0:8f3710bfd298 60
irfantitok 0:8f3710bfd298 61 virtual int serialize(unsigned char *outbuffer) const
irfantitok 0:8f3710bfd298 62 {
irfantitok 0:8f3710bfd298 63 int offset = 0;
irfantitok 0:8f3710bfd298 64 offset += this->header.serialize(outbuffer + offset);
irfantitok 0:8f3710bfd298 65 *(outbuffer + offset + 0) = (this->timestep.sec >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 66 *(outbuffer + offset + 1) = (this->timestep.sec >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 67 *(outbuffer + offset + 2) = (this->timestep.sec >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 68 *(outbuffer + offset + 3) = (this->timestep.sec >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 69 offset += sizeof(this->timestep.sec);
irfantitok 0:8f3710bfd298 70 *(outbuffer + offset + 0) = (this->timestep.nsec >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 71 *(outbuffer + offset + 1) = (this->timestep.nsec >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 72 *(outbuffer + offset + 2) = (this->timestep.nsec >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 73 *(outbuffer + offset + 3) = (this->timestep.nsec >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 74 offset += sizeof(this->timestep.nsec);
irfantitok 0:8f3710bfd298 75 union {
irfantitok 0:8f3710bfd298 76 double real;
irfantitok 0:8f3710bfd298 77 uint64_t base;
irfantitok 0:8f3710bfd298 78 } u_error;
irfantitok 0:8f3710bfd298 79 u_error.real = this->error;
irfantitok 0:8f3710bfd298 80 *(outbuffer + offset + 0) = (u_error.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 81 *(outbuffer + offset + 1) = (u_error.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 82 *(outbuffer + offset + 2) = (u_error.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 83 *(outbuffer + offset + 3) = (u_error.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 84 *(outbuffer + offset + 4) = (u_error.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 85 *(outbuffer + offset + 5) = (u_error.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 86 *(outbuffer + offset + 6) = (u_error.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 87 *(outbuffer + offset + 7) = (u_error.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 88 offset += sizeof(this->error);
irfantitok 0:8f3710bfd298 89 union {
irfantitok 0:8f3710bfd298 90 double real;
irfantitok 0:8f3710bfd298 91 uint64_t base;
irfantitok 0:8f3710bfd298 92 } u_error_dot;
irfantitok 0:8f3710bfd298 93 u_error_dot.real = this->error_dot;
irfantitok 0:8f3710bfd298 94 *(outbuffer + offset + 0) = (u_error_dot.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 95 *(outbuffer + offset + 1) = (u_error_dot.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 96 *(outbuffer + offset + 2) = (u_error_dot.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 97 *(outbuffer + offset + 3) = (u_error_dot.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 98 *(outbuffer + offset + 4) = (u_error_dot.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 99 *(outbuffer + offset + 5) = (u_error_dot.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 100 *(outbuffer + offset + 6) = (u_error_dot.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 101 *(outbuffer + offset + 7) = (u_error_dot.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 102 offset += sizeof(this->error_dot);
irfantitok 0:8f3710bfd298 103 union {
irfantitok 0:8f3710bfd298 104 double real;
irfantitok 0:8f3710bfd298 105 uint64_t base;
irfantitok 0:8f3710bfd298 106 } u_p_error;
irfantitok 0:8f3710bfd298 107 u_p_error.real = this->p_error;
irfantitok 0:8f3710bfd298 108 *(outbuffer + offset + 0) = (u_p_error.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 109 *(outbuffer + offset + 1) = (u_p_error.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 110 *(outbuffer + offset + 2) = (u_p_error.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 111 *(outbuffer + offset + 3) = (u_p_error.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 112 *(outbuffer + offset + 4) = (u_p_error.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 113 *(outbuffer + offset + 5) = (u_p_error.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 114 *(outbuffer + offset + 6) = (u_p_error.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 115 *(outbuffer + offset + 7) = (u_p_error.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 116 offset += sizeof(this->p_error);
irfantitok 0:8f3710bfd298 117 union {
irfantitok 0:8f3710bfd298 118 double real;
irfantitok 0:8f3710bfd298 119 uint64_t base;
irfantitok 0:8f3710bfd298 120 } u_i_error;
irfantitok 0:8f3710bfd298 121 u_i_error.real = this->i_error;
irfantitok 0:8f3710bfd298 122 *(outbuffer + offset + 0) = (u_i_error.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 123 *(outbuffer + offset + 1) = (u_i_error.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 124 *(outbuffer + offset + 2) = (u_i_error.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 125 *(outbuffer + offset + 3) = (u_i_error.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 126 *(outbuffer + offset + 4) = (u_i_error.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 127 *(outbuffer + offset + 5) = (u_i_error.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 128 *(outbuffer + offset + 6) = (u_i_error.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 129 *(outbuffer + offset + 7) = (u_i_error.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 130 offset += sizeof(this->i_error);
irfantitok 0:8f3710bfd298 131 union {
irfantitok 0:8f3710bfd298 132 double real;
irfantitok 0:8f3710bfd298 133 uint64_t base;
irfantitok 0:8f3710bfd298 134 } u_d_error;
irfantitok 0:8f3710bfd298 135 u_d_error.real = this->d_error;
irfantitok 0:8f3710bfd298 136 *(outbuffer + offset + 0) = (u_d_error.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 137 *(outbuffer + offset + 1) = (u_d_error.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 138 *(outbuffer + offset + 2) = (u_d_error.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 139 *(outbuffer + offset + 3) = (u_d_error.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 140 *(outbuffer + offset + 4) = (u_d_error.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 141 *(outbuffer + offset + 5) = (u_d_error.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 142 *(outbuffer + offset + 6) = (u_d_error.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 143 *(outbuffer + offset + 7) = (u_d_error.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 144 offset += sizeof(this->d_error);
irfantitok 0:8f3710bfd298 145 union {
irfantitok 0:8f3710bfd298 146 double real;
irfantitok 0:8f3710bfd298 147 uint64_t base;
irfantitok 0:8f3710bfd298 148 } u_p_term;
irfantitok 0:8f3710bfd298 149 u_p_term.real = this->p_term;
irfantitok 0:8f3710bfd298 150 *(outbuffer + offset + 0) = (u_p_term.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 151 *(outbuffer + offset + 1) = (u_p_term.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 152 *(outbuffer + offset + 2) = (u_p_term.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 153 *(outbuffer + offset + 3) = (u_p_term.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 154 *(outbuffer + offset + 4) = (u_p_term.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 155 *(outbuffer + offset + 5) = (u_p_term.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 156 *(outbuffer + offset + 6) = (u_p_term.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 157 *(outbuffer + offset + 7) = (u_p_term.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 158 offset += sizeof(this->p_term);
irfantitok 0:8f3710bfd298 159 union {
irfantitok 0:8f3710bfd298 160 double real;
irfantitok 0:8f3710bfd298 161 uint64_t base;
irfantitok 0:8f3710bfd298 162 } u_i_term;
irfantitok 0:8f3710bfd298 163 u_i_term.real = this->i_term;
irfantitok 0:8f3710bfd298 164 *(outbuffer + offset + 0) = (u_i_term.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 165 *(outbuffer + offset + 1) = (u_i_term.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 166 *(outbuffer + offset + 2) = (u_i_term.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 167 *(outbuffer + offset + 3) = (u_i_term.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 168 *(outbuffer + offset + 4) = (u_i_term.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 169 *(outbuffer + offset + 5) = (u_i_term.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 170 *(outbuffer + offset + 6) = (u_i_term.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 171 *(outbuffer + offset + 7) = (u_i_term.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 172 offset += sizeof(this->i_term);
irfantitok 0:8f3710bfd298 173 union {
irfantitok 0:8f3710bfd298 174 double real;
irfantitok 0:8f3710bfd298 175 uint64_t base;
irfantitok 0:8f3710bfd298 176 } u_d_term;
irfantitok 0:8f3710bfd298 177 u_d_term.real = this->d_term;
irfantitok 0:8f3710bfd298 178 *(outbuffer + offset + 0) = (u_d_term.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 179 *(outbuffer + offset + 1) = (u_d_term.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 180 *(outbuffer + offset + 2) = (u_d_term.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 181 *(outbuffer + offset + 3) = (u_d_term.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 182 *(outbuffer + offset + 4) = (u_d_term.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 183 *(outbuffer + offset + 5) = (u_d_term.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 184 *(outbuffer + offset + 6) = (u_d_term.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 185 *(outbuffer + offset + 7) = (u_d_term.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 186 offset += sizeof(this->d_term);
irfantitok 0:8f3710bfd298 187 union {
irfantitok 0:8f3710bfd298 188 double real;
irfantitok 0:8f3710bfd298 189 uint64_t base;
irfantitok 0:8f3710bfd298 190 } u_i_max;
irfantitok 0:8f3710bfd298 191 u_i_max.real = this->i_max;
irfantitok 0:8f3710bfd298 192 *(outbuffer + offset + 0) = (u_i_max.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 193 *(outbuffer + offset + 1) = (u_i_max.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 194 *(outbuffer + offset + 2) = (u_i_max.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 195 *(outbuffer + offset + 3) = (u_i_max.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 196 *(outbuffer + offset + 4) = (u_i_max.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 197 *(outbuffer + offset + 5) = (u_i_max.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 198 *(outbuffer + offset + 6) = (u_i_max.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 199 *(outbuffer + offset + 7) = (u_i_max.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 200 offset += sizeof(this->i_max);
irfantitok 0:8f3710bfd298 201 union {
irfantitok 0:8f3710bfd298 202 double real;
irfantitok 0:8f3710bfd298 203 uint64_t base;
irfantitok 0:8f3710bfd298 204 } u_i_min;
irfantitok 0:8f3710bfd298 205 u_i_min.real = this->i_min;
irfantitok 0:8f3710bfd298 206 *(outbuffer + offset + 0) = (u_i_min.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 207 *(outbuffer + offset + 1) = (u_i_min.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 208 *(outbuffer + offset + 2) = (u_i_min.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 209 *(outbuffer + offset + 3) = (u_i_min.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 210 *(outbuffer + offset + 4) = (u_i_min.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 211 *(outbuffer + offset + 5) = (u_i_min.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 212 *(outbuffer + offset + 6) = (u_i_min.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 213 *(outbuffer + offset + 7) = (u_i_min.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 214 offset += sizeof(this->i_min);
irfantitok 0:8f3710bfd298 215 union {
irfantitok 0:8f3710bfd298 216 double real;
irfantitok 0:8f3710bfd298 217 uint64_t base;
irfantitok 0:8f3710bfd298 218 } u_output;
irfantitok 0:8f3710bfd298 219 u_output.real = this->output;
irfantitok 0:8f3710bfd298 220 *(outbuffer + offset + 0) = (u_output.base >> (8 * 0)) & 0xFF;
irfantitok 0:8f3710bfd298 221 *(outbuffer + offset + 1) = (u_output.base >> (8 * 1)) & 0xFF;
irfantitok 0:8f3710bfd298 222 *(outbuffer + offset + 2) = (u_output.base >> (8 * 2)) & 0xFF;
irfantitok 0:8f3710bfd298 223 *(outbuffer + offset + 3) = (u_output.base >> (8 * 3)) & 0xFF;
irfantitok 0:8f3710bfd298 224 *(outbuffer + offset + 4) = (u_output.base >> (8 * 4)) & 0xFF;
irfantitok 0:8f3710bfd298 225 *(outbuffer + offset + 5) = (u_output.base >> (8 * 5)) & 0xFF;
irfantitok 0:8f3710bfd298 226 *(outbuffer + offset + 6) = (u_output.base >> (8 * 6)) & 0xFF;
irfantitok 0:8f3710bfd298 227 *(outbuffer + offset + 7) = (u_output.base >> (8 * 7)) & 0xFF;
irfantitok 0:8f3710bfd298 228 offset += sizeof(this->output);
irfantitok 0:8f3710bfd298 229 return offset;
irfantitok 0:8f3710bfd298 230 }
irfantitok 0:8f3710bfd298 231
irfantitok 0:8f3710bfd298 232 virtual int deserialize(unsigned char *inbuffer)
irfantitok 0:8f3710bfd298 233 {
irfantitok 0:8f3710bfd298 234 int offset = 0;
irfantitok 0:8f3710bfd298 235 offset += this->header.deserialize(inbuffer + offset);
irfantitok 0:8f3710bfd298 236 this->timestep.sec = ((uint32_t) (*(inbuffer + offset)));
irfantitok 0:8f3710bfd298 237 this->timestep.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 238 this->timestep.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 239 this->timestep.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 240 offset += sizeof(this->timestep.sec);
irfantitok 0:8f3710bfd298 241 this->timestep.nsec = ((uint32_t) (*(inbuffer + offset)));
irfantitok 0:8f3710bfd298 242 this->timestep.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 243 this->timestep.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 244 this->timestep.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 245 offset += sizeof(this->timestep.nsec);
irfantitok 0:8f3710bfd298 246 union {
irfantitok 0:8f3710bfd298 247 double real;
irfantitok 0:8f3710bfd298 248 uint64_t base;
irfantitok 0:8f3710bfd298 249 } u_error;
irfantitok 0:8f3710bfd298 250 u_error.base = 0;
irfantitok 0:8f3710bfd298 251 u_error.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 252 u_error.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 253 u_error.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 254 u_error.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 255 u_error.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 256 u_error.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 257 u_error.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 258 u_error.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 259 this->error = u_error.real;
irfantitok 0:8f3710bfd298 260 offset += sizeof(this->error);
irfantitok 0:8f3710bfd298 261 union {
irfantitok 0:8f3710bfd298 262 double real;
irfantitok 0:8f3710bfd298 263 uint64_t base;
irfantitok 0:8f3710bfd298 264 } u_error_dot;
irfantitok 0:8f3710bfd298 265 u_error_dot.base = 0;
irfantitok 0:8f3710bfd298 266 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 267 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 268 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 269 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 270 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 271 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 272 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 273 u_error_dot.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 274 this->error_dot = u_error_dot.real;
irfantitok 0:8f3710bfd298 275 offset += sizeof(this->error_dot);
irfantitok 0:8f3710bfd298 276 union {
irfantitok 0:8f3710bfd298 277 double real;
irfantitok 0:8f3710bfd298 278 uint64_t base;
irfantitok 0:8f3710bfd298 279 } u_p_error;
irfantitok 0:8f3710bfd298 280 u_p_error.base = 0;
irfantitok 0:8f3710bfd298 281 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 282 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 283 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 284 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 285 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 286 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 287 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 288 u_p_error.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 289 this->p_error = u_p_error.real;
irfantitok 0:8f3710bfd298 290 offset += sizeof(this->p_error);
irfantitok 0:8f3710bfd298 291 union {
irfantitok 0:8f3710bfd298 292 double real;
irfantitok 0:8f3710bfd298 293 uint64_t base;
irfantitok 0:8f3710bfd298 294 } u_i_error;
irfantitok 0:8f3710bfd298 295 u_i_error.base = 0;
irfantitok 0:8f3710bfd298 296 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 297 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 298 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 299 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 300 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 301 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 302 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 303 u_i_error.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 304 this->i_error = u_i_error.real;
irfantitok 0:8f3710bfd298 305 offset += sizeof(this->i_error);
irfantitok 0:8f3710bfd298 306 union {
irfantitok 0:8f3710bfd298 307 double real;
irfantitok 0:8f3710bfd298 308 uint64_t base;
irfantitok 0:8f3710bfd298 309 } u_d_error;
irfantitok 0:8f3710bfd298 310 u_d_error.base = 0;
irfantitok 0:8f3710bfd298 311 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 312 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 313 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 314 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 315 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 316 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 317 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 318 u_d_error.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 319 this->d_error = u_d_error.real;
irfantitok 0:8f3710bfd298 320 offset += sizeof(this->d_error);
irfantitok 0:8f3710bfd298 321 union {
irfantitok 0:8f3710bfd298 322 double real;
irfantitok 0:8f3710bfd298 323 uint64_t base;
irfantitok 0:8f3710bfd298 324 } u_p_term;
irfantitok 0:8f3710bfd298 325 u_p_term.base = 0;
irfantitok 0:8f3710bfd298 326 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 327 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 328 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 329 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 330 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 331 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 332 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 333 u_p_term.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 334 this->p_term = u_p_term.real;
irfantitok 0:8f3710bfd298 335 offset += sizeof(this->p_term);
irfantitok 0:8f3710bfd298 336 union {
irfantitok 0:8f3710bfd298 337 double real;
irfantitok 0:8f3710bfd298 338 uint64_t base;
irfantitok 0:8f3710bfd298 339 } u_i_term;
irfantitok 0:8f3710bfd298 340 u_i_term.base = 0;
irfantitok 0:8f3710bfd298 341 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 342 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 343 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 344 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 345 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 346 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 347 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 348 u_i_term.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 349 this->i_term = u_i_term.real;
irfantitok 0:8f3710bfd298 350 offset += sizeof(this->i_term);
irfantitok 0:8f3710bfd298 351 union {
irfantitok 0:8f3710bfd298 352 double real;
irfantitok 0:8f3710bfd298 353 uint64_t base;
irfantitok 0:8f3710bfd298 354 } u_d_term;
irfantitok 0:8f3710bfd298 355 u_d_term.base = 0;
irfantitok 0:8f3710bfd298 356 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 357 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 358 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 359 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 360 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 361 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 362 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 363 u_d_term.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 364 this->d_term = u_d_term.real;
irfantitok 0:8f3710bfd298 365 offset += sizeof(this->d_term);
irfantitok 0:8f3710bfd298 366 union {
irfantitok 0:8f3710bfd298 367 double real;
irfantitok 0:8f3710bfd298 368 uint64_t base;
irfantitok 0:8f3710bfd298 369 } u_i_max;
irfantitok 0:8f3710bfd298 370 u_i_max.base = 0;
irfantitok 0:8f3710bfd298 371 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 372 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 373 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 374 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 375 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 376 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 377 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 378 u_i_max.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 379 this->i_max = u_i_max.real;
irfantitok 0:8f3710bfd298 380 offset += sizeof(this->i_max);
irfantitok 0:8f3710bfd298 381 union {
irfantitok 0:8f3710bfd298 382 double real;
irfantitok 0:8f3710bfd298 383 uint64_t base;
irfantitok 0:8f3710bfd298 384 } u_i_min;
irfantitok 0:8f3710bfd298 385 u_i_min.base = 0;
irfantitok 0:8f3710bfd298 386 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 387 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 388 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 389 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 390 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 391 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 392 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 393 u_i_min.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 394 this->i_min = u_i_min.real;
irfantitok 0:8f3710bfd298 395 offset += sizeof(this->i_min);
irfantitok 0:8f3710bfd298 396 union {
irfantitok 0:8f3710bfd298 397 double real;
irfantitok 0:8f3710bfd298 398 uint64_t base;
irfantitok 0:8f3710bfd298 399 } u_output;
irfantitok 0:8f3710bfd298 400 u_output.base = 0;
irfantitok 0:8f3710bfd298 401 u_output.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
irfantitok 0:8f3710bfd298 402 u_output.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
irfantitok 0:8f3710bfd298 403 u_output.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
irfantitok 0:8f3710bfd298 404 u_output.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
irfantitok 0:8f3710bfd298 405 u_output.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
irfantitok 0:8f3710bfd298 406 u_output.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
irfantitok 0:8f3710bfd298 407 u_output.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
irfantitok 0:8f3710bfd298 408 u_output.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
irfantitok 0:8f3710bfd298 409 this->output = u_output.real;
irfantitok 0:8f3710bfd298 410 offset += sizeof(this->output);
irfantitok 0:8f3710bfd298 411 return offset;
irfantitok 0:8f3710bfd298 412 }
irfantitok 0:8f3710bfd298 413
irfantitok 0:8f3710bfd298 414 const char * getType(){ return "control_msgs/PidState"; };
irfantitok 0:8f3710bfd298 415 const char * getMD5(){ return "b138ec00e886c10e73f27e8712252ea6"; };
irfantitok 0:8f3710bfd298 416
irfantitok 0:8f3710bfd298 417 };
irfantitok 0:8f3710bfd298 418
irfantitok 0:8f3710bfd298 419 }
irfantitok 0:8f3710bfd298 420 #endif