public class VisionReplayManager extends BaseVisionManager
class VisionReplayManager
is a counterpart of class VisionManager
that uses recorded video and telemetry instead of realtime data.
Use it to debug and test functions that use Vision in a development environment before testing on a road.
Use it in the same workflow you use class VisionManager
after creating it with specific recorded session.
Important : use this class only for debugging purposes. Do NOT use session replay in production application.
Lifecycle of VisionReplayManager :
Modifier and Type | Field and Description |
---|---|
static VisionReplayManager |
INSTANCE
class VisionReplayManager is a counterpart of class VisionManager that uses recorded video and telemetry instead of realtime data.
Use it to debug and test functions that use Vision in a development environment before testing on a road.
Use it in the same workflow you use class VisionManager after creating it with specific recorded session. |
Modifier and Type | Method and Description |
---|---|
void |
attachView$module(VisionView visionView) |
static void |
create(java.lang.String path)
Fabric method for creating a
class VisionReplayManager instance.
Do NOT call this method more than once.
It's only allowed to have one living instance of class VisionReplayManager or class VisionManager .
To create class VisionReplayManager with a different configuration call VisionReplayManager.destroy on existing instance or release all references to it. |
static void |
destroy()
Clean up the state and resources of
class VisionReplayManager .
Do NOT call this method more than once. |
static WorldCoordinate |
geoToWorld(GeoCoordinate geoCoordinate)
Converts the location of the point from a geographical coordinate to a world coordinate.
|
static float |
getDuration()
Get total duration of the the replaying session, in seconds.
|
static FrameStatistics |
getFrameStatistics() |
static float |
getProgress()
Get current progress of the replaying session, in seconds.
|
static VisionEventsListener |
getVisionEventsListener()
Listener for
class VisionReplayManager . It's held as a week reference. |
static WorldCoordinate |
pixelToWorld(PixelCoordinate pixelCoordinate)
Converts the location of the point from a frame coordinate to a world coordinate.
|
void |
registerModule(ModuleInterface moduleInterface) |
static void |
setModelPerformance(ModelPerformance modelPerformance) |
static void |
setProgress(float progressSeconds)
Set current progress of the replaying session, in seconds.
|
static void |
setVisionEventsListener(VisionEventsListener p)
Listener for
class VisionReplayManager . It's held as a week reference. |
static void |
start()
Start delivering events from
class VisionReplayManager .
When started class VisionReplayManager reads recorded telemetry and video from a session folder supplied to VisionReplayManager.create method.
If class VisionReplayManager was stopped, then VisionReplayManager.start will resume reading the session from the moment it was stopped.
Do NOT call this method more than once or after VisionReplayManager.destroy is called. |
static void |
stop()
Stop delivering events from
class VisionReplayManager .
class VisionReplayManager stops reading telemetry and video of the session.
Do NOT call this method more than once or before VisionReplayManager.start or after VisionReplayManager.destroy is called. |
void |
unregisterModule(ModuleInterface moduleInterface) |
static GeoCoordinate |
worldToGeo(WorldCoordinate worldCoordinate)
Converts the location of the point in a world coordinate to a geographical coordinate.
|
static PixelCoordinate |
worldToPixel(WorldCoordinate worldCoordinate)
Converts the location of the point from a world coordinate to a frame coordinate.
|
registerModule, unregisterModule
public static VisionReplayManager INSTANCE
class VisionReplayManager
is a counterpart of class VisionManager
that uses recorded video and telemetry instead of realtime data.
Use it to debug and test functions that use Vision in a development environment before testing on a road.
Use it in the same workflow you use class VisionManager
after creating it with specific recorded session.
Important : use this class only for debugging purposes. Do NOT use session replay in production application.
Lifecycle of VisionReplayManager :
public static VisionEventsListener getVisionEventsListener()
Listener for class VisionReplayManager
. It's held as a week reference.
class VisionReplayManager
public static void setVisionEventsListener(VisionEventsListener p)
Listener for class VisionReplayManager
. It's held as a week reference.
class VisionReplayManager
public static void create(java.lang.String path)
Fabric method for creating a class VisionReplayManager
instance.
Do NOT call this method more than once.
It's only allowed to have one living instance of class VisionReplayManager
or class VisionManager
.
To create class VisionReplayManager
with a different configuration call VisionReplayManager.destroy
on existing instance or release all references to it.
path
- : Path where session was recorded with VisionManager.startRecording
.class VisionReplayManager
,
class VisionReplayManager
,
class VisionManager
,
class VisionReplayManager
,
VisionReplayManager.destroy
public static void start()
Start delivering events from class VisionReplayManager
.
When started class VisionReplayManager
reads recorded telemetry and video from a session folder supplied to VisionReplayManager.create
method.
If class VisionReplayManager
was stopped, then VisionReplayManager.start
will resume reading the session from the moment it was stopped.
Do NOT call this method more than once or after VisionReplayManager.destroy
is called.
public void attachView$module(VisionView visionView)
public static void stop()
Stop delivering events from class VisionReplayManager
.
class VisionReplayManager
stops reading telemetry and video of the session.
Do NOT call this method more than once or before VisionReplayManager.start
or after VisionReplayManager.destroy
is called.
public static void destroy()
Clean up the state and resources of class VisionReplayManager
.
Do NOT call this method more than once.
class VisionReplayManager
public static void setModelPerformance(ModelPerformance modelPerformance)
public static PixelCoordinate worldToPixel(WorldCoordinate worldCoordinate)
Converts the location of the point from a world coordinate to a frame coordinate.
class PixelCoordinate
if worldCoordinate can be represented in screen coordinates and null otherwisepublic static WorldCoordinate pixelToWorld(PixelCoordinate pixelCoordinate)
Converts the location of the point from a frame coordinate to a world coordinate.
class WorldCoordinate
if pixelCoordinate can be projected on the road and null otherwisepublic static GeoCoordinate worldToGeo(WorldCoordinate worldCoordinate)
Converts the location of the point in a world coordinate to a geographical coordinate.
public static WorldCoordinate geoToWorld(GeoCoordinate geoCoordinate)
Converts the location of the point from a geographical coordinate to a world coordinate.
public static FrameStatistics getFrameStatistics()
public static float getDuration()
Get total duration of the the replaying session, in seconds.
public static float getProgress()
Get current progress of the replaying session, in seconds.
public static void setProgress(float progressSeconds)
Set current progress of the replaying session, in seconds.
public void registerModule(ModuleInterface moduleInterface)
public void unregisterModule(ModuleInterface moduleInterface)