text: // Auto-generated. Do not edit!
  
  // (in-package test.srv)
  
  
  "use strict";
  
  const _serializer = _ros_msg_utils.Serialize;
  const _arraySerializer = _serializer.Array;
  const _deserializer = _ros_msg_utils.Deserialize;
  const _arrayDeserializer = _deserializer.Array;
  const _finder = _ros_msg_utils.Find;
  const _getByteLength = _ros_msg_utils.getByteLength;
  
  //-----------------------------------------------------------
  
  
  //-----------------------------------------------------------
  
  class display_draw_ovalRequest {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.cx = null;
        this.cy = null;
        this.a = null;
        this.b = null;
      }
      else {
        if (initObj.hasOwnProperty('cx')) {
          this.cx = initObj.cx
        }
        else {
          this.cx = 0;
        }
        if (initObj.hasOwnProperty('cy')) {
          this.cy = initObj.cy
        }
        else {
          this.cy = 0;
        }
        if (initObj.hasOwnProperty('a')) {
          this.a = initObj.a
        }
        else {
          this.a = 0;
        }
        if (initObj.hasOwnProperty('b')) {
          this.b = initObj.b
        }
        else {
          this.b = 0;
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type display_draw_ovalRequest
      // Serialize message field [cx]
      bufferOffset = _serializer.int32(obj.cx, buffer, bufferOffset);
      // Serialize message field [cy]
      bufferOffset = _serializer.int32(obj.cy, buffer, bufferOffset);
      // Serialize message field [a]
      bufferOffset = _serializer.int32(obj.a, buffer, bufferOffset);
      // Serialize message field [b]
      bufferOffset = _serializer.int32(obj.b, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type display_draw_ovalRequest
      let len;
      let data = new display_draw_ovalRequest(null);
      // Deserialize message field [cx]
      data.cx = _deserializer.int32(buffer, bufferOffset);
      // Deserialize message field [cy]
      data.cy = _deserializer.int32(buffer, bufferOffset);
      // Deserialize message field [a]
      data.a = _deserializer.int32(buffer, bufferOffset);
      // Deserialize message field [b]
      data.b = _deserializer.int32(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      return 16;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'test/display_draw_ovalRequest';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return '78363f0f1b453e74fe20a86614ff165b';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      int32 cx
      int32 cy
      int32 a
      int32 b
      
      `;
    }
  
    static Resolve(msg) {
      // deep-construct a valid message object instance of whatever was passed in
      if (typeof msg !== 'object' || msg === null) {
        msg = {};
      }
      const resolved = new display_draw_ovalRequest(null);
      if (msg.cx !== undefined) {
        resolved.cx = msg.cx;
      }
      else {
        resolved.cx = 0
      }
  
      if (msg.cy !== undefined) {
        resolved.cy = msg.cy;
      }
      else {
        resolved.cy = 0
      }
  
      if (msg.a !== undefined) {
        resolved.a = msg.a;
      }
      else {
        resolved.a = 0
      }
  
      if (msg.b !== undefined) {
        resolved.b = msg.b;
      }
      else {
        resolved.b = 0
      }
  
      return resolved;
      }
  };
  
  class display_draw_ovalResponse {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.success = null;
      }
      else {
        if (initObj.hasOwnProperty('success')) {
          this.success = initObj.success
        }
        else {
          this.success = 0;
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type display_draw_ovalResponse
      // Serialize message field [success]
      bufferOffset = _serializer.int8(obj.success, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type display_draw_ovalResponse
      let len;
      let data = new display_draw_ovalResponse(null);
      // Deserialize message field [success]
      data.success = _deserializer.int8(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      return 1;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'test/display_draw_ovalResponse';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return '0b13460cb14006d3852674b4c614f25f';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      int8 success
      
      
      `;
    }
  
    static Resolve(msg) {
      // deep-construct a valid message object instance of whatever was passed in
      if (typeof msg !== 'object' || msg === null) {
        msg = {};
      }
      const resolved = new display_draw_ovalResponse(null);
      if (msg.success !== undefined) {
        resolved.success = msg.success;
      }
      else {
        resolved.success = 0
      }
  
      return resolved;
      }
  };
  
  module.exports = {
    Request: display_draw_ovalRequest,
    Response: display_draw_ovalResponse,
    md5sum() { return '257804d9f2e4639bae589e190802d29f'; },
    datatype() { return 'test/display_draw_oval'; }
  };
  