Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
ukf-nonlinear-example.vpACSimulator Class Reference

Public Member Functions

 __init__ (self, ColVector X0, ColVector vel, float vel_std)
ColVector update (self, float dt)

Protected Attributes

 _pos = X0
 _vel = vel
 _stdevVel = vel_std

Detailed Description

Class to simulate a flying aircraft.

Definition at line 223 of file ukf-nonlinear-example.py.

Constructor & Destructor Documentation

◆ __init__()

ukf-nonlinear-example.vpACSimulator.__init__ ( self,
ColVector X0,
ColVector vel,
float vel_std )
Construct a new vpACSimulator object.

:param X0: Initial position of the aircraft.
:param vel: Velocity of the aircraft.
:param vel_std: Standard deviation of the variation of the velocity.

Definition at line 228 of file ukf-nonlinear-example.py.

Member Function Documentation

◆ update()

ColVector ukf-nonlinear-example.vpACSimulator.update ( self,
float dt )
Compute the new position of the aircraft after dt seconds have passed
since the last update.

:param dt: Period since the last update.
:return ColVector: The new position of the aircraft.

Definition at line 242 of file ukf-nonlinear-example.py.

References _pos, _stdevVel, and _vel.

Member Data Documentation

◆ _pos

ukf-nonlinear-example.vpACSimulator._pos = X0
protected

Definition at line 236 of file ukf-nonlinear-example.py.

Referenced by update().

◆ _stdevVel

ukf-nonlinear-example.vpACSimulator._stdevVel = vel_std
protected

Definition at line 239 of file ukf-nonlinear-example.py.

Referenced by update().

◆ _vel

ukf-nonlinear-example.vpACSimulator._vel = vel
protected

Definition at line 237 of file ukf-nonlinear-example.py.

Referenced by update().