当前位置:   article > 正文

基于蚁群算法的多车任务层规划算法【C++,ROS】_ros 蚁群算法

ros 蚁群算法

Ant Colony Algorithms for Multi-agent task planning

github源码地址:Ant Colony Algorithms
这是借鉴某人的结果提炼出的基于蚁群算法的多车任务层规划算法,但没有找到原出处,如有是你的,请联系我。

build

catkin_make
  • 1

execute

roscore
rosrun acolanner aco_planner_talker
rosrun acolanner aco_planner_listener
rosrun aco_planner aco_planner_node
  • 1
  • 2
  • 3
  • 4

explanation

(1) aco_planner_talker
publish all the task points that multiple agents need to arrive.

(2) aco_planner_listener
subscribe the result that ant colony algorithms compute.

(3) aco_planner_node
core code to compute the result based on ant colony algorithms.

parameters

the map: (now is a blank map)

m_srcImg = cvLoadImage("src/aco_planner/src/m_planImg.jpg",-1);         //把原始图形读进m_srcImg
  • 1

the task nodes:

std::string full_path = ros::package::getPath("aco_planner") + "/src/Nodes.txt";
  • 1

results

the task points that each agent need to go:
the task points

the planning path for each agent need to go, and different color indicates different agent:
result

while other process files can be found in src/aco_planner/Debug folder.

Thanks

src/aco_planner/Debug folder.

Thanks

Friend fshi2006.

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号