# turtlesim_cleaner
This is the code from youtube ROS Tutorial 4 Series.
This is not my own work. This is the code written by following the tutorial from
https://www.youtube.com/playlist?list=PLSzYQGCXRW1HLWHdJ7ehZPA-nn7R9UKPa
Five C++ files. This tutorial demonstrates how to develop a simple cleaning application with turtlesim. It consists in making a coverage a full area like robot cleaners.
1.robot_cleaner_move_rotate.cpp for the tutorial https://youtu.be/PGZMlzBlMmw?list=PLSzYQGCXRW1HLWHdJ7ehZPA-nn7R9UKPa
2.robot_cleaner_abs_orientation.cpp for the tutorial https://youtu.be/Ddqwq2WXFEk?list=PLSzYQGCXRW1HLWHdJ7ehZPA-nn7R9UKPa
3.robot_cleaner_move_to_goal.cpp for the tutorial https://youtu.be/Qh15Nol5htM?list=PLSzYQGCXRW1HLWHdJ7ehZPA-nn7R9UKPa
![alt tag](https://cloud.githubusercontent.com/assets/5270999/10780413/2861cd9a-7d63-11e5-99d0-351f45de5c56.png)
4.robot_cleaner_grid_clean.cpp
![alt tag](https://cloud.githubusercontent.com/assets/5270999/10780419/349f898a-7d63-11e5-88b9-770248e8cd24.png)
and
5.robot_cleaner_spiral_clean.cpp for the tutorial https://youtu.be/ehH8oLfsz-w?list=PLSzYQGCXRW1HLWHdJ7ehZPA-nn7R9UKPa
![alt tag](https://cloud.githubusercontent.com/assets/5270999/10780420/39414168-7d63-11e5-861c-c566d83e5a84.png)
Create a package by
```
cd catkin_ws/src
catkin_create_pkg turtlesim_cleaner
cd catkin_ws
catkin_make
```
Now, go to
```
cd ~/catkin_ws/src/turtlesim_cleaner
mkdir src
```
Go to this diectory in File Explorer and create a new file named robot_cleaner.cpp
Copy the code of the tutorial you want from the repository and paste it in the robot_cleaner.cpp
Replace your CMakeList.txt and package.xml file with the files in the repo.
To run the Demo:
```
roscore //ROS Master
rosrun turtlesim turtlesim_node //turtlesim
rosrun turtlesim_cleaner robot_cleaner_node
```
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于turtlesim小乌龟实现的ROS 扫地机器人路径覆盖算法,及差速控制。 使用方法: 1、下载源码 cd catkin_ws/src catkin_create_pkg turtlesim_cleaner cd catkin_ws catkin_make 2、运行 roscore //ROS Master rosrun turtlesim turtlesim_node //turtlesim rosrun turtlesim_cleaner robot_cleaner_node
资源推荐
资源详情
资源评论
收起资源包目录
turtlesim_cleaner.rar (81个子文件)
turtlesim_cleaner
.git
index 784B
hooks
pre-push.sample 1KB
prepare-commit-msg.sample 1KB
applypatch-msg.sample 452B
pre-commit.sample 2KB
pre-applypatch.sample 398B
commit-msg.sample 896B
pre-rebase.sample 5KB
update.sample 4KB
post-update.sample 189B
config 268B
description 73B
refs
tags
heads
master 41B
remotes
origin
HEAD 32B
branches
logs
refs
heads
master 186B
remotes
origin
HEAD 186B
HEAD 186B
packed-refs 107B
objects
13
a5a9b2defcc91c2be1c469e50d4d16c5127773 633B
12
cbbf615b43ff748f4e283b21da3568bf77760d 156B
74
d8429ca054768bdfc27452ee44bd410aafab38 3KB
c1
ff9ac1783b627708f4b08251b61b74b9501e56 163B
3d
bef0656ccdeff6447ad3251556c1f29ba2c526 122B
fc
f12d0e54eef9ecd7f9c3e3de57d2461ca83751 564B
36
331d2bd43f315bda48280275fb625ad66e2c1c 2KB
60
482326b965d6ff46ab4c710db5f8b78d3f7837 2KB
90
ddc59785899e949dcdb8ee58d5dfbe8ccddb2d 156B
ec
a438c5587a3953bdb348412749706c4c5c2749 189B
045ac8ebdc27046a834241e823652cd9aa616b 170B
46
f80ec4b976efb985f19654a66724bdda680ec2 54B
4b
899250c90fbc2e712251c843292f4f4811c175 1KB
a7
d6b16f12e50356099ef76453ed05627a19a766 119B
e0
e24a949f2d401441bd30fd72662e18799dc3b5 2KB
bb
78e2a379ca7e7cca663685f8013213bc40b631 121B
f649c0a0e2af28b8ab88ab9c202df86327d7a4 156B
be
6288160291f1e7a55a9d17b390242b84afe824 157B
07
8de8c0f587a07d9969e2daaee5bca38a3321cd 121B
70
c37c42deceb715876880052fc46d62531bd123 125B
48
d4b9100aeea6c97ff73bb00359f39141e933c5 162B
3e
933961168c54524db7d45a6ea02bcca8207e6e 173B
074d1fe851dbfbced15435d3d642c2f8295200 2KB
a8
b50e9894c73a10e33305964089c40395fcb14f 157B
ca
e8327b7958797ab07ebd0d8781f487495a665b 840B
f9
3e9f7855413e1bb21b7e6a765b9fc351a31d9f 159B
2a
c7271b53fccfee607d870b7f0182804b1ca8cc 203B
86
65feb452cabd238a547f355706193ae940f46a 224B
ea
9c31ac0741a06f9e014d065581b14a197a7afe 173B
d6
0c35ce9dd78daee2996ceaf3700ba9e0109b49 157B
info
68
c33e61c71c125b28b666e3eb4333e34266bf50 122B
f0
cdeb5b7f1a1ac7768bb6bb538de819805fe937 83B
7a
05885d23b48fed2e4754caa8abfd4ed7765bef 2KB
39
992afd6773521f8ef2e5340e8b4b1dbe4e10df 199B
2e
1cacf93903d0ba0f98716a61531cddb629661a 156B
85
976b886b88b5e75a8e110865a17c175a954038 91B
55
d0124e4c3d2fceb075356c23481c84c7c2b685 176B
95
32f24d8af37b3c333176f8aa324950ad7b9c4d 121B
pack
dc
1abecc8e924ec3ea8f48d7b222f8c398382ff5 174B
18
1a4edc8d06abeb1bb4b2e93f0142bcbbfbbb75 391B
41
74ede24becabe7e0de640e47cafdca065ab966 54B
38
a26368cb368cde4a803fc66811fa7f0d8fcccd 804B
ff
73b0e6c84df58709918176b7142cfd527cb304 75B
99
10bc0f2e128f3db8fc18e97785dbc06347101e 156B
7d
b03f386f2d7c388029b68b0e4e52b3d601e852 194B
26
8ec99255f0f72bd2451a7407bfdde7bbde4a68 157B
7b
ecdc4f777ad4a3fe4903f696a519c1dcb246e6 163B
4a
bcba3372ae28a29548f8766570712a8ddac0aa 162B
3b
e8cc572bed2f503945f88c905a7c86b4cf258d 836B
e3
ee0ea66946d04e4abc5516f63643c8f3573f83 834B
e8
fc34531e242efee79bd16861adf4e061de7a15 837B
73
93eb0827d77a737cb534fc58e637fe0566c9ba 2KB
30
bfe5abd3c387474b7005453045de1f67327b0c 2KB
info
exclude 240B
HEAD 23B
src
robot_cleaner_move_rotate.cpp 3KB
robot_cleaner_spiral_clean.cpp 8KB
robot_cleaner_abs_orientation.cpp 5KB
robot_cleaner_grid_clean.cpp 8KB
robot_cleaner_move_to_goal.cpp 6KB
CMakeLists.txt 6KB
README.md 2KB
package.xml 2KB
共 81 条
- 1
资源评论
- zhengyongfei2021-09-18垃圾,这也叫算法,根本连规划都不是
- 卖女票的小冬青2021-09-04啊跑不起来
baosheng123
- 粉丝: 5
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功