Skip to content

Commit

Permalink
Added target
Browse files Browse the repository at this point in the history
  • Loading branch information
Irreq committed Jul 17, 2024
1 parent ffb8fed commit 4b8d798
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@

#include <mutex>
#include <opencv2/opencv.hpp> // cv::Mat
#include "geometry.h"

inline double drandom() {
return static_cast<double>(rand()) / RAND_MAX;
}

struct Target {
Spherical direction;
float power;
float probability;
};

enum worker_t {

PSO,
Expand Down Expand Up @@ -46,8 +53,11 @@ class Worker {

void loop() {};

std::vector<Target> getTargets() { return tracking;};

protected:
Spherical direction;
std::vector<Target> tracking;
std::mutex lock;
};

Expand Down

0 comments on commit 4b8d798

Please sign in to comment.