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.
InteractiveMarkerPose.h
00001 #ifndef _ROS_visualization_msgs_InteractiveMarkerPose_h 00002 #define _ROS_visualization_msgs_InteractiveMarkerPose_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 #include "std_msgs/Header.h" 00009 #include "geometry_msgs/Pose.h" 00010 00011 namespace visualization_msgs 00012 { 00013 00014 class InteractiveMarkerPose : public ros::Msg 00015 { 00016 public: 00017 typedef std_msgs::Header _header_type; 00018 _header_type header; 00019 typedef geometry_msgs::Pose _pose_type; 00020 _pose_type pose; 00021 typedef const char* _name_type; 00022 _name_type name; 00023 00024 InteractiveMarkerPose(): 00025 header(), 00026 pose(), 00027 name("") 00028 { 00029 } 00030 00031 virtual int serialize(unsigned char *outbuffer) const 00032 { 00033 int offset = 0; 00034 offset += this->header.serialize(outbuffer + offset); 00035 offset += this->pose.serialize(outbuffer + offset); 00036 uint32_t length_name = strlen(this->name); 00037 varToArr(outbuffer + offset, length_name); 00038 offset += 4; 00039 memcpy(outbuffer + offset, this->name, length_name); 00040 offset += length_name; 00041 return offset; 00042 } 00043 00044 virtual int deserialize(unsigned char *inbuffer) 00045 { 00046 int offset = 0; 00047 offset += this->header.deserialize(inbuffer + offset); 00048 offset += this->pose.deserialize(inbuffer + offset); 00049 uint32_t length_name; 00050 arrToVar(length_name, (inbuffer + offset)); 00051 offset += 4; 00052 for(unsigned int k= offset; k< offset+length_name; ++k){ 00053 inbuffer[k-1]=inbuffer[k]; 00054 } 00055 inbuffer[offset+length_name-1]=0; 00056 this->name = (char *)(inbuffer + offset-1); 00057 offset += length_name; 00058 return offset; 00059 } 00060 00061 const char * getType(){ return "visualization_msgs/InteractiveMarkerPose"; }; 00062 const char * getMD5(){ return "a6e6833209a196a38d798dadb02c81f8"; }; 00063 00064 }; 00065 00066 } 00067 #endif
Generated on Wed Jul 13 2022 23:30:18 by
