catchrobo2022 mbed LPC1768 メインプログラム
Dependencies: mbed
PlanFootstepsGoal.h
00001 #ifndef _ROS_jsk_footstep_msgs_PlanFootstepsGoal_h 00002 #define _ROS_jsk_footstep_msgs_PlanFootstepsGoal_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "jsk_footstep_msgs/FootstepArray.h" 00009 #include "ros/duration.h" 00010 00011 namespace jsk_footstep_msgs 00012 { 00013 00014 class PlanFootstepsGoal : public ros::Msg 00015 { 00016 public: 00017 typedef jsk_footstep_msgs::FootstepArray _goal_footstep_type; 00018 _goal_footstep_type goal_footstep; 00019 typedef jsk_footstep_msgs::FootstepArray _initial_footstep_type; 00020 _initial_footstep_type initial_footstep; 00021 typedef ros::Duration _timeout_type; 00022 _timeout_type timeout; 00023 00024 PlanFootstepsGoal(): 00025 goal_footstep(), 00026 initial_footstep(), 00027 timeout() 00028 { 00029 } 00030 00031 virtual int serialize(unsigned char *outbuffer) const 00032 { 00033 int offset = 0; 00034 offset += this->goal_footstep.serialize(outbuffer + offset); 00035 offset += this->initial_footstep.serialize(outbuffer + offset); 00036 *(outbuffer + offset + 0) = (this->timeout.sec >> (8 * 0)) & 0xFF; 00037 *(outbuffer + offset + 1) = (this->timeout.sec >> (8 * 1)) & 0xFF; 00038 *(outbuffer + offset + 2) = (this->timeout.sec >> (8 * 2)) & 0xFF; 00039 *(outbuffer + offset + 3) = (this->timeout.sec >> (8 * 3)) & 0xFF; 00040 offset += sizeof(this->timeout.sec); 00041 *(outbuffer + offset + 0) = (this->timeout.nsec >> (8 * 0)) & 0xFF; 00042 *(outbuffer + offset + 1) = (this->timeout.nsec >> (8 * 1)) & 0xFF; 00043 *(outbuffer + offset + 2) = (this->timeout.nsec >> (8 * 2)) & 0xFF; 00044 *(outbuffer + offset + 3) = (this->timeout.nsec >> (8 * 3)) & 0xFF; 00045 offset += sizeof(this->timeout.nsec); 00046 return offset; 00047 } 00048 00049 virtual int deserialize(unsigned char *inbuffer) 00050 { 00051 int offset = 0; 00052 offset += this->goal_footstep.deserialize(inbuffer + offset); 00053 offset += this->initial_footstep.deserialize(inbuffer + offset); 00054 this->timeout.sec = ((uint32_t) (*(inbuffer + offset))); 00055 this->timeout.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00056 this->timeout.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00057 this->timeout.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00058 offset += sizeof(this->timeout.sec); 00059 this->timeout.nsec = ((uint32_t) (*(inbuffer + offset))); 00060 this->timeout.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1); 00061 this->timeout.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2); 00062 this->timeout.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3); 00063 offset += sizeof(this->timeout.nsec); 00064 return offset; 00065 } 00066 00067 virtual const char * getType(){ return "jsk_footstep_msgs/PlanFootstepsGoal"; }; 00068 virtual const char * getMD5(){ return "68011023a311776030c53b8ca437fae1"; }; 00069 00070 }; 00071 00072 } 00073 #endif
Generated on Mon Sep 26 2022 13:47:02 by
1.7.2