資源簡介
移動機(jī)器人項目組任務(wù)安排表
Day 01
上午
1.gmapping參數(shù)配置(李超)
2.總體launch文件的編寫(鐘浩)
3.機(jī)器人tf,狀態(tài),濾波器launch文件的編寫(李博)
4.移動機(jī)器人調(diào)試(李超,鐘浩,李博)
5.完成gmapping建圖修圖(李超,鐘浩,李博)
下午
1.move_base參數(shù)配置(李超,鐘浩)
2.amcl參數(shù)配置(李博)
3.調(diào)試機(jī)器人導(dǎo)航參數(shù)(李超,鐘浩,李博)
4.在rviz中完成機(jī)器人單點導(dǎo)航(李超,鐘浩)
5.記錄多個導(dǎo)航目標(biāo)點(李超,鐘浩)
6.查閱隨機(jī)循環(huán)導(dǎo)航函數(shù)的資料(李博)
7.完成隨機(jī)循環(huán)導(dǎo)航功能節(jié)點函數(shù)(李超,鐘浩,李博)
8.完成隨機(jī)循環(huán)導(dǎo)航功能測試(李超,鐘浩,李博)
里程碑事件:
1.完成gmapping建圖修圖
2.調(diào)試機(jī)器人導(dǎo)航參數(shù)
3.完成隨機(jī)循環(huán)導(dǎo)航功能測試
Day 02
上午
1.完成循環(huán)導(dǎo)航代碼的編寫(李超,鐘浩,李博)
2.調(diào)試循環(huán)導(dǎo)航功能(李超,鐘浩,李博)
下午
1.完成自主探索建圖代碼的編寫(李超,鐘浩,李博)
2.調(diào)試自主探索功能(李超,鐘浩,李博)
3.優(yōu)化自主探索功能代碼(李超,鐘浩,李博)
Day 03
上午
1.完成初始化位姿功能
2.完成里程計清零功能
下午
1.完成可設(shè)置循環(huán)次數(shù)導(dǎo)航功能
2.調(diào)試初始化位姿,里程計清零,循環(huán)導(dǎo)航功能
Day 04
上午
1.完成單點設(shè)定導(dǎo)航插件
下午
1.完善單點設(shè)定導(dǎo)航插件
2.調(diào)試單點設(shè)定導(dǎo)航插件功能
Day 05
上午
1.完成多導(dǎo)航點記錄插件
2.完成多點循環(huán)導(dǎo)航節(jié)點
下午
1.完成多點循環(huán)導(dǎo)航插件
2.調(diào)試多點循環(huán)導(dǎo)航插件功能
Day 06
上午
1.查找關(guān)于巡墻算法的解決方案
2.完成rrt_exploration(快速隨機(jī)搜索樹)的下載和demo測試
下午
1.修改rrt_exploration接口
Day 07
上午
1.修改rrt_exploration接口
下午
1.修改rrt_exploration接口
Day 08
上午
1.在仿真機(jī)器人上完成快速隨機(jī)搜索樹自主探索建圖功能
2.優(yōu)化導(dǎo)航UI界面
下午
1.在真實機(jī)器人上完成快速隨機(jī)搜索樹自主探索建圖功能
2.優(yōu)化導(dǎo)航UI界面
Day 09
上午
1.分別完成導(dǎo)航和自主建圖的move_base參數(shù)的配置
下午
1.完成rviz中marker標(biāo)記
Day 10
上午
1.將marker功能添加到真實機(jī)器人上,并完成各項參數(shù)優(yōu)化。
下午
1.完成代碼整理,說明文檔撰寫。

代碼片段和文件信息
//代碼說明:接收循環(huán)次數(shù)和多個導(dǎo)航點,對數(shù)據(jù)進(jìn)行處理,循環(huán)發(fā)布導(dǎo)航點至move_base
//需要的頭文件
#include?
#include?se_msgs/MovebaseAction.h>
#include?
#include?
#include?
//定義一個vector用以接收多個導(dǎo)航點
std::vector?pose_list;
//聲明循環(huán)次數(shù)和多導(dǎo)航點的接收者
ros::Subscriber?vec_sub;
ros::Subscriber?tim_sub;
//聲明循環(huán)次數(shù),導(dǎo)航目標(biāo)個數(shù),循環(huán)需要的中間值
int?Cycle_timesGoals_numcount?=?0;
//接收循環(huán)次數(shù)
void?timcallback(const?std_msgs::Int8::ConstPtr&?msg)
{
Cycle_times?=?msg->data.c_str();
}
//接收導(dǎo)航點數(shù)組,循環(huán)發(fā)布導(dǎo)航點到move_base
void?callback(const?geometry_msgs::PoseArray::ConstPtr&?pose_array)
{
//取得導(dǎo)航點個數(shù)
Goals_num?=?pose_array->poses.size();
//存入多個導(dǎo)航點
for(int?i?=0;i {
pose_list.push_back(pose_array->poses[i]);
}
actionlib::SimpleActionClientse_msgs::MovebaseAction>?cycle_client(“move_base“true);
ROS_INFO(“Waiting?for?move_base?action?server...“);
if(!cycle_client.waitForServer(ros::Duration(60)))
{
ROS_INFO(“Can‘t?connected?to?move?base?server“);
}
ROS_INFO(“Connected?to?move?base?server“);
ROS_INFO(“Starting?navigation?“);
ROS_INFO(“cycle?times?is?%d“Cycle_times);
ROS_INFO(“cycle?goals?is?%d“Goals_num);
//多次循環(huán)
for?(int?i?=0?;?i {
//循環(huán)一次所發(fā)布的多個導(dǎo)航點
while(count? {
move_base_msgs::MovebaseGoal?goal;
goal.target_pose.header.frame_id?=?“map“;
goal.target_pose.header.stamp?=?ros::Time::now();
goal.target_pose.pose?=?pose_list[count];
cycle_client.sendGoal(goal);
//60S內(nèi)如果不能達(dá)到目標(biāo)點則放棄該目標(biāo)點
bool?finished_within_time?=?cycle_client.waitForResult(ros::Duration(60));
if(!finished_within_time)
{
cycle_client.cancelGoal();
ROS_INFO(“Timed?out?achieving?goal“);
}
else
{
//導(dǎo)航成功
if(cycle_client.getState()?==?actionlib::SimpleClientGoalState::SUCCEEDED)
{
ROS_INFO(“Goal?%d?succeeded!“count+1);
}
//導(dǎo)航失敗
else
{
ROS_INFO(“move?plan?is?error“);
}
}
count?+=?1;
}
count?=?0;
}
//導(dǎo)航結(jié)束,清空存放多個導(dǎo)航點的vector
ROS_INFO(“The?Cycle?Goals?is?over“);
pose_list.clear();
}
int?main(int?argcchar**?argv)
{
//初始化并設(shè)置節(jié)點名
ros::init(argcargv“cycle_nav“);
//創(chuàng)建句柄
ros::NodeHandle?n;
ROS_INFO(“Cycle_nav?is?start...“);
//定義循環(huán)次數(shù)的接收者
tim_sub?=?n.subscribe(“Cycle_times“5timcallback);
//定義多導(dǎo)航點的接受者
vec_sub?=?n.subscribe(“Nav_PoseArray“5callback);
//循環(huán)等待回調(diào)函數(shù)
ros::spin();
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-09-10?05:52??最新版完美代碼加解釋\
?????文件?????????932??2018-08-24?07:29??最新版完美代碼加解釋\移動機(jī)器人的項目理解.txt
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\
?????文件????????2235??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\CMakeLists.txt
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\cfg\
?????文件????????1189??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\cfg\Depth.cfg
?????文件?????????353??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\nodelets.xm
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\
?????文件????????1879??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\index
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\info\
?????文件?????????240??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\info\exclude
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\
?????文件?????????189??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\post-update.sample
?????文件????????4898??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\pre-reba
?????文件????????1642??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\pre-commit.sample
?????文件????????1348??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\pre-push.sample
?????文件????????3610??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\update.sample
?????文件?????????896??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\commit-msg.sample
?????文件????????1239??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\prepare-commit-msg.sample
?????文件?????????424??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\pre-applypatch.sample
?????文件?????????478??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\hooks\applypatch-msg.sample
?????文件??????????73??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\desc
?????文件?????????298??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\config
?????文件??????????29??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\HEAD
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\
?????文件?????????214??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\HEAD
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\refs\
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\refs\heads\
?????文件?????????214??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\refs\heads\indigo-devel
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\refs\remotes\
?????目錄???????????0??2018-08-14?08:02??最新版完美代碼加解釋\depthimage_to_laserscan\.git\logs\refs\remotes\origin\
............此處省略252個文件信息
評論
共有 條評論