VisionConfig \(C++\)

June 4, 2021 ยท View on GitHub

This page describes the C++ VisionConfig API.

RPC reference

This section describes the existing RPCs used in this API.

Service to configure the Vision Module

VisionConfigClient RPCs

Function nameReturn typeInput typeDescription
SetSensorSettingsEmptySensorSettingsSets sensor settings (resolution, frame rate, etc)
GetSensorSettingsSensorSettingsSensorIdentifierRetrieves sensor settings (resolution, frame rate, etc)
GetOptionValueOptionValueOptionIdentifierRetrieves option value from the sensor
SetOptionValueEmptyOptionValueWrites new value to sensor option
GetOptionInformationOptionInformationOptionIdentifierRetrieves option information from the sensor
OnNotificationVisionTopicNotificationHandleNotificationOptionsSubscribes to Vision configuration notifications
DoSensorFocusActionEmptySensorFocusActionDo a focus action
GetIntrinsicParametersIntrinsicParametersSensorIdentifierRetrieves sensor intrinsic parameters
GetIntrinsicParametersProfileIntrinsicParametersIntrinsicProfileIdentifierRetrieves sensor intrinsic parameters for a specific profile
SetIntrinsicParametersEmptyIntrinsicParametersSets sensor intrinsic parameters
GetExtrinsicParametersExtrinsicParametersEmptyRetrieves sensor extrinsic parameters
SetExtrinsicParametersEmptyExtrinsicParametersSets sensor extrinsic parameters

Class reference

This section describes the data classes used in this API.

Messages

ClassDescription
DistortionCoefficientsDistortion coefficients for sensor intrinsic parameters
ExtrinsicParametersSensor extrinsic parameters
FocusPointFocus point in the X-Y coordinates of the image
IntrinsicParametersSensor intrinsic parameters
IntrinsicProfileIdentifierIntrisic parameters profile to retrieve
ManualFocusAbstract value that affects the focus distance
OptionIdentifierSensor and the option to configure
OptionInformationInformation about the optional settings for the chosen sensor
OptionValueValue of the particular option for the sensor
RotationMatrixRepresentation of a 3x3 rotation matrix. To be a valid rotation matrix, the rows must be orthonormal (the rows must each have norm of 1 and the row vectors must be orthogonal to each other). The determinant must also be +1.
RotationMatrixRowSingle row of a 3x3 rotation matrix. To be a valid possible row of a rotation matrix, the norm of the row must be 1 (the sum of the squares of the row elements has to equal 1).
SensorFocusActionFocus action to perform for the specified sensor
SensorIdentifierSensor to configure
SensorSettingsMain sensor settings - resolution, frame rate, bit rate - for the chosen sensor (color or depth).
TranslationVectorProvides a 3x1 translation vector configuration
VisionNotificationNotification about a single vision module event

Enumerators

EnumeratorDescription
BitRateMaximum encoded bit rate, in Mbps
FocusActionFocus action to perform (start/pause continuous, focus now, disable). Supported only with Color sensor.
FrameRateSensor frame rate
OptionAdmissible vision module sensor options. Note that some options are only available for the color sensor and some are only available for the depth sensor.
ResolutionSensor resolution. Note that some settings are only for the color sensor and some are only for the depth sensor.
SensorVision module sensor to configure
ServiceVersionIdentifies VisionConfig service current version
VisionEventAdmissible Vision module events.