Skip to content

Commit

Permalink
jacobian not nan
Browse files Browse the repository at this point in the history
  • Loading branch information
sanatd33 committed Feb 26, 2025
1 parent 0729903 commit d0ec3e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soccer/src/soccer/planning/primitives/angle_planning.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ inline AngleFunction face_point(const rj_geometry::Point point) {
Eigen::Vector2d* jacobian) -> double {

if ((instant.position - point).mag() < kRobotRadius) {
if (jacobian != nullptr) {
*jacobian = Eigen::Vector2d::Zero();
}
return previous_angle;
}

Expand Down

0 comments on commit d0ec3e8

Please sign in to comment.