Skip to content

Libraries & Base classes

Libraries

Everysight's RDK comes with the following libraries:

  • evsBase.aar: The main SDK library, contains all main functionality required for developing Raptor application
  • evsUICarousel.arr: Optional UI Widget to add Carousel like control to your application, to make your app navigation easier

evsBase.aar

Used for all base functionality (on top of the standard android SDK)

Main classes:

Class Description Notes
EvsBaseActivity Base class for most applications Screen adjust will move this activity according to the user setup
EvsFullScreenBaseActivity Base class for full screen activities Used mainly for LOS oriented graphics applications
EvsApplication Base class for application object
EvsPopupManager For showing notifications on the Raptor
EvsToast For showing toast on the Raptor
EvsCalibration Utility class converting coordinates between different system axis more details below

More classes exist. Please explore our samples

evsUICarousel.aar

The RDK Carousel control enables the developer to easily create a list of selectable items and to navigate among the items using the Raptor gestures

Main classes:

Class Description Notes
EvsCarouselActivity Base Activity for adding RDK stock gesture UI control Adds functionality for manipulating the control
ItemInfo, ItemInfoExe Represents a single carousel item
IEvsRecyclerView General carousel interface

More classes exist. Please explore our samples

Calibration

The EvsCalibration class functions as utility class converting coordinates between different system axis

Axis

Following axis are used:

Name Description Details
Display display pixels xy (0,0)-(display pixel wight-1, display pixel height-1) as (upper-left corner)-(down-right corner)
Camera camera pixels inside the sensor xy (0,0)-(sensor wight-1, sensor height-1) as (upper-left corner)-(down-right corner)
Eye glasses "self" axis XYZ - Right,Up,Back
World NED (North,East,Down) - this is a magnetic north
LLA WGS84 format latitude(deg), longitude(deg), altitude(meters)

The EvsCalibration exposes functions to enable the developer to transform between the various axis

Libraries setup

To add these use the following in your gradle file:

repositories {
    mavenCentral()
    flatDir {
        //'dirs' should point to the libraries folder
        dirs '../../libs'
    }
}

dependencies {
    implementation(name: 'evsBase', ext: 'aar')
}