PT229-DWA-----计算机学习实战.pptxVIP

  • 4
  • 0
  • 约1.02千字
  • 约 17页
  • 2021-07-06 发布于江苏
  • 举报
机器人学在Python中的实现(13): Dynamic Window Approach;引言;DWA的原理;运动模型;运动模型;模型二;速度采样;1. 移动机器人自身可达到的最大速度与最小速度;评价函数;def calc_to_goal_cost(traj, goal, config): # calc to goal cost. It is 2D norm. dy = goal[0] - traj[-1, 0]#recent_update_position dx = goal[1] - traj[-1, 1]#recent_update_position goal_dis = math.sqrt(dx**2 + dy**2) cost = config.to_goal_cost_gain * goal_dis return cost;def calc_obstacle_cost(traj, ob, config): # calc obstacle cost inf: collistion, 0:free skip_n = 2 minr = float(inf) for ii in range(0, len(traj[:, 1]), skip_n): for i in range(len

文档评论(0)

1亿VIP精品文档

相关文档