Percpetion constructor without sensorCount
This commit is contained in:
parent
5e057710b4
commit
8e432e4ef9
@ -6,7 +6,7 @@ Perception::Perception() {}
|
||||
|
||||
Perception::Perception(Placement* sensors, unsigned int sensorCount) {
|
||||
this->sensorCount = sensorCount;
|
||||
this->sensorPlacements = sensors;
|
||||
this->sensorPlacements = (Placement*)sensors;
|
||||
}
|
||||
|
||||
void Perception::AddSensors(Placement* things, unsigned int thingCount) {
|
||||
|
@ -10,9 +10,16 @@ class Perception {
|
||||
public:
|
||||
/// @brief Setup perception
|
||||
Perception();
|
||||
|
||||
/// @brief Template to make it possible to leave out ths sensorCount
|
||||
/// @tparam sensorCount
|
||||
/// @param sensors An array of sensor placements
|
||||
template <size_t sensorCount>
|
||||
inline Perception(Placement (&sensors)[sensorCount]) {
|
||||
Perception(sensors, sensorCount);
|
||||
}
|
||||
Perception(Placement* sensors, unsigned int sensorCount);
|
||||
|
||||
// void AddSensors(SensorPlacement* sensors, unsigned int sensorCount);
|
||||
void AddSensors(Placement* sensors, unsigned int sensorCount);
|
||||
|
||||
unsigned int GetSensorCount();
|
||||
|
Loading…
x
Reference in New Issue
Block a user