Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. for(const type_transform::BoostVelocity& check_velocity : velocities_of_care)
  2. {
  3. double distance_to_obstacle = 0.0;
  4. type_transform::BoostPosition robot_position_after;
  5. std::tie(distance_to_obstacle, std::ignore, robot_position_after) =
  6. checkDistanceToObstacles(
  7. robot_position, previous_velocity, check_velocity,
  8. obstacles, robot_model
  9. );
  10. will_hit = (distance_to_obstacle <= 0.0);
  11. if(!will_hit) // will not hit
  12. {
  13. best_velocity = check_velocity;
  14. break;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement