Preparing search index...
The search index is not available
@formant/data-sdk
@formant/data-sdk
LiveUniverseData
Class LiveUniverseData
Hierarchy (
view full
)
BasicUniverseDataConnector
LiveUniverseData
Implements
IUniverseData
Index
Constructors
constructor
Properties
last
Queried
Historic
Time
map
Realtime
Connections
query
Store
subscriber
Distributors
Loaders
subscriber
Loaders
subscriber
Sources
time
time
Change
Listeners
Methods
add
Interaction
add
Interaction
Listener
add
Interactions
Changed
Listener
add
Removable
Telemetry
Subscription
create
H264
Drawer
create
Realtime
Connection
fetch
Image
get
Device
Context
Name
get
Device
Contexts
get
Hardware
Streams
get
Interactions
get
Latest
Locations
get
Latest
Transform
Trees
get
Realtime
Buttons
get
Statistics
get
Telemetry
Stream
Type
get
Telemetry
Streams
get
Teleop
Ros
Streams
get
Time
get
Time
Ms
get
Urdfs
remove
Interaction
send
Command
send
Realtime
Bitset
send
Realtime
Boolean
send
Realtime
Pose
send
Rtc
Message
set
Time
subcribe
To
Video
subscribe
Data
Source
State
Change
subscribe
To
Bitset
subscribe
To
Geometry
subscribe
To
Grid
Map
subscribe
To
Image
subscribe
To
Joint
State
subscribe
To
Json
subscribe
To
Location
subscribe
To
Numeric
subscribe
To
Numeric
Set
subscribe
To
Odometry
subscribe
To
Path
subscribe
To
Point
Cloud
subscribe
To
Pose
subscribe
To
Realtime
Messages
subscribe
To
Text
subscribe
To
Transform
Tree
subscribe
To
Video
unsubscribe
To
Realtime
Messages
Constructors
constructor
new
Live
Universe
Data
(
)
:
LiveUniverseData
Returns
LiveUniverseData
Properties
last
Queried
Historic
Time
last
Queried
Historic
Time
:
undefined
|
Date
map
Realtime
Connections
map
Realtime
Connections
:
Map
<
string
,
"loading"
|
Device
|
PeerDevice
>
= ...
query
Store
query
Store
:
QueryStore
= ...
subscriber
Distributors
Loaders
subscriber
Distributors
Loaders
:
Map
<
string
,
Map
<
string
,
(
(
data
)
=>
void
)
[]
>
>
= ...
subscriber
Loaders
subscriber
Loaders
:
Map
<
string
,
Map
<
string
,
(
(
data
)
=>
Promise
<
DataResult
<
any
>
>
)
>
>
= ...
subscriber
Sources
subscriber
Sources
:
Map
<
string
,
Map
<
string
,
UniverseDataSource
>
>
= ...
time
time
:
Date
|
"live"
time
Change
Listeners
time
Change
Listeners
:
(
(
time
)
=>
void
)
[]
= []
Type declaration
(
time
)
:
void
Parameters
time
:
Date
|
"live"
Returns
void
Methods
add
Interaction
add
Interaction
(
_interaction
)
:
void
Parameters
_interaction
:
Interaction
Returns
void
add
Interaction
Listener
add
Interaction
Listener
(
_callback
)
:
(
(
)
=>
void
)
Parameters
_callback
:
(
(
interaction
)
=>
void
)
(
interaction
)
:
void
Parameters
interaction
:
Interaction
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
add
Interactions
Changed
Listener
add
Interactions
Changed
Listener
(
_callback
)
:
(
(
)
=>
void
)
Parameters
_callback
:
(
(
interactions
)
=>
void
)
(
interactions
)
:
void
Parameters
interactions
:
Interaction
[]
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Protected
add
Removable
Telemetry
Subscription
add
Removable
Telemetry
Subscription
<
T
>
(
deviceId
,
source
,
loader
,
distribute
)
:
(
(
)
=>
void
)
Type Parameters
T
Parameters
deviceId
:
string
source
:
UniverseDataSource
loader
:
(
(
data
)
=>
Promise
<
DataResult
<
T
>
>
)
(
data
)
:
Promise
<
DataResult
<
T
>
>
Parameters
data
:
IStreamData
<
keyof
IStreamTypeMap
>
[]
Returns
Promise
<
DataResult
<
T
>
>
distribute
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
T
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
Protected
create
H264
Drawer
create
H264
Drawer
(
)
:
H264BytestreamCanvasDrawer
Returns
H264BytestreamCanvasDrawer
Protected
create
Realtime
Connection
create
Realtime
Connection
(
deviceId
,
sessionType
?
)
:
Promise
<
void
>
Parameters
deviceId
:
string
sessionType
:
number
= SessionType.TELEOP
Returns
Promise
<
void
>
fetch
Image
fetch
Image
(
url
)
:
Promise
<
HTMLImageElement
>
Parameters
url
:
string
Returns
Promise
<
HTMLImageElement
>
get
Device
Context
Name
get
Device
Context
Name
(
_deviceId
)
:
Promise
<
undefined
|
string
>
Parameters
_deviceId
:
string
Returns
Promise
<
undefined
|
string
>
get
Device
Contexts
get
Device
Contexts
(
)
:
Promise
<
{
deviceId
:
string
;
deviceName
:
string
;
}
[]
>
Returns
Promise
<
{
deviceId
:
string
;
deviceName
:
string
;
}
[]
>
get
Hardware
Streams
get
Hardware
Streams
(
_deviceId
)
:
Promise
<
IRealtimeStream
[]
>
Parameters
_deviceId
:
string
Returns
Promise
<
IRealtimeStream
[]
>
get
Interactions
get
Interactions
(
)
:
Interaction
[]
Returns
Interaction
[]
get
Latest
Locations
get
Latest
Locations
(
)
:
Promise
<
{
location
:
ILocation
;
streamName
:
string
;
}
[]
>
Returns
Promise
<
{
location
:
ILocation
;
streamName
:
string
;
}
[]
>
get
Latest
Transform
Trees
get
Latest
Transform
Trees
(
_deviceId
)
:
Promise
<
{
streamName
:
string
;
transformTree
:
ITransformNode
;
}
[]
>
Parameters
_deviceId
:
string
Returns
Promise
<
{
streamName
:
string
;
transformTree
:
ITransformNode
;
}
[]
>
get
Realtime
Buttons
get
Realtime
Buttons
(
_deviceId
)
:
Promise
<
RealtimeButtonConfiguration
[]
>
Parameters
_deviceId
:
string
Returns
Promise
<
RealtimeButtonConfiguration
[]
>
get
Statistics
get
Statistics
(
)
:
Promise
<
IUniverseStatistics
>
Returns
Promise
<
IUniverseStatistics
>
get
Telemetry
Stream
Type
get
Telemetry
Stream
Type
(
_deviceId
,
_streamName
)
:
Promise
<
undefined
|
string
>
Parameters
_deviceId
:
string
_streamName
:
string
Returns
Promise
<
undefined
|
string
>
get
Telemetry
Streams
get
Telemetry
Streams
(
_deviceId
)
:
Promise
<
ITelemetryStream
[]
>
Parameters
_deviceId
:
string
Returns
Promise
<
ITelemetryStream
[]
>
get
Teleop
Ros
Streams
get
Teleop
Ros
Streams
(
_deviceId
)
:
Promise
<
ITelemetryRosStream
[]
>
Parameters
_deviceId
:
string
Returns
Promise
<
ITelemetryRosStream
[]
>
get
Time
get
Time
(
)
:
Date
|
"live"
Returns
Date
|
"live"
get
Time
Ms
get
Time
Ms
(
)
:
number
Returns
number
get
Urdfs
get
Urdfs
(
deviceId
)
:
Promise
<
string
[]
>
Parameters
deviceId
:
string
Returns
Promise
<
string
[]
>
remove
Interaction
remove
Interaction
(
_id
)
:
void
Parameters
_id
:
string
Returns
void
send
Command
send
Command
(
deviceId
,
name
,
data
?
)
:
Promise
<
void
>
Parameters
deviceId
:
string
name
:
string
Optional
data
:
string
Returns
Promise
<
void
>
send
Realtime
Bitset
send
Realtime
Bitset
(
deviceId
,
streamName
,
bitset
)
:
Promise
<
void
>
Parameters
deviceId
:
string
streamName
:
string
bitset
:
IBitset
Returns
Promise
<
void
>
send
Realtime
Boolean
send
Realtime
Boolean
(
deviceId
,
streamName
,
value
)
:
Promise
<
void
>
Parameters
deviceId
:
string
streamName
:
string
value
:
boolean
Returns
Promise
<
void
>
send
Realtime
Pose
send
Realtime
Pose
(
deviceId
,
streamName
,
pose
)
:
Promise
<
void
>
Parameters
deviceId
:
string
streamName
:
string
pose
:
ITransform
Returns
Promise
<
void
>
Protected
send
Rtc
Message
send
Rtc
Message
(
deviceId
,
msg
)
:
Promise
<
void
>
Parameters
deviceId
:
string
msg
:
IRtcStreamMessage
Returns
Promise
<
void
>
set
Time
set
Time
(
time
)
:
void
Parameters
time
:
Date
|
"live"
Returns
void
subcribe
To
Video
subcribe
To
Video
(
_deviceId
,
_source
,
_callback
)
:
CloseSubscription
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
_callback
:
(
(
frame
)
=>
void
)
(
frame
)
:
void
Parameters
frame
:
HTMLVideoElement
Returns
void
Returns
CloseSubscription
subscribe
Data
Source
State
Change
subscribe
Data
Source
State
Change
(
_deviceId
,
_source
,
_onDataSourceStateChange
?
)
:
CloseSubscription
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
Optional
_onDataSourceStateChange
:
(
(
state
)
=>
void
)
(
state
)
:
void
Parameters
state
:
DataSourceState
Returns
void
Returns
CloseSubscription
subscribe
To
Bitset
subscribe
To
Bitset
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
Symbol
|
IBitset
Returns
void
Returns
CloseSubscription
subscribe
To
Geometry
subscribe
To
Geometry
(
_deviceId
,
_source
,
_callback
)
:
(
(
)
=>
void
)
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
_callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IMarker3DArray
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Grid
Map
subscribe
To
Grid
Map
(
deviceId
,
source
,
callback
)
:
(
(
)
=>
void
)
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IUniverseGridMap
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Image
subscribe
To
Image
(
_deviceId
,
_source
,
_callback
)
:
CloseSubscription
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
_callback
:
(
(
image
)
=>
void
)
(
image
)
:
void
Parameters
image
:
HTMLCanvasElement
Returns
void
Returns
CloseSubscription
subscribe
To
Joint
State
subscribe
To
Joint
State
(
deviceId
,
source
,
callback
)
:
(
(
)
=>
void
)
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IJointState
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Json
subscribe
To
Json
<
T
>
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Type Parameters
T
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
T
Returns
void
Returns
CloseSubscription
subscribe
To
Location
subscribe
To
Location
(
_deviceId
,
_source
,
_callback
)
:
(
(
)
=>
void
)
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
_callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
ILocation
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Numeric
subscribe
To
Numeric
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
num
)
=>
void
)
(
num
)
:
void
Parameters
num
:
[
number
,
number
]
[]
Returns
void
Returns
CloseSubscription
subscribe
To
Numeric
Set
subscribe
To
Numeric
Set
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
entry
)
=>
void
)
(
entry
)
:
void
Parameters
entry
:
[
number
,
INumericSetEntry
[]
]
[]
Returns
void
Returns
CloseSubscription
subscribe
To
Odometry
subscribe
To
Odometry
(
deviceId
,
source
,
callback
,
_trail
?
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IUniverseOdometry
Returns
void
Optional
_trail
:
number
Returns
CloseSubscription
subscribe
To
Path
subscribe
To
Path
(
_deviceId
,
_source
,
_callback
)
:
CloseSubscription
Parameters
_deviceId
:
string
_source
:
UniverseDataSource
_callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
Symbol
|
IUniversePath
Returns
void
Returns
CloseSubscription
subscribe
To
Point
Cloud
subscribe
To
Point
Cloud
(
deviceId
,
source
,
callback
)
:
(
(
)
=>
void
)
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IUniversePointCloud
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Pose
subscribe
To
Pose
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
IPose
Returns
void
Returns
CloseSubscription
subscribe
To
Realtime
Messages
subscribe
To
Realtime
Messages
(
deviceId
,
streamName
,
callback
)
:
Promise
<
void
>
Parameters
deviceId
:
string
streamName
:
string
callback
:
RealtimeListener
Returns
Promise
<
void
>
subscribe
To
Text
subscribe
To
Text
(
deviceId
,
source
,
callback
)
:
CloseSubscription
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
string
Returns
void
Returns
CloseSubscription
subscribe
To
Transform
Tree
subscribe
To
Transform
Tree
(
deviceId
,
source
,
callback
)
:
(
(
)
=>
void
)
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
data
)
=>
void
)
(
data
)
:
void
Parameters
data
:
ITransformNode
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
subscribe
To
Video
subscribe
To
Video
(
deviceId
,
source
,
callback
)
:
(
(
)
=>
void
)
Parameters
deviceId
:
string
source
:
UniverseDataSource
callback
:
(
(
frame
)
=>
void
)
(
frame
)
:
void
Parameters
frame
:
HTMLCanvasElement
Returns
void
Returns
(
(
)
=>
void
)
(
)
:
void
Returns
void
unsubscribe
To
Realtime
Messages
unsubscribe
To
Realtime
Messages
(
deviceId
,
streamName
,
callback
)
:
Promise
<
void
>
Parameters
deviceId
:
string
streamName
:
string
callback
:
RealtimeListener
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
last
Queried
Historic
Time
map
Realtime
Connections
query
Store
subscriber
Distributors
Loaders
subscriber
Loaders
subscriber
Sources
time
time
Change
Listeners
add
Interaction
add
Interaction
Listener
add
Interactions
Changed
Listener
add
Removable
Telemetry
Subscription
create
H264
Drawer
create
Realtime
Connection
fetch
Image
get
Device
Context
Name
get
Device
Contexts
get
Hardware
Streams
get
Interactions
get
Latest
Locations
get
Latest
Transform
Trees
get
Realtime
Buttons
get
Statistics
get
Telemetry
Stream
Type
get
Telemetry
Streams
get
Teleop
Ros
Streams
get
Time
get
Time
Ms
get
Urdfs
remove
Interaction
send
Command
send
Realtime
Bitset
send
Realtime
Boolean
send
Realtime
Pose
send
Rtc
Message
set
Time
subcribe
To
Video
subscribe
Data
Source
State
Change
subscribe
To
Bitset
subscribe
To
Geometry
subscribe
To
Grid
Map
subscribe
To
Image
subscribe
To
Joint
State
subscribe
To
Json
subscribe
To
Location
subscribe
To
Numeric
subscribe
To
Numeric
Set
subscribe
To
Odometry
subscribe
To
Path
subscribe
To
Point
Cloud
subscribe
To
Pose
subscribe
To
Realtime
Messages
subscribe
To
Text
subscribe
To
Transform
Tree
subscribe
To
Video
unsubscribe
To
Realtime
Messages
@formant/data-sdk
Loading...
Generated using
TypeDoc