unreal.MoverTrajectoryPredictor

class unreal.MoverTrajectoryPredictor(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Trajectory predictor that can query from a Mover-driven actor, for use with Pose Search

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: MoverPoseSearchTrajectoryPredictor.h

Editor Properties: (see get_editor_property/set_editor_property)

  • mover_sampling_frame_rate (FrameRate): [Read-Write] Sampling frame rate to query the mover, doesn’t necessarily match the SecondsPerPredictionSample which is used to write to the trajectory This allows sampling of mover at a high frequency for accuracy but then we can downsample the results to a more coarse grained trajectory

get_current_state() -> (out_position=Vector, out_facing=Quat, out_velocity=Vector)

Get Current State

Returns:

out_position (Vector):

out_facing (Quat):

out_velocity (Vector):

Return type:

tuple

get_gravity() Vector

Get Gravity

Returns:

out_gravity_accel (Vector):

Return type:

Vector

get_velocity() Vector

Get Velocity

Returns:

out_velocity (Vector):

Return type:

Vector

property mover_sampling_frame_rate: FrameRate

[Read-Write] Sampling frame rate to query the mover, doesn’t necessarily match the SecondsPerPredictionSample which is used to write to the trajectory This allows sampling of mover at a high frequency for accuracy but then we can downsample the results to a more coarse grained trajectory

Type:

(FrameRate)

predict(num_prediction_samples, seconds_per_prediction_sample, num_history_samples) TransformTrajectory

Predict

Parameters:
  • num_prediction_samples (int32)

  • seconds_per_prediction_sample (float)

  • num_history_samples (int32)

Returns:

out_trajectory (TransformTrajectory):

Return type:

TransformTrajectory

setup(mover_component) None

Setup

Parameters:

mover_component (MoverComponent)