Skip to content

gloriacai01/viam-java-sdk

This branch is 4 commits ahead of, 39 commits behind viamrobotics/viam-java-sdk:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bc0dd7d · Sep 11, 2024

History

79 Commits
Jul 30, 2024
Jul 12, 2024
Feb 29, 2024
Sep 11, 2024
Mar 29, 2024
Apr 2, 2024
Aug 1, 2024
Apr 10, 2024
Aug 1, 2024
Apr 1, 2024
Nov 28, 2023
Jul 30, 2024
May 16, 2024
Aug 30, 2024
Jul 30, 2024
Aug 12, 2024
Feb 12, 2024
Apr 2, 2024
Apr 2, 2024
Apr 11, 2024

Repository files navigation

Viam Java SDK

Warning

This is an alpha release of the Viam Java SDK. No guarantees are made to the stability of the API.

Installation

This SDK provides Java and Android libraries. To install, add appropriate dependency to your gradle file:

// build.gradle

dependencies {
    // For Java
    implementation 'com.viam:viam-java-sdk'

    // For Android
    implementation 'com.viam:viam-android-sdk'
}

The SDK also provides additional packages to enable various functionality:

  • viam-java-sdk-mlmodel-service and viam-android-sdk-mlmodel-service for machine learning models
  • viam-android-module for running modules on Android

See examples for more information:

Dependencies

  • JDK 21+ (source is Java 11 compatible) (be sure to set JAVA_HOME)
  • Run make setup buf

Examples

Examples can be found in the various example directories:

Two pure Java examples are ready to run out of the box to help get you started. You can run them with the commands make run_server to start a gRPC server, and then make run_client to run the example client against that server.

Known Issues

  • Android 10 (the min supported at API 29) testing appears to show that webrtc video decoding is failing. This needs to be looked into but could be a simple fix of passing in different decoder factory settings. Android 14 works great.
  • Custom modular APIs not yet supported
  • These libraries use protobuf-lite, not protobuf-java. See further discussion at protocolbuffers/protobuf#8104

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.6%
  • Kotlin 4.1%
  • Other 0.3%