Skip to content

Commit 5596d80

Browse files
committed
fixes that got rest by a previous pull
1 parent 4dfcb68 commit 5596d80

5 files changed

Lines changed: 3 additions & 3 deletions

File tree

out/include/target.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void Target<corners>::sort(const std::vector<cv::Point_<num_t> >& contour) {
3232
this->points.end(),
3333
[this](const cv::Point2f& a, const cv::Point2f& b) {
3434
this->a = a - this->center;
35-
this->a = b - this->center;
35+
this->b = b - this->center;
3636
return -atan2(this->a.x, this->a.y) < -atan2(this->b.x, this->b.y); // note that x and y are switched -> clockwise
3737
}
3838
);

out/lib3407visionserver.a

0 Bytes
Binary file not shown.

out/vision_program

4 Bytes
Binary file not shown.

src/api/target.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void Target<corners>::sort(const std::vector<cv::Point_<num_t> >& contour) {
3232
this->points.end(),
3333
[this](const cv::Point2f& a, const cv::Point2f& b) {
3434
this->a = a - this->center;
35-
this->a = b - this->center;
35+
this->b = b - this->center;
3636
return -atan2(this->a.x, this->a.y) < -atan2(this->b.x, this->b.y); // note that x and y are switched -> clockwise
3737
}
3838
);

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main(int argc, char* argv[]) {
2929
else { return EXIT_FAILURE; }
3030

3131
VisionServer server(std::move(cameras));
32-
server.runVision<DefaultPipeline, BBoxDemo, TargetSolver<Test6x6, WeightedSubtraction<VThreshold::LED::BLUE> > >(25);
32+
server.runVision<BBoxDemo, SquareTargetPNP, TargetSolver<Test6x6, WeightedSubtraction<VThreshold::LED::BLUE> > >(25);
3333
}
3434

3535
// LIST OF THINGS

0 commit comments

Comments
 (0)