Combination#

Note

Deprecated for navground>=0.5

Use a sequence of sensors instead.

For instance, replace

navground::sim::Agent agent;
auto se = std::make_shared<navground::sim::SensorCombination>();
agent.set_state_estimation(se);
std::vector<std::shared_ptr<navground::sim::Sensor>>sensors = ...;
se.sensors.set_sensors(sensors);

with

navground::sim::Agent agent;
std::vector<std::shared_ptr<navground::sim::Sensor>>sensors = ...;
agent.set_state_estimations(sensors);
#include "navground/sim/state_estimations/sensor_combination.h"
struct SensorCombination : public navground::sim::Sensor#

A combination of sensors.

Public Functions

inline explicit SensorCombination(const std::vector<std::shared_ptr<Sensor>> &sensors = {})#

Constructs a new instance.

Parameters:

sensors[in] The sensors to use

inline void set_sensors(const std::vector<std::shared_ptr<Sensor>> &value)#

Sets the sensors to use.

Parameters:

value[in] The new value

inline const std::vector<std::shared_ptr<Sensor>> &get_sensors() const#

Gets the used sensors.

Returns:

The sensors