Skip to content

Commit

Permalink
Fix Segmentation fault at velocity_set by asynchronous base_waypoints…
Browse files Browse the repository at this point in the history
… and closest_waypoint (#2152) (#2272)

Signed-off-by: Kenji Funaoka <kfunaoka@gmail.com>
  • Loading branch information
kfunaoka authored and sgermanserrano committed May 21, 2019
1 parent ee08fad commit 2ca4f89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ int main(int argc, char** argv)
if (crosswalk.loaded_all && !crosswalk.set_points)
crosswalk.setCrossWalkPoints();

if (!vs_info.getSetPose() || !vs_path.getSetPath())
if (!vs_info.getSetPose() || !vs_path.getSetPath() || vs_path.getPrevWaypointsSize() == 0)
{
loop_rate.sleep();
continue;
Expand Down

0 comments on commit 2ca4f89

Please sign in to comment.