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.
Dependencies: MPU6050-DMP mbed ros_lib_kinetic
Fork of AGV_0411 by
tinyIMU.h
00001 #ifndef _ROS_tiny_msgs_tinyIMU_h 00002 #define _ROS_tiny_msgs_tinyIMU_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 "tinyVector.h" 00010 00011 namespace tiny_msgs 00012 { 00013 00014 class tinyIMU : public ros::Msg 00015 { 00016 public: 00017 typedef std_msgs::Header _header_type; 00018 _header_type header; 00019 typedef tiny_msgs::tinyVector _accel_type; 00020 _accel_type accel; 00021 typedef tiny_msgs::tinyVector _gyro_type; 00022 _gyro_type gyro; 00023 00024 tinyIMU(): 00025 header(), 00026 accel(), 00027 gyro() 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->accel.serialize(outbuffer + offset); 00036 offset += this->gyro.serialize(outbuffer + offset); 00037 return offset; 00038 } 00039 00040 virtual int deserialize(unsigned char *inbuffer) 00041 { 00042 int offset = 0; 00043 offset += this->header.deserialize(inbuffer + offset); 00044 offset += this->accel.deserialize(inbuffer + offset); 00045 offset += this->gyro.deserialize(inbuffer + offset); 00046 return offset; 00047 } 00048 00049 const char * getType(){ return "tiny_msgs/tinyIMU"; }; 00050 const char * getMD5(){ return "53582bc8b7315f3bc7728d82df98bb24"; }; 00051 00052 }; 00053 00054 } 00055 #endif
Generated on Sat Jul 16 2022 07:44:34 by
1.7.2
