Skip to content

Commit

Permalink
Merge pull request #70 from open-rdc/add_#69
Browse files Browse the repository at this point in the history
Add #69
  • Loading branch information
Nasupl authored Nov 3, 2017
2 parents 11e289e + df4b4c9 commit f6b5f52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fulanghua_waypoints_nav/src/waypoints_nav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ class WaypointsNavigation{
}

startNavigationGL(*current_waypoint_);
int resend_goal = 0;
double start_nav_time = ros::Time::now().toSec();
while(!onNavigationPoint(current_waypoint_->position, dist_err_)) {
if(!has_activate_)
Expand All @@ -374,6 +375,12 @@ class WaypointsNavigation{
std_srvs::Empty empty;
clear_costmaps_srv_.call(empty);
startNavigationGL(*current_waypoint_);
resend_goal++;
if(resend_goal == 3) {
ROS_WARN("Skip waypoint.");
current_waypoint_++;
startNavigationGL(*current_waypoint_);
}
start_nav_time = time;
}
sleep();
Expand Down

0 comments on commit f6b5f52

Please sign in to comment.