text: // Auto-generated. Do not edit!
  
  // (in-package dynamixel_sdk_examples.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 SyncGetPositionRequest {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.id1 = null;
        this.id2 = null;
      }
      else {
        if (initObj.hasOwnProperty('id1')) {
          this.id1 = initObj.id1
        }
        else {
          this.id1 = 0;
        }
        if (initObj.hasOwnProperty('id2')) {
          this.id2 = initObj.id2
        }
        else {
          this.id2 = 0;
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type SyncGetPositionRequest
      // Serialize message field [id1]
      bufferOffset = _serializer.uint8(obj.id1, buffer, bufferOffset);
      // Serialize message field [id2]
      bufferOffset = _serializer.uint8(obj.id2, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type SyncGetPositionRequest
      let len;
      let data = new SyncGetPositionRequest(null);
      // Deserialize message field [id1]
      data.id1 = _deserializer.uint8(buffer, bufferOffset);
      // Deserialize message field [id2]
      data.id2 = _deserializer.uint8(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      return 2;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'dynamixel_sdk_examples/SyncGetPositionRequest';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return '533dfb55d158e8e581d9e0f578d53185';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      uint8 id1
      uint8 id2
      
      `;
    }
  
    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 SyncGetPositionRequest(null);
      if (msg.id1 !== undefined) {
        resolved.id1 = msg.id1;
      }
      else {
        resolved.id1 = 0
      }
  
      if (msg.id2 !== undefined) {
        resolved.id2 = msg.id2;
      }
      else {
        resolved.id2 = 0
      }
  
      return resolved;
      }
  };
  
  class SyncGetPositionResponse {
    constructor(initObj={}) {
      if (initObj === null) {
        // initObj === null is a special case for deserialization where we don't initialize fields
        this.position1 = null;
        this.position2 = null;
      }
      else {
        if (initObj.hasOwnProperty('position1')) {
          this.position1 = initObj.position1
        }
        else {
          this.position1 = 0;
        }
        if (initObj.hasOwnProperty('position2')) {
          this.position2 = initObj.position2
        }
        else {
          this.position2 = 0;
        }
      }
    }
  
    static serialize(obj, buffer, bufferOffset) {
      // Serializes a message object of type SyncGetPositionResponse
      // Serialize message field [position1]
      bufferOffset = _serializer.int32(obj.position1, buffer, bufferOffset);
      // Serialize message field [position2]
      bufferOffset = _serializer.int32(obj.position2, buffer, bufferOffset);
      return bufferOffset;
    }
  
    static deserialize(buffer, bufferOffset=[0]) {
      //deserializes a message object of type SyncGetPositionResponse
      let len;
      let data = new SyncGetPositionResponse(null);
      // Deserialize message field [position1]
      data.position1 = _deserializer.int32(buffer, bufferOffset);
      // Deserialize message field [position2]
      data.position2 = _deserializer.int32(buffer, bufferOffset);
      return data;
    }
  
    static getMessageSize(object) {
      return 8;
    }
  
    static datatype() {
      // Returns string type for a service object
      return 'dynamixel_sdk_examples/SyncGetPositionResponse';
    }
  
    static md5sum() {
      //Returns md5sum for a message object
      return 'a1a390f5c43969c5caaab57cf13dc84b';
    }
  
    static messageDefinition() {
      // Returns full string definition for message
      return `
      int32 position1
      int32 position2
      
      
      `;
    }
  
    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 SyncGetPositionResponse(null);
      if (msg.position1 !== undefined) {
        resolved.position1 = msg.position1;
      }
      else {
        resolved.position1 = 0
      }
  
      if (msg.position2 !== undefined) {
        resolved.position2 = msg.position2;
      }
      else {
        resolved.position2 = 0
      }
  
      return resolved;
      }
  };
  
  module.exports = {
    Request: SyncGetPositionRequest,
    Response: SyncGetPositionResponse,
    md5sum() { return '4a5a90af26ce6360c45e1980f134941b'; },
    datatype() { return 'dynamixel_sdk_examples/SyncGetPosition'; }
  };
  