.. _scenarioSmallBodyNavUKF: scenarioSmallBodyNavUKF ======================= Overview -------- This scenario demonstrates how to use the ``smallBodyNavUKF()`` for translational state and non-Keplerian gravity acceleration estimation about a small body. In this example, Vesta is chosen (``supportData/LocalGravData/VESTA20H.txt``). However, any small body could be selected as long as the appropriate gravitational parameter is set. In this scenario, :ref:`simpleNav` and :ref:`planetEphemeris` provide measurements to the UKF in the form of :ref:`navTransMsgPayload` and :ref:`ephemerisMsgPayload` input messages. The UKF takes in these measurements at each timestep and updates the state estimate, outputting this state estimate in its own standalone message, a :ref:`smallBodyNavUKFMsgPayload`. .. image:: /_images/static/test_scenarioSmallBodyNavUKF.svg :align: center .. note:: This module is only meant to demonstrate the possibility of estimating non-Keplerian acceleration in a small body environment. Therefore, realistic measurement modules do not exist to support this module, and not every source of uncertainty in the problem is an estimated parameter. The relative position estimate and the estimation error and covariance may be found in the plots below. .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF3.svg :align: center .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF6.svg :align: center The relative velocity estimate and the estimation error and covariance may be found in the plots below. .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF4.svg :align: center .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF7.svg :align: center The non-Keplerian acceleration estimate (inhomogeneous gravity field) and the estimation error and covariance may be found in the plots below. .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF5.svg :align: center .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF8.svg :align: center The spacecraft trajectories as seen from the inertial and asteroid fixed frame may be found in the plots below. .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF1.svg :align: center .. image:: /_images/Scenarios/scenarioSmallBodyNavUKF2.svg :align: center The script is found in the folder ``xmera/examples`` and executed by using:: python3 scenarioSmallBodyNavUKF.py