ROS Serial library for Mbed platforms for ROS Melodic Morenia. Check http://wiki.ros.org/rosserial_mbed/ for more information.

Dependencies:   BufferedSerial

Committer:
krogedal
Date:
Thu May 27 19:25:46 2021 +0000
Revision:
2:fa426560b283
Parent:
0:04ac6be8229a
no change

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Gary Servin 0:04ac6be8229a 1 #ifndef _ROS_gazebo_msgs_ODEPhysics_h
Gary Servin 0:04ac6be8229a 2 #define _ROS_gazebo_msgs_ODEPhysics_h
Gary Servin 0:04ac6be8229a 3
Gary Servin 0:04ac6be8229a 4 #include <stdint.h>
Gary Servin 0:04ac6be8229a 5 #include <string.h>
Gary Servin 0:04ac6be8229a 6 #include <stdlib.h>
Gary Servin 0:04ac6be8229a 7 #include "ros/msg.h"
Gary Servin 0:04ac6be8229a 8
Gary Servin 0:04ac6be8229a 9 namespace gazebo_msgs
Gary Servin 0:04ac6be8229a 10 {
Gary Servin 0:04ac6be8229a 11
Gary Servin 0:04ac6be8229a 12 class ODEPhysics : public ros::Msg
Gary Servin 0:04ac6be8229a 13 {
Gary Servin 0:04ac6be8229a 14 public:
Gary Servin 0:04ac6be8229a 15 typedef bool _auto_disable_bodies_type;
Gary Servin 0:04ac6be8229a 16 _auto_disable_bodies_type auto_disable_bodies;
Gary Servin 0:04ac6be8229a 17 typedef uint32_t _sor_pgs_precon_iters_type;
Gary Servin 0:04ac6be8229a 18 _sor_pgs_precon_iters_type sor_pgs_precon_iters;
Gary Servin 0:04ac6be8229a 19 typedef uint32_t _sor_pgs_iters_type;
Gary Servin 0:04ac6be8229a 20 _sor_pgs_iters_type sor_pgs_iters;
Gary Servin 0:04ac6be8229a 21 typedef double _sor_pgs_w_type;
Gary Servin 0:04ac6be8229a 22 _sor_pgs_w_type sor_pgs_w;
Gary Servin 0:04ac6be8229a 23 typedef double _sor_pgs_rms_error_tol_type;
Gary Servin 0:04ac6be8229a 24 _sor_pgs_rms_error_tol_type sor_pgs_rms_error_tol;
Gary Servin 0:04ac6be8229a 25 typedef double _contact_surface_layer_type;
Gary Servin 0:04ac6be8229a 26 _contact_surface_layer_type contact_surface_layer;
Gary Servin 0:04ac6be8229a 27 typedef double _contact_max_correcting_vel_type;
Gary Servin 0:04ac6be8229a 28 _contact_max_correcting_vel_type contact_max_correcting_vel;
Gary Servin 0:04ac6be8229a 29 typedef double _cfm_type;
Gary Servin 0:04ac6be8229a 30 _cfm_type cfm;
Gary Servin 0:04ac6be8229a 31 typedef double _erp_type;
Gary Servin 0:04ac6be8229a 32 _erp_type erp;
Gary Servin 0:04ac6be8229a 33 typedef uint32_t _max_contacts_type;
Gary Servin 0:04ac6be8229a 34 _max_contacts_type max_contacts;
Gary Servin 0:04ac6be8229a 35
Gary Servin 0:04ac6be8229a 36 ODEPhysics():
Gary Servin 0:04ac6be8229a 37 auto_disable_bodies(0),
Gary Servin 0:04ac6be8229a 38 sor_pgs_precon_iters(0),
Gary Servin 0:04ac6be8229a 39 sor_pgs_iters(0),
Gary Servin 0:04ac6be8229a 40 sor_pgs_w(0),
Gary Servin 0:04ac6be8229a 41 sor_pgs_rms_error_tol(0),
Gary Servin 0:04ac6be8229a 42 contact_surface_layer(0),
Gary Servin 0:04ac6be8229a 43 contact_max_correcting_vel(0),
Gary Servin 0:04ac6be8229a 44 cfm(0),
Gary Servin 0:04ac6be8229a 45 erp(0),
Gary Servin 0:04ac6be8229a 46 max_contacts(0)
Gary Servin 0:04ac6be8229a 47 {
Gary Servin 0:04ac6be8229a 48 }
Gary Servin 0:04ac6be8229a 49
Gary Servin 0:04ac6be8229a 50 virtual int serialize(unsigned char *outbuffer) const
Gary Servin 0:04ac6be8229a 51 {
Gary Servin 0:04ac6be8229a 52 int offset = 0;
Gary Servin 0:04ac6be8229a 53 union {
Gary Servin 0:04ac6be8229a 54 bool real;
Gary Servin 0:04ac6be8229a 55 uint8_t base;
Gary Servin 0:04ac6be8229a 56 } u_auto_disable_bodies;
Gary Servin 0:04ac6be8229a 57 u_auto_disable_bodies.real = this->auto_disable_bodies;
Gary Servin 0:04ac6be8229a 58 *(outbuffer + offset + 0) = (u_auto_disable_bodies.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 59 offset += sizeof(this->auto_disable_bodies);
Gary Servin 0:04ac6be8229a 60 *(outbuffer + offset + 0) = (this->sor_pgs_precon_iters >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 61 *(outbuffer + offset + 1) = (this->sor_pgs_precon_iters >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 62 *(outbuffer + offset + 2) = (this->sor_pgs_precon_iters >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 63 *(outbuffer + offset + 3) = (this->sor_pgs_precon_iters >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 64 offset += sizeof(this->sor_pgs_precon_iters);
Gary Servin 0:04ac6be8229a 65 *(outbuffer + offset + 0) = (this->sor_pgs_iters >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 66 *(outbuffer + offset + 1) = (this->sor_pgs_iters >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 67 *(outbuffer + offset + 2) = (this->sor_pgs_iters >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 68 *(outbuffer + offset + 3) = (this->sor_pgs_iters >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 69 offset += sizeof(this->sor_pgs_iters);
Gary Servin 0:04ac6be8229a 70 union {
Gary Servin 0:04ac6be8229a 71 double real;
Gary Servin 0:04ac6be8229a 72 uint64_t base;
Gary Servin 0:04ac6be8229a 73 } u_sor_pgs_w;
Gary Servin 0:04ac6be8229a 74 u_sor_pgs_w.real = this->sor_pgs_w;
Gary Servin 0:04ac6be8229a 75 *(outbuffer + offset + 0) = (u_sor_pgs_w.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 76 *(outbuffer + offset + 1) = (u_sor_pgs_w.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 77 *(outbuffer + offset + 2) = (u_sor_pgs_w.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 78 *(outbuffer + offset + 3) = (u_sor_pgs_w.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 79 *(outbuffer + offset + 4) = (u_sor_pgs_w.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 80 *(outbuffer + offset + 5) = (u_sor_pgs_w.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 81 *(outbuffer + offset + 6) = (u_sor_pgs_w.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 82 *(outbuffer + offset + 7) = (u_sor_pgs_w.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 83 offset += sizeof(this->sor_pgs_w);
Gary Servin 0:04ac6be8229a 84 union {
Gary Servin 0:04ac6be8229a 85 double real;
Gary Servin 0:04ac6be8229a 86 uint64_t base;
Gary Servin 0:04ac6be8229a 87 } u_sor_pgs_rms_error_tol;
Gary Servin 0:04ac6be8229a 88 u_sor_pgs_rms_error_tol.real = this->sor_pgs_rms_error_tol;
Gary Servin 0:04ac6be8229a 89 *(outbuffer + offset + 0) = (u_sor_pgs_rms_error_tol.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 90 *(outbuffer + offset + 1) = (u_sor_pgs_rms_error_tol.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 91 *(outbuffer + offset + 2) = (u_sor_pgs_rms_error_tol.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 92 *(outbuffer + offset + 3) = (u_sor_pgs_rms_error_tol.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 93 *(outbuffer + offset + 4) = (u_sor_pgs_rms_error_tol.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 94 *(outbuffer + offset + 5) = (u_sor_pgs_rms_error_tol.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 95 *(outbuffer + offset + 6) = (u_sor_pgs_rms_error_tol.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 96 *(outbuffer + offset + 7) = (u_sor_pgs_rms_error_tol.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 97 offset += sizeof(this->sor_pgs_rms_error_tol);
Gary Servin 0:04ac6be8229a 98 union {
Gary Servin 0:04ac6be8229a 99 double real;
Gary Servin 0:04ac6be8229a 100 uint64_t base;
Gary Servin 0:04ac6be8229a 101 } u_contact_surface_layer;
Gary Servin 0:04ac6be8229a 102 u_contact_surface_layer.real = this->contact_surface_layer;
Gary Servin 0:04ac6be8229a 103 *(outbuffer + offset + 0) = (u_contact_surface_layer.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 104 *(outbuffer + offset + 1) = (u_contact_surface_layer.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 105 *(outbuffer + offset + 2) = (u_contact_surface_layer.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 106 *(outbuffer + offset + 3) = (u_contact_surface_layer.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 107 *(outbuffer + offset + 4) = (u_contact_surface_layer.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 108 *(outbuffer + offset + 5) = (u_contact_surface_layer.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 109 *(outbuffer + offset + 6) = (u_contact_surface_layer.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 110 *(outbuffer + offset + 7) = (u_contact_surface_layer.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 111 offset += sizeof(this->contact_surface_layer);
Gary Servin 0:04ac6be8229a 112 union {
Gary Servin 0:04ac6be8229a 113 double real;
Gary Servin 0:04ac6be8229a 114 uint64_t base;
Gary Servin 0:04ac6be8229a 115 } u_contact_max_correcting_vel;
Gary Servin 0:04ac6be8229a 116 u_contact_max_correcting_vel.real = this->contact_max_correcting_vel;
Gary Servin 0:04ac6be8229a 117 *(outbuffer + offset + 0) = (u_contact_max_correcting_vel.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 118 *(outbuffer + offset + 1) = (u_contact_max_correcting_vel.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 119 *(outbuffer + offset + 2) = (u_contact_max_correcting_vel.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 120 *(outbuffer + offset + 3) = (u_contact_max_correcting_vel.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 121 *(outbuffer + offset + 4) = (u_contact_max_correcting_vel.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 122 *(outbuffer + offset + 5) = (u_contact_max_correcting_vel.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 123 *(outbuffer + offset + 6) = (u_contact_max_correcting_vel.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 124 *(outbuffer + offset + 7) = (u_contact_max_correcting_vel.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 125 offset += sizeof(this->contact_max_correcting_vel);
Gary Servin 0:04ac6be8229a 126 union {
Gary Servin 0:04ac6be8229a 127 double real;
Gary Servin 0:04ac6be8229a 128 uint64_t base;
Gary Servin 0:04ac6be8229a 129 } u_cfm;
Gary Servin 0:04ac6be8229a 130 u_cfm.real = this->cfm;
Gary Servin 0:04ac6be8229a 131 *(outbuffer + offset + 0) = (u_cfm.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 132 *(outbuffer + offset + 1) = (u_cfm.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 133 *(outbuffer + offset + 2) = (u_cfm.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 134 *(outbuffer + offset + 3) = (u_cfm.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 135 *(outbuffer + offset + 4) = (u_cfm.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 136 *(outbuffer + offset + 5) = (u_cfm.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 137 *(outbuffer + offset + 6) = (u_cfm.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 138 *(outbuffer + offset + 7) = (u_cfm.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 139 offset += sizeof(this->cfm);
Gary Servin 0:04ac6be8229a 140 union {
Gary Servin 0:04ac6be8229a 141 double real;
Gary Servin 0:04ac6be8229a 142 uint64_t base;
Gary Servin 0:04ac6be8229a 143 } u_erp;
Gary Servin 0:04ac6be8229a 144 u_erp.real = this->erp;
Gary Servin 0:04ac6be8229a 145 *(outbuffer + offset + 0) = (u_erp.base >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 146 *(outbuffer + offset + 1) = (u_erp.base >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 147 *(outbuffer + offset + 2) = (u_erp.base >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 148 *(outbuffer + offset + 3) = (u_erp.base >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 149 *(outbuffer + offset + 4) = (u_erp.base >> (8 * 4)) & 0xFF;
Gary Servin 0:04ac6be8229a 150 *(outbuffer + offset + 5) = (u_erp.base >> (8 * 5)) & 0xFF;
Gary Servin 0:04ac6be8229a 151 *(outbuffer + offset + 6) = (u_erp.base >> (8 * 6)) & 0xFF;
Gary Servin 0:04ac6be8229a 152 *(outbuffer + offset + 7) = (u_erp.base >> (8 * 7)) & 0xFF;
Gary Servin 0:04ac6be8229a 153 offset += sizeof(this->erp);
Gary Servin 0:04ac6be8229a 154 *(outbuffer + offset + 0) = (this->max_contacts >> (8 * 0)) & 0xFF;
Gary Servin 0:04ac6be8229a 155 *(outbuffer + offset + 1) = (this->max_contacts >> (8 * 1)) & 0xFF;
Gary Servin 0:04ac6be8229a 156 *(outbuffer + offset + 2) = (this->max_contacts >> (8 * 2)) & 0xFF;
Gary Servin 0:04ac6be8229a 157 *(outbuffer + offset + 3) = (this->max_contacts >> (8 * 3)) & 0xFF;
Gary Servin 0:04ac6be8229a 158 offset += sizeof(this->max_contacts);
Gary Servin 0:04ac6be8229a 159 return offset;
Gary Servin 0:04ac6be8229a 160 }
Gary Servin 0:04ac6be8229a 161
Gary Servin 0:04ac6be8229a 162 virtual int deserialize(unsigned char *inbuffer)
Gary Servin 0:04ac6be8229a 163 {
Gary Servin 0:04ac6be8229a 164 int offset = 0;
Gary Servin 0:04ac6be8229a 165 union {
Gary Servin 0:04ac6be8229a 166 bool real;
Gary Servin 0:04ac6be8229a 167 uint8_t base;
Gary Servin 0:04ac6be8229a 168 } u_auto_disable_bodies;
Gary Servin 0:04ac6be8229a 169 u_auto_disable_bodies.base = 0;
Gary Servin 0:04ac6be8229a 170 u_auto_disable_bodies.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 171 this->auto_disable_bodies = u_auto_disable_bodies.real;
Gary Servin 0:04ac6be8229a 172 offset += sizeof(this->auto_disable_bodies);
Gary Servin 0:04ac6be8229a 173 this->sor_pgs_precon_iters = ((uint32_t) (*(inbuffer + offset)));
Gary Servin 0:04ac6be8229a 174 this->sor_pgs_precon_iters |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 175 this->sor_pgs_precon_iters |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 176 this->sor_pgs_precon_iters |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 177 offset += sizeof(this->sor_pgs_precon_iters);
Gary Servin 0:04ac6be8229a 178 this->sor_pgs_iters = ((uint32_t) (*(inbuffer + offset)));
Gary Servin 0:04ac6be8229a 179 this->sor_pgs_iters |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 180 this->sor_pgs_iters |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 181 this->sor_pgs_iters |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 182 offset += sizeof(this->sor_pgs_iters);
Gary Servin 0:04ac6be8229a 183 union {
Gary Servin 0:04ac6be8229a 184 double real;
Gary Servin 0:04ac6be8229a 185 uint64_t base;
Gary Servin 0:04ac6be8229a 186 } u_sor_pgs_w;
Gary Servin 0:04ac6be8229a 187 u_sor_pgs_w.base = 0;
Gary Servin 0:04ac6be8229a 188 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 189 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 190 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 191 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 192 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 193 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 194 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 195 u_sor_pgs_w.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 196 this->sor_pgs_w = u_sor_pgs_w.real;
Gary Servin 0:04ac6be8229a 197 offset += sizeof(this->sor_pgs_w);
Gary Servin 0:04ac6be8229a 198 union {
Gary Servin 0:04ac6be8229a 199 double real;
Gary Servin 0:04ac6be8229a 200 uint64_t base;
Gary Servin 0:04ac6be8229a 201 } u_sor_pgs_rms_error_tol;
Gary Servin 0:04ac6be8229a 202 u_sor_pgs_rms_error_tol.base = 0;
Gary Servin 0:04ac6be8229a 203 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 204 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 205 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 206 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 207 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 208 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 209 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 210 u_sor_pgs_rms_error_tol.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 211 this->sor_pgs_rms_error_tol = u_sor_pgs_rms_error_tol.real;
Gary Servin 0:04ac6be8229a 212 offset += sizeof(this->sor_pgs_rms_error_tol);
Gary Servin 0:04ac6be8229a 213 union {
Gary Servin 0:04ac6be8229a 214 double real;
Gary Servin 0:04ac6be8229a 215 uint64_t base;
Gary Servin 0:04ac6be8229a 216 } u_contact_surface_layer;
Gary Servin 0:04ac6be8229a 217 u_contact_surface_layer.base = 0;
Gary Servin 0:04ac6be8229a 218 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 219 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 220 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 221 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 222 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 223 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 224 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 225 u_contact_surface_layer.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 226 this->contact_surface_layer = u_contact_surface_layer.real;
Gary Servin 0:04ac6be8229a 227 offset += sizeof(this->contact_surface_layer);
Gary Servin 0:04ac6be8229a 228 union {
Gary Servin 0:04ac6be8229a 229 double real;
Gary Servin 0:04ac6be8229a 230 uint64_t base;
Gary Servin 0:04ac6be8229a 231 } u_contact_max_correcting_vel;
Gary Servin 0:04ac6be8229a 232 u_contact_max_correcting_vel.base = 0;
Gary Servin 0:04ac6be8229a 233 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 234 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 235 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 236 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 237 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 238 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 239 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 240 u_contact_max_correcting_vel.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 241 this->contact_max_correcting_vel = u_contact_max_correcting_vel.real;
Gary Servin 0:04ac6be8229a 242 offset += sizeof(this->contact_max_correcting_vel);
Gary Servin 0:04ac6be8229a 243 union {
Gary Servin 0:04ac6be8229a 244 double real;
Gary Servin 0:04ac6be8229a 245 uint64_t base;
Gary Servin 0:04ac6be8229a 246 } u_cfm;
Gary Servin 0:04ac6be8229a 247 u_cfm.base = 0;
Gary Servin 0:04ac6be8229a 248 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 249 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 250 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 251 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 252 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 253 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 254 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 255 u_cfm.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 256 this->cfm = u_cfm.real;
Gary Servin 0:04ac6be8229a 257 offset += sizeof(this->cfm);
Gary Servin 0:04ac6be8229a 258 union {
Gary Servin 0:04ac6be8229a 259 double real;
Gary Servin 0:04ac6be8229a 260 uint64_t base;
Gary Servin 0:04ac6be8229a 261 } u_erp;
Gary Servin 0:04ac6be8229a 262 u_erp.base = 0;
Gary Servin 0:04ac6be8229a 263 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
Gary Servin 0:04ac6be8229a 264 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 265 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 266 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 267 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
Gary Servin 0:04ac6be8229a 268 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
Gary Servin 0:04ac6be8229a 269 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
Gary Servin 0:04ac6be8229a 270 u_erp.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
Gary Servin 0:04ac6be8229a 271 this->erp = u_erp.real;
Gary Servin 0:04ac6be8229a 272 offset += sizeof(this->erp);
Gary Servin 0:04ac6be8229a 273 this->max_contacts = ((uint32_t) (*(inbuffer + offset)));
Gary Servin 0:04ac6be8229a 274 this->max_contacts |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
Gary Servin 0:04ac6be8229a 275 this->max_contacts |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
Gary Servin 0:04ac6be8229a 276 this->max_contacts |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
Gary Servin 0:04ac6be8229a 277 offset += sizeof(this->max_contacts);
Gary Servin 0:04ac6be8229a 278 return offset;
Gary Servin 0:04ac6be8229a 279 }
Gary Servin 0:04ac6be8229a 280
Gary Servin 0:04ac6be8229a 281 const char * getType(){ return "gazebo_msgs/ODEPhysics"; };
Gary Servin 0:04ac6be8229a 282 const char * getMD5(){ return "667d56ddbd547918c32d1934503dc335"; };
Gary Servin 0:04ac6be8229a 283
Gary Servin 0:04ac6be8229a 284 };
Gary Servin 0:04ac6be8229a 285
Gary Servin 0:04ac6be8229a 286 }
Gary Servin 0:04ac6be8229a 287 #endif