0.1.1 • Published 4 months ago

@oarc/gpp-access v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Simple client library for the Open AR Cloud GeoPoseProtocol for visual positioning.

This module will very likely only run in a browser using rollup right now. Compatibility with other packagers and with Node on the server side is planned.

New with version 0.1.0:

  • conversion from JavaScript to TypeScript

New with version 0.0.3:

  • update to new GeoPose format

Simple usage

    import { sendRequest, defaultEndpoint } from 'gpp-access';
    import GeoPoseRequest from 'gpp-access/request/GeoPoseRequest';
    import ImageOrientation from 'gpp-access/request/options/ImageOrientation';
    import { IMAGEFORMAT } from 'gpp-access/GppGlobals';

    const geoPoseRequest = new GeoPoseRequest(uuidv4())
        .addLocationData(latAngle, lonAngle, 0, 0, 0, 0, 0)
        .addCameraData(IMAGEFORMAT.JPG, imageSize, imageBytes, 0, new ImageOrientation(false, 0));

    sendRequest(`${serviceUrl}/${defaultEndpoint}`, JSON.stringify(geoPoseRequest))
        .then(data => {
            // handle GeoPoseResponse
        })

More information about the discovery services used can be found here:

https://github.com/OpenArCloud/oscp-geopose-protocol

0.1.1

4 months ago

0.1.0

4 months ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.3

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.2

3 years ago

0.0.1

3 years ago