$darkmode
noisy_object_sensor.cpp File Reference
#include <Eigen/Geometry>
#include <memory>
#include <random>
#include <string>
#include <cloe/component.hpp>
#include <cloe/component/frustum.hpp>
#include <cloe/component/object.hpp>
#include <cloe/component/object_sensor.hpp>
#include <cloe/conf/action.hpp>
#include <cloe/plugin.hpp>
#include <cloe/registrar.hpp>
#include <cloe/sync.hpp>
#include <cloe/trigger/set_action.hpp>
#include "noise_data.hpp"
Include dependency graph for noisy_object_sensor.cpp:

Enumerations

enum class  ObjectField { Translation , Velocity , Acceleration }
 

Functions

 cloe::ENUM_SERIALIZATION (ObjectField,({ {ObjectField::Translation, "translation"}, {ObjectField::Velocity, "velocity"}, {ObjectField::Acceleration, "acceleration"}, })) namespace component
 

Function Documentation

◆ ENUM_SERIALIZATION()

cloe::ENUM_SERIALIZATION ( ObjectField  ,
({ {ObjectField::Translation, "translation"}, {ObjectField::Velocity, "velocity"}, {ObjectField::Acceleration, "acceleration"},})   
)

Add noise to target parameter.

Set the appropriate target function.

List of noisy object parameters.

Process the underlying sensor and clear the cache.

We could process and create the filtered list of objects now, but we can also delay it (lazy computation) and only do it when absolutely necessary. This comes at the minor cost of checking whether cached_ is true every time sensed_objects() is called.