Skip to content

Commit 1fb6c7e

Browse files
committed
commit fix
1 parent ab390d6 commit 1fb6c7e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/backend.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ std::optional<nav_msgs::msg::Path> backend::create_path(std::vector<cv::Point2d>
1414
image_geometry::PinholeCameraModel& camera_info,
1515
std::string frame_id) {
1616
// take in contours
17-
// DO NOT THE Polynomials
18-
// Match the pointd...
19-
// shortest side first larger side second.
20-
// returns coefficients
21-
// polyfit::FitPolynomial();
17+
// adjust to real space
18+
// apply the offset
19+
// stay winning!
2220

2321
// std::string_view is a string lol
2422
std::vector<cv::Point2d> ground_path; // this is the vector of path plannign points in cart space
@@ -44,7 +42,7 @@ std::optional<nav_msgs::msg::Path> backend::create_path(std::vector<cv::Point2d>
4442

4543
for (int i = 0; i < bigger_array.size(); i++) {
4644
double x = bigger_array[i].x;
47-
double y = bigger_array[i].y - 1.80;
45+
double y = bigger_array[i].y - 1.80; // the bullshit translation
4846

4947

5048
cam_path.push_back(cv::Point2d(x, y));

0 commit comments

Comments
 (0)