GitHub
Preparing search index...
The search index is not available
Viam SDK
Viam SDK
CameraClient
Class CameraClient
A gRPC-web client for the Camera component.
Implements
Camera
Index
Constructors
constructor
Properties
client
name
options
Accessors
camera
Service
Methods
do
Command
get
Image
get
Point
Cloud
get
Properties
render
Frame
Constructors
constructor
new
Camera
Client
(
client
,
name
,
options
?
)
:
CameraClient
Parameters
client
:
RobotClient
name
:
string
options
:
Options
= {}
Returns
CameraClient
Properties
Private
client
client
:
CameraServiceClient
Private
Readonly
name
name
:
string
Private
Readonly
options
options
:
Options
Accessors
Private
camera
Service
get
cameraService
(
)
:
CameraServiceClient
Returns
CameraServiceClient
Methods
do
Command
do
Command
(
command
)
:
Promise
<
StructType
>
Parameters
command
:
StructType
Returns
Promise
<
StructType
>
get
Image
get
Image
(
mimeType
?
)
:
Promise
<
Uint8Array
>
Parameters
mimeType
:
MimeType
= ''
Returns
Promise
<
Uint8Array
>
get
Point
Cloud
get
Point
Cloud
(
)
:
Promise
<
Uint8Array
>
Returns
Promise
<
Uint8Array
>
get
Properties
get
Properties
(
)
:
Promise
<
cameraApi
.
GetPropertiesResponse
.
AsObject
>
Returns
Promise
<
cameraApi
.
GetPropertiesResponse
.
AsObject
>
render
Frame
render
Frame
(
mimeType
?
)
:
Promise
<
Blob
>
Parameters
mimeType
:
MimeType
= ''
Returns
Promise
<
Blob
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
client
name
options
camera
Service
do
Command
get
Image
get
Point
Cloud
get
Properties
render
Frame
Viam SDK
Loading...
Generated using
TypeDoc
A gRPC-web client for the Camera component.