rosserial library for mbed Inspired by nucho's rosserial library This library is still under development
Dependents: mbed_roshydro_test
Library still under development!
controller_manager_msgs/ControllerStatistics.h@0:30537dec6e0b, 2015-02-15 (annotated)
- Committer:
- akashvibhute
- Date:
- Sun Feb 15 10:53:43 2015 +0000
- Revision:
- 0:30537dec6e0b
First commit; Library still need to be debugged, compilation issues with new mbed and modserial updates.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akashvibhute | 0:30537dec6e0b | 1 | #ifndef _ROS_controller_manager_msgs_ControllerStatistics_h |
akashvibhute | 0:30537dec6e0b | 2 | #define _ROS_controller_manager_msgs_ControllerStatistics_h |
akashvibhute | 0:30537dec6e0b | 3 | |
akashvibhute | 0:30537dec6e0b | 4 | #include <stdint.h> |
akashvibhute | 0:30537dec6e0b | 5 | #include <string.h> |
akashvibhute | 0:30537dec6e0b | 6 | #include <stdlib.h> |
akashvibhute | 0:30537dec6e0b | 7 | #include "ros/msg.h" |
akashvibhute | 0:30537dec6e0b | 8 | #include "ros/time.h" |
akashvibhute | 0:30537dec6e0b | 9 | #include "ros/duration.h" |
akashvibhute | 0:30537dec6e0b | 10 | |
akashvibhute | 0:30537dec6e0b | 11 | namespace controller_manager_msgs |
akashvibhute | 0:30537dec6e0b | 12 | { |
akashvibhute | 0:30537dec6e0b | 13 | |
akashvibhute | 0:30537dec6e0b | 14 | class ControllerStatistics : public ros::Msg |
akashvibhute | 0:30537dec6e0b | 15 | { |
akashvibhute | 0:30537dec6e0b | 16 | public: |
akashvibhute | 0:30537dec6e0b | 17 | const char* name; |
akashvibhute | 0:30537dec6e0b | 18 | const char* type; |
akashvibhute | 0:30537dec6e0b | 19 | ros::Time timestamp; |
akashvibhute | 0:30537dec6e0b | 20 | bool running; |
akashvibhute | 0:30537dec6e0b | 21 | ros::Duration max_time; |
akashvibhute | 0:30537dec6e0b | 22 | ros::Duration mean_time; |
akashvibhute | 0:30537dec6e0b | 23 | ros::Duration variance_time; |
akashvibhute | 0:30537dec6e0b | 24 | int32_t num_control_loop_overruns; |
akashvibhute | 0:30537dec6e0b | 25 | ros::Time time_last_control_loop_overrun; |
akashvibhute | 0:30537dec6e0b | 26 | |
akashvibhute | 0:30537dec6e0b | 27 | ControllerStatistics(): |
akashvibhute | 0:30537dec6e0b | 28 | name(""), |
akashvibhute | 0:30537dec6e0b | 29 | type(""), |
akashvibhute | 0:30537dec6e0b | 30 | timestamp(), |
akashvibhute | 0:30537dec6e0b | 31 | running(0), |
akashvibhute | 0:30537dec6e0b | 32 | max_time(), |
akashvibhute | 0:30537dec6e0b | 33 | mean_time(), |
akashvibhute | 0:30537dec6e0b | 34 | variance_time(), |
akashvibhute | 0:30537dec6e0b | 35 | num_control_loop_overruns(0), |
akashvibhute | 0:30537dec6e0b | 36 | time_last_control_loop_overrun() |
akashvibhute | 0:30537dec6e0b | 37 | { |
akashvibhute | 0:30537dec6e0b | 38 | } |
akashvibhute | 0:30537dec6e0b | 39 | |
akashvibhute | 0:30537dec6e0b | 40 | virtual int serialize(unsigned char *outbuffer) const |
akashvibhute | 0:30537dec6e0b | 41 | { |
akashvibhute | 0:30537dec6e0b | 42 | int offset = 0; |
akashvibhute | 0:30537dec6e0b | 43 | uint32_t length_name = strlen(this->name); |
akashvibhute | 0:30537dec6e0b | 44 | memcpy(outbuffer + offset, &length_name, sizeof(uint32_t)); |
akashvibhute | 0:30537dec6e0b | 45 | offset += 4; |
akashvibhute | 0:30537dec6e0b | 46 | memcpy(outbuffer + offset, this->name, length_name); |
akashvibhute | 0:30537dec6e0b | 47 | offset += length_name; |
akashvibhute | 0:30537dec6e0b | 48 | uint32_t length_type = strlen(this->type); |
akashvibhute | 0:30537dec6e0b | 49 | memcpy(outbuffer + offset, &length_type, sizeof(uint32_t)); |
akashvibhute | 0:30537dec6e0b | 50 | offset += 4; |
akashvibhute | 0:30537dec6e0b | 51 | memcpy(outbuffer + offset, this->type, length_type); |
akashvibhute | 0:30537dec6e0b | 52 | offset += length_type; |
akashvibhute | 0:30537dec6e0b | 53 | *(outbuffer + offset + 0) = (this->timestamp.sec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 54 | *(outbuffer + offset + 1) = (this->timestamp.sec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 55 | *(outbuffer + offset + 2) = (this->timestamp.sec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 56 | *(outbuffer + offset + 3) = (this->timestamp.sec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 57 | offset += sizeof(this->timestamp.sec); |
akashvibhute | 0:30537dec6e0b | 58 | *(outbuffer + offset + 0) = (this->timestamp.nsec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 59 | *(outbuffer + offset + 1) = (this->timestamp.nsec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 60 | *(outbuffer + offset + 2) = (this->timestamp.nsec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 61 | *(outbuffer + offset + 3) = (this->timestamp.nsec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 62 | offset += sizeof(this->timestamp.nsec); |
akashvibhute | 0:30537dec6e0b | 63 | union { |
akashvibhute | 0:30537dec6e0b | 64 | bool real; |
akashvibhute | 0:30537dec6e0b | 65 | uint8_t base; |
akashvibhute | 0:30537dec6e0b | 66 | } u_running; |
akashvibhute | 0:30537dec6e0b | 67 | u_running.real = this->running; |
akashvibhute | 0:30537dec6e0b | 68 | *(outbuffer + offset + 0) = (u_running.base >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 69 | offset += sizeof(this->running); |
akashvibhute | 0:30537dec6e0b | 70 | *(outbuffer + offset + 0) = (this->max_time.sec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 71 | *(outbuffer + offset + 1) = (this->max_time.sec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 72 | *(outbuffer + offset + 2) = (this->max_time.sec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 73 | *(outbuffer + offset + 3) = (this->max_time.sec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 74 | offset += sizeof(this->max_time.sec); |
akashvibhute | 0:30537dec6e0b | 75 | *(outbuffer + offset + 0) = (this->max_time.nsec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 76 | *(outbuffer + offset + 1) = (this->max_time.nsec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 77 | *(outbuffer + offset + 2) = (this->max_time.nsec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 78 | *(outbuffer + offset + 3) = (this->max_time.nsec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 79 | offset += sizeof(this->max_time.nsec); |
akashvibhute | 0:30537dec6e0b | 80 | *(outbuffer + offset + 0) = (this->mean_time.sec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 81 | *(outbuffer + offset + 1) = (this->mean_time.sec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 82 | *(outbuffer + offset + 2) = (this->mean_time.sec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 83 | *(outbuffer + offset + 3) = (this->mean_time.sec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 84 | offset += sizeof(this->mean_time.sec); |
akashvibhute | 0:30537dec6e0b | 85 | *(outbuffer + offset + 0) = (this->mean_time.nsec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 86 | *(outbuffer + offset + 1) = (this->mean_time.nsec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 87 | *(outbuffer + offset + 2) = (this->mean_time.nsec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 88 | *(outbuffer + offset + 3) = (this->mean_time.nsec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 89 | offset += sizeof(this->mean_time.nsec); |
akashvibhute | 0:30537dec6e0b | 90 | *(outbuffer + offset + 0) = (this->variance_time.sec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 91 | *(outbuffer + offset + 1) = (this->variance_time.sec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 92 | *(outbuffer + offset + 2) = (this->variance_time.sec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 93 | *(outbuffer + offset + 3) = (this->variance_time.sec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 94 | offset += sizeof(this->variance_time.sec); |
akashvibhute | 0:30537dec6e0b | 95 | *(outbuffer + offset + 0) = (this->variance_time.nsec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 96 | *(outbuffer + offset + 1) = (this->variance_time.nsec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 97 | *(outbuffer + offset + 2) = (this->variance_time.nsec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 98 | *(outbuffer + offset + 3) = (this->variance_time.nsec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 99 | offset += sizeof(this->variance_time.nsec); |
akashvibhute | 0:30537dec6e0b | 100 | union { |
akashvibhute | 0:30537dec6e0b | 101 | int32_t real; |
akashvibhute | 0:30537dec6e0b | 102 | uint32_t base; |
akashvibhute | 0:30537dec6e0b | 103 | } u_num_control_loop_overruns; |
akashvibhute | 0:30537dec6e0b | 104 | u_num_control_loop_overruns.real = this->num_control_loop_overruns; |
akashvibhute | 0:30537dec6e0b | 105 | *(outbuffer + offset + 0) = (u_num_control_loop_overruns.base >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 106 | *(outbuffer + offset + 1) = (u_num_control_loop_overruns.base >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 107 | *(outbuffer + offset + 2) = (u_num_control_loop_overruns.base >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 108 | *(outbuffer + offset + 3) = (u_num_control_loop_overruns.base >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 109 | offset += sizeof(this->num_control_loop_overruns); |
akashvibhute | 0:30537dec6e0b | 110 | *(outbuffer + offset + 0) = (this->time_last_control_loop_overrun.sec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 111 | *(outbuffer + offset + 1) = (this->time_last_control_loop_overrun.sec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 112 | *(outbuffer + offset + 2) = (this->time_last_control_loop_overrun.sec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 113 | *(outbuffer + offset + 3) = (this->time_last_control_loop_overrun.sec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 114 | offset += sizeof(this->time_last_control_loop_overrun.sec); |
akashvibhute | 0:30537dec6e0b | 115 | *(outbuffer + offset + 0) = (this->time_last_control_loop_overrun.nsec >> (8 * 0)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 116 | *(outbuffer + offset + 1) = (this->time_last_control_loop_overrun.nsec >> (8 * 1)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 117 | *(outbuffer + offset + 2) = (this->time_last_control_loop_overrun.nsec >> (8 * 2)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 118 | *(outbuffer + offset + 3) = (this->time_last_control_loop_overrun.nsec >> (8 * 3)) & 0xFF; |
akashvibhute | 0:30537dec6e0b | 119 | offset += sizeof(this->time_last_control_loop_overrun.nsec); |
akashvibhute | 0:30537dec6e0b | 120 | return offset; |
akashvibhute | 0:30537dec6e0b | 121 | } |
akashvibhute | 0:30537dec6e0b | 122 | |
akashvibhute | 0:30537dec6e0b | 123 | virtual int deserialize(unsigned char *inbuffer) |
akashvibhute | 0:30537dec6e0b | 124 | { |
akashvibhute | 0:30537dec6e0b | 125 | int offset = 0; |
akashvibhute | 0:30537dec6e0b | 126 | uint32_t length_name; |
akashvibhute | 0:30537dec6e0b | 127 | memcpy(&length_name, (inbuffer + offset), sizeof(uint32_t)); |
akashvibhute | 0:30537dec6e0b | 128 | offset += 4; |
akashvibhute | 0:30537dec6e0b | 129 | for(unsigned int k= offset; k< offset+length_name; ++k){ |
akashvibhute | 0:30537dec6e0b | 130 | inbuffer[k-1]=inbuffer[k]; |
akashvibhute | 0:30537dec6e0b | 131 | } |
akashvibhute | 0:30537dec6e0b | 132 | inbuffer[offset+length_name-1]=0; |
akashvibhute | 0:30537dec6e0b | 133 | this->name = (char *)(inbuffer + offset-1); |
akashvibhute | 0:30537dec6e0b | 134 | offset += length_name; |
akashvibhute | 0:30537dec6e0b | 135 | uint32_t length_type; |
akashvibhute | 0:30537dec6e0b | 136 | memcpy(&length_type, (inbuffer + offset), sizeof(uint32_t)); |
akashvibhute | 0:30537dec6e0b | 137 | offset += 4; |
akashvibhute | 0:30537dec6e0b | 138 | for(unsigned int k= offset; k< offset+length_type; ++k){ |
akashvibhute | 0:30537dec6e0b | 139 | inbuffer[k-1]=inbuffer[k]; |
akashvibhute | 0:30537dec6e0b | 140 | } |
akashvibhute | 0:30537dec6e0b | 141 | inbuffer[offset+length_type-1]=0; |
akashvibhute | 0:30537dec6e0b | 142 | this->type = (char *)(inbuffer + offset-1); |
akashvibhute | 0:30537dec6e0b | 143 | offset += length_type; |
akashvibhute | 0:30537dec6e0b | 144 | this->timestamp.sec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 145 | this->timestamp.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 146 | this->timestamp.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 147 | this->timestamp.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 148 | offset += sizeof(this->timestamp.sec); |
akashvibhute | 0:30537dec6e0b | 149 | this->timestamp.nsec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 150 | this->timestamp.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 151 | this->timestamp.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 152 | this->timestamp.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 153 | offset += sizeof(this->timestamp.nsec); |
akashvibhute | 0:30537dec6e0b | 154 | union { |
akashvibhute | 0:30537dec6e0b | 155 | bool real; |
akashvibhute | 0:30537dec6e0b | 156 | uint8_t base; |
akashvibhute | 0:30537dec6e0b | 157 | } u_running; |
akashvibhute | 0:30537dec6e0b | 158 | u_running.base = 0; |
akashvibhute | 0:30537dec6e0b | 159 | u_running.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); |
akashvibhute | 0:30537dec6e0b | 160 | this->running = u_running.real; |
akashvibhute | 0:30537dec6e0b | 161 | offset += sizeof(this->running); |
akashvibhute | 0:30537dec6e0b | 162 | this->max_time.sec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 163 | this->max_time.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 164 | this->max_time.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 165 | this->max_time.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 166 | offset += sizeof(this->max_time.sec); |
akashvibhute | 0:30537dec6e0b | 167 | this->max_time.nsec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 168 | this->max_time.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 169 | this->max_time.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 170 | this->max_time.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 171 | offset += sizeof(this->max_time.nsec); |
akashvibhute | 0:30537dec6e0b | 172 | this->mean_time.sec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 173 | this->mean_time.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 174 | this->mean_time.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 175 | this->mean_time.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 176 | offset += sizeof(this->mean_time.sec); |
akashvibhute | 0:30537dec6e0b | 177 | this->mean_time.nsec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 178 | this->mean_time.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 179 | this->mean_time.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 180 | this->mean_time.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 181 | offset += sizeof(this->mean_time.nsec); |
akashvibhute | 0:30537dec6e0b | 182 | this->variance_time.sec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 183 | this->variance_time.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 184 | this->variance_time.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 185 | this->variance_time.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 186 | offset += sizeof(this->variance_time.sec); |
akashvibhute | 0:30537dec6e0b | 187 | this->variance_time.nsec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 188 | this->variance_time.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 189 | this->variance_time.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 190 | this->variance_time.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 191 | offset += sizeof(this->variance_time.nsec); |
akashvibhute | 0:30537dec6e0b | 192 | union { |
akashvibhute | 0:30537dec6e0b | 193 | int32_t real; |
akashvibhute | 0:30537dec6e0b | 194 | uint32_t base; |
akashvibhute | 0:30537dec6e0b | 195 | } u_num_control_loop_overruns; |
akashvibhute | 0:30537dec6e0b | 196 | u_num_control_loop_overruns.base = 0; |
akashvibhute | 0:30537dec6e0b | 197 | u_num_control_loop_overruns.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0); |
akashvibhute | 0:30537dec6e0b | 198 | u_num_control_loop_overruns.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 199 | u_num_control_loop_overruns.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 200 | u_num_control_loop_overruns.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 201 | this->num_control_loop_overruns = u_num_control_loop_overruns.real; |
akashvibhute | 0:30537dec6e0b | 202 | offset += sizeof(this->num_control_loop_overruns); |
akashvibhute | 0:30537dec6e0b | 203 | this->time_last_control_loop_overrun.sec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 204 | this->time_last_control_loop_overrun.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 205 | this->time_last_control_loop_overrun.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 206 | this->time_last_control_loop_overrun.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 207 | offset += sizeof(this->time_last_control_loop_overrun.sec); |
akashvibhute | 0:30537dec6e0b | 208 | this->time_last_control_loop_overrun.nsec = ((uint32_t) (*(inbuffer + offset))); |
akashvibhute | 0:30537dec6e0b | 209 | this->time_last_control_loop_overrun.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); |
akashvibhute | 0:30537dec6e0b | 210 | this->time_last_control_loop_overrun.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); |
akashvibhute | 0:30537dec6e0b | 211 | this->time_last_control_loop_overrun.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); |
akashvibhute | 0:30537dec6e0b | 212 | offset += sizeof(this->time_last_control_loop_overrun.nsec); |
akashvibhute | 0:30537dec6e0b | 213 | return offset; |
akashvibhute | 0:30537dec6e0b | 214 | } |
akashvibhute | 0:30537dec6e0b | 215 | |
akashvibhute | 0:30537dec6e0b | 216 | const char * getType(){ return "controller_manager_msgs/ControllerStatistics"; }; |
akashvibhute | 0:30537dec6e0b | 217 | const char * getMD5(){ return "697780c372c8d8597a1436d0e2ad3ba8"; }; |
akashvibhute | 0:30537dec6e0b | 218 | |
akashvibhute | 0:30537dec6e0b | 219 | }; |
akashvibhute | 0:30537dec6e0b | 220 | |
akashvibhute | 0:30537dec6e0b | 221 | } |
akashvibhute | 0:30537dec6e0b | 222 | #endif |