赞
踩
源码链接:gihub遗传算法
使用方法:
一.、插件教程【YouTube视频,创客智造】
二、 ROS导航结构分析【ROS navigation】
三、 GA算法包使用说明【google code】
编译和运行 Genetic Algorithm planner
注意:首先将ga下的src文件夹改名为ipath
$ make
int numberOfScenarios = 2; // the number of the scenarios (start and goal positions) int numberOfruns = 10; // how many times you want to repeat each scenario // GA parameters int numberOfIterations = 15; uint populationSize = 15; int crossoverType = 1; // 1: one point, 2: two point, 3: modified. float crossoverProbability = 0.9; float mutationProbability = 0.01; int mutationIterationNumber = 50; float minInitialPathCost = 0; int radius = 2;
$ make
$ ./main
script -f output.txt
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。