turtlebot3-burger_150.png
turtlebot3-waffle-pi_150.png
turtlebot3-arm_150.png
walking-y2_150.png
turbot3-multi_150.png
turbot3-dl-ros1_150.png
turbot3-ai.png
turbot3-dl-ros2_150.png
turbot3-slam_150.png
turbot3-arm_150.png
turtlebot4-lite_150.png
turtlebot4-pro_150.png
turbot4-dl_150.png
turbot4-ai_150.png
aidriving-racebot_150.png
aidriving-autodrive_150.png
turtlebot-arm_150.png
openmanipulator-x_150.png
Home » Turbot中级教程 » Turbot中级教程-应用-实现全景图功能

Turbot中级教程-应用-实现全景图功能

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号

Turbot中级教程-应用-实现全景图功能

说明

  • 全景演示将展示如何实现令人印象深刻的全景图片。
  • 通过turtlebot_panorama使用pano_ros快照和拼接在一起创建全景图片。

操作步骤

  • [Turbot] 启动机器人
$ roslaunch turbot_bringup minimal.launch

  • [Turbot] 运行panorama.launch
$ roslaunch turbot_apps panorama.launch

  • [Remote PC] 查看生成图像
$ rqt_image_view image:=/turtlebot_panorama/panorama

等机器人旋转拍照完成后,即会生成图像。

  • [Remote PC] 运行旋转拍照程序
$ rosservice call turtlebot_panorama/take_pano 0 360.0 30.0 0.3 

  • 模式:
0 for snap&rotate (i.e. rotate, stop, snapshot, rotate, stop, snapshot, ...)
1 for continuous (i.e. keep rotating while taking snapshots)
2 to stop an ongoing panorama creation 

(360.0)角度

(30.0)创建快照和旋转模式时为角度间隔(度),其他模式为时间间隔(以秒为单位)

(0.3)旋转速度(弧度/秒)

  • [Remote PC] 执行以下命令监控程序的运行进程
$ rostopic echo /rosout |grep msg:


  • [Remote PC] 生成图像会自动保存在主机端的桌面上,可以使用scp命令远程复制到从机端再查看
$ scp ubuntu@192.168.0.14:/home/ubuntu/Desktop/pano.jpg Desktop/


  • 效果图:

请输入图片描述


演示视频

<iframe height=498 width=100% src="//player.bilibili.com/player.html?aid=66601266&cid=115507075&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

参考资料

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号


标签: turbot中级教程