You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Location: longitudinal_speed_planning.cpp:65, 74
Possible square root of a negative number. target_speed value can overwhelm the equation’s value.
Example
In the example attached below there are two planConstraintsFromJerkAndTimeConstraint invocations. In the first case, there is deceleration and the statement at line 69 provided to std::sqrt evaluates to -7. In the second case, acceleration occurs, and the statement at line 60 evaluates to -5.
Solution
There is no proposed solution as we are not certain what exactly the equations in this undocumented code calculate, but probably some conditions should be added before the calculations to make sure such situations never take place.
The text was updated successfully, but these errors were encountered:
Description
Location: longitudinal_speed_planning.cpp:65, 74
Possible square root of a negative number.
target_speed
value can overwhelm the equation’s value.Example
In the example attached below there are two
planConstraintsFromJerkAndTimeConstraint
invocations. In the first case, there is deceleration and the statement at line 69 provided tostd::sqrt
evaluates to -7. In the second case, acceleration occurs, and the statement at line 60 evaluates to -5.Solution
There is no proposed solution as we are not certain what exactly the equations in this undocumented code calculate, but probably some conditions should be added before the calculations to make sure such situations never take place.
The text was updated successfully, but these errors were encountered: