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.
Diff: ros_lib/mavros_msgs/SetMavFrame.h
- Revision:
- 0:8f3710bfd298
diff -r 000000000000 -r 8f3710bfd298 ros_lib/mavros_msgs/SetMavFrame.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ros_lib/mavros_msgs/SetMavFrame.h Wed Sep 02 13:51:31 2020 +0000 @@ -0,0 +1,115 @@ +#ifndef _ROS_SERVICE_SetMavFrame_h +#define _ROS_SERVICE_SetMavFrame_h +#include <stdint.h> +#include <string.h> +#include <stdlib.h> +#include "ros/msg.h" + +namespace mavros_msgs +{ + +static const char SETMAVFRAME[] = "mavros_msgs/SetMavFrame"; + + class SetMavFrameRequest : public ros::Msg + { + public: + typedef uint8_t _mav_frame_type; + _mav_frame_type mav_frame; + enum { FRAME_GLOBAL = 0 }; + enum { FRAME_LOCAL_NED = 1 }; + enum { FRAME_MISSION = 2 }; + enum { FRAME_GLOBAL_RELATIVE_ALT = 3 }; + enum { FRAME_LOCAL_ENU = 4 }; + enum { FRAME_GLOBAL_INT = 5 }; + enum { FRAME_GLOBAL_RELATIVE_ALT_INT = 6 }; + enum { FRAME_LOCAL_OFFSET_NED = 7 }; + enum { FRAME_BODY_NED = 8 }; + enum { FRAME_BODY_OFFSET_NED = 9 }; + enum { FRAME_GLOBAL_TERRAIN_ALT = 10 }; + enum { FRAME_GLOBAL_TERRAIN_ALT_INT = 11 }; + enum { FRAME_BODY_FRD = 12 }; + enum { FRAME_BODY_FLU = 13 }; + enum { FRAME_MOCAP_NED = 14 }; + enum { FRAME_MOCAP_ENU = 15 }; + enum { FRAME_VISION_NED = 16 }; + enum { FRAME_VISION_ENU = 17 }; + enum { FRAME_ESTIM_NED = 18 }; + enum { FRAME_ESTIM_ENU = 19 }; + + SetMavFrameRequest(): + mav_frame(0) + { + } + + virtual int serialize(unsigned char *outbuffer) const + { + int offset = 0; + *(outbuffer + offset + 0) = (this->mav_frame >> (8 * 0)) & 0xFF; + offset += sizeof(this->mav_frame); + return offset; + } + + virtual int deserialize(unsigned char *inbuffer) + { + int offset = 0; + this->mav_frame = ((uint8_t) (*(inbuffer + offset))); + offset += sizeof(this->mav_frame); + return offset; + } + + const char * getType(){ return SETMAVFRAME; }; + const char * getMD5(){ return "4d2cf24886f660cde0f73cf6fc86e24c"; }; + + }; + + class SetMavFrameResponse : public ros::Msg + { + public: + typedef bool _success_type; + _success_type success; + + SetMavFrameResponse(): + success(0) + { + } + + virtual int serialize(unsigned char *outbuffer) const + { + int offset = 0; + union { + bool real; + uint8_t base; + } u_success; + u_success.real = this->success; + *(outbuffer + offset + 0) = (u_success.base >> (8 * 0)) & 0xFF; + offset += sizeof(this->success); + return offset; + } + + virtual int deserialize(unsigned char *inbuffer) + { + int offset = 0; + union { + bool real; + uint8_t base; + } u_success; + u_success.base = 0; + u_success.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0); + this->success = u_success.real; + offset += sizeof(this->success); + return offset; + } + + const char * getType(){ return SETMAVFRAME; }; + const char * getMD5(){ return "358e233cde0c8a8bcfea4ce193f8fc15"; }; + + }; + + class SetMavFrame { + public: + typedef SetMavFrameRequest Request; + typedef SetMavFrameResponse Response; + }; + +} +#endif