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: mbed
ObjectFitCommand.h
00001 #ifndef _ROS_jsk_rviz_plugins_ObjectFitCommand_h 00002 #define _ROS_jsk_rviz_plugins_ObjectFitCommand_h 00003 00004 #include <stdint.h> 00005 #include <string.h> 00006 #include <stdlib.h> 00007 #include "ros/msg.h" 00008 00009 namespace jsk_rviz_plugins 00010 { 00011 00012 class ObjectFitCommand : public ros::Msg 00013 { 00014 public: 00015 typedef int8_t _command_type; 00016 _command_type command; 00017 enum { FIT = 0 }; 00018 enum { NEAR = 1 }; 00019 enum { OTHER = 2 }; 00020 enum { REVERSE_FIT = 3 }; 00021 enum { REVERSE_NEAR = 4 }; 00022 enum { REVERSE_OTHER = 5 }; 00023 00024 ObjectFitCommand(): 00025 command(0) 00026 { 00027 } 00028 00029 virtual int serialize(unsigned char *outbuffer) const 00030 { 00031 int offset = 0; 00032 union { 00033 int8_t real; 00034 uint8_t base; 00035 } u_command; 00036 u_command.real = this->command; 00037 *(outbuffer + offset + 0) = (u_command.base >> (8 * 0)) & 0xFF; 00038 offset += sizeof(this->command); 00039 return offset; 00040 } 00041 00042 virtual int deserialize(unsigned char *inbuffer) 00043 { 00044 int offset = 0; 00045 union { 00046 int8_t real; 00047 uint8_t base; 00048 } u_command; 00049 u_command.base = 0; 00050 u_command.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); 00051 this->command = u_command.real; 00052 offset += sizeof(this->command); 00053 return offset; 00054 } 00055 00056 virtual const char * getType(){ return "jsk_rviz_plugins/ObjectFitCommand"; }; 00057 virtual const char * getMD5(){ return "aaf37eac6a6717d09d438978a4117776"; }; 00058 00059 }; 00060 00061 } 00062 #endif
Generated on Mon Sep 26 2022 13:47:02 by
