File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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));
You can’t perform that action at this time.
0 commit comments