Skip to content

Commit

Permalink
Delete todo navigation.cc
Browse files Browse the repository at this point in the history
Moved the todo to an issue #46
  • Loading branch information
sadanand1120 authored and joydeep-b committed Jan 28, 2023
1 parent 52d8a72 commit 003e824
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/navigation/navigation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@ bool Navigation::GetCarrot(Vector2f& carrot) {
// V2COMP(robot_loc_), V2COMP(v0), V2COMP(v1), (v0 - v1).norm());
const int num_intersections = geometry::CircleLineIntersection<float>(
robot_loc_, params_.carrot_dist, v0, v1, &r0, &r1);
//TODO Bugfix: say set a nav goal -> goal reached -> switched to manual and start moving -> as soon as its gets away from the prev nav target, the following error starts continuously printing. So once nav target reached this following line should not be done.
if (num_intersections == 0) {
fprintf(stderr, "Error obtaining intersections:\n v0: (%f %f), v1: (%f %f), robot_loc_: (%f %f) sq_carrot_dist: (%f) closest_dist: (%f)\n",
v0.x(), v0.y(), v1.x(), v1.y(), robot_loc_.x(), robot_loc_.y(), kSqCarrotDist, closest_dist);
Expand Down

0 comments on commit 003e824

Please sign in to comment.