ROS(indigo)机器人操作系统学习有趣丰富的Gazebo仿真示例evarobot
一直在寻找一个示例可以将ROS学习中常用的基础内容大部分都包含进去,最好还包括Gazebo仿真,
这样即使没有硬件设备,也可以很好的学习ROS相关内容,但又必须有对应的硬件,便于后续研究。
这里,介绍一款意外发现的ROS的robot示例----evarobot----
官方教程网址:http://wiki.ros.org/Robots/evarobot
仿真源码网址:https://github.com/inomuh/evarobot_simulator
下面进入正文:
ROS(indigo)机器人操作系统Gazebo仿真示例evarobot
1. 基本安装和编译
下载功能包后,在catkin_ws中进行编译,一切ok,就可以使用这个功能包了。
~/catkin_ws$ catkin_make
有可能遇到一些问题,可能需要下面命令:
~/catkin_ws$ source devel/setup.bash
~/catkin_ws$ rosdep install --from-path src/ -y -i
~/catkin_ws$ rosstack profile & rospack profile
2. 示例使用
上面步骤完成后,就可以复习常用的ROS命令:
~$ rosstack find evarobot_simulator
/home/exbot/catkin_ws/src/evarobot_simulator/evarobot_simulator
exbot@relay-Aspire-4741:~$ rospack find evarobot_gazebo
/home/exbot/catkin_ws/src/evarobot_simulator/evarobot_gazebo
exbot@relay-Aspire-4741:~$ rosls evarobot_gazebo
cfg CMakeLists.txt launch map src
CHANGELOG.rst include LICENSE package.xml worlds
其他还有roscd等,不一一列举。在终端运行:
~$ roslaunch evarobot_gazebo evarobot.launch
~$ rosnode list
/gazebo
/joint_state_publisher
/robot_state_publisher
/rosout
/twist_marker_server
~$ rostopic list
/camera/depth/camera_info
/camera/depth/image_raw
/camera/depth/points
/camera/parameter_descriptions
/camera/parameter_updates
/camera/rgb/camera_info
/camera/rgb/image_raw
/camera/rgb/image_raw/compressed
/camera/rgb/image_raw/compressed/parameter_descriptions
/camera/rgb/image_raw/compressed/parameter_updates
/camera/rgb/image_raw/compressedDepth
/camera/rgb/image_raw/compressedDepth/parameter_descriptions
/camera/rgb/image_raw/compressedDepth/parameter_updates
/camera/rgb/image_raw/theora
/camera/rgb/image_raw/theora/parameter_descriptions
/camera/rgb/image_raw/theora/parameter_updates
/clock
/cmd_vel
/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/sensor/Bumper
/gazebo/set_link_state
/gazebo/set_model_state
/imu
/ir0
/ir0/parameter_descriptions
/ir0/parameter_updates
/ir1
/ir1/parameter_descriptions
/ir1/parameter_updates
/ir2
/ir2/parameter_descriptions
/ir2/parameter_updates
/ir3
/ir3/parameter_descriptions
/ir3/parameter_updates
/joint_states
/lidar
/odom
/rosout
/rosout_agg
/sonar0
/sonar0/parameter_descriptions
/sonar0/parameter_updates
/sonar1
/sonar1/parameter_descriptions
/sonar1/parameter_updates
/sonar2
/sonar2/parameter_descriptions
/sonar2/parameter_updates
/sonar3
/sonar3/parameter_descriptions
/sonar3/parameter_updates
/sonar4
/sonar4/parameter_descriptions
/sonar4/parameter_updates
/sonar5
/sonar5/parameter_descriptions
/sonar5/parameter_updates
/sonar6
/sonar6/parameter_descriptions
/sonar6/parameter_updates
/tf
/tf_static
/twist_marker_server/feedback
/twist_marker_server/update
/twist_marker_server/update_full
~$ rosrun rqt_reconfigure rqt_reconfigure
~$ rviz
~$ rosrun rqt_graph rqt_graph
~$ rosrun rqt_console rqt_console
~$ rosrun rqt_plot rqt_plot /cmd_vel
在Gazebo环境中加入一些物体:
$ rosrun rqt_image_view rqt_image_view
可以使用键盘,手柄或手机遥控gazebo中的机器人运动,观察各类传感器数据的变化。
也可以在虚拟仿真环境中,测试各类图像算法等,构建自己的3D模型等,这里不再赘述。
如果想要查看点云,可以通过rviz:
3. SLAM示例
~$ roslaunch evarobot_gazebo evarobot.launch world_path:=$(rospack find evarobot_gazebo)/worlds/UPlat.sdf
~$ roslaunch evarobot_slam gazebo_slam.launch
~$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
~$ roslaunch evarobot_viz view_evarobot.launch
~$ rosrun map_server map_saver -f $(rospack find evarobot_slam)/gazebo_map/map
4. 导航
~$ roslaunch evarobot_navigation gazebo_navigation.launch world_path:=$(rospack find evarobot_gazebo)/worlds/UPlat.sdf
遇到点小问题,还未解决。
-End-
ROS(indigo)机器人操作系统学习有趣丰富的Gazebo仿真示例evarobot的更多相关文章
- ROS(indigo)机器人操作系统学习资料和常用功能包汇总整理(ubuntu14.04LTS)
ROS(indigo)机器人操作系统学习资料和常用功能包汇总整理(ubuntu14.04LTS) 1. 网站资源: ROSwiki官网:http://wiki.ros.org/cn GitHub ...
- Ubuntu 16.04 + ROS Kinetic 机器人操作系统学习镜像分享与使用安装说明
Ubuntu 16.04 + ROS Kinetic 镜像分享与使用安装说明 内容概要:1 网盘文件介绍 2 镜像制作 3 系统使用与安装 ---- 祝ROS爱好者和开发者新年快乐:-) ---- ...
- ROS + Caffe 机器人操作系统框架和深度学习框架笔记 (機器人控制與人工智能)
ROS + Caffe,这里以环境中物体识别为示例,机器人怎么知道环境里面有什么呢? [0.0567392 - n03376595 folding chair][0.0566773 - n040999 ...
- 快速了解 Robot Operating System(ROS) 机器人操作系统
http://www.ros.org/ 关于ROS About ROS http://www.ros.org/about-ros/ 机器人操作系统(ROS)是用于编写机器人软件的灵活框架.目的在简化 ...
- ROS(indigo) turtlebot2 + android一些有趣应用
ROS和Android配合使用非常有趣,这里推荐,ROSClinet,使用rosbridge让android和ROS通信: 具体参考奥斯卡的个人剧场:http://xxhong.net/ turtle ...
- ROS(indigo) 安装和使用更新版本的Gazebo----3,4,5,6,7 附:中国机器人大赛中型组仿真比赛说明
ROS(indigo) 安装和使用更新版本的Gazebo,本文以7为例. Gazebo7支持更多新的功能,如果使用下面命令安装ROS(indigo): ~$ sudo apt-get install ...
- 机器人操作系统 除了Android还有一个ROS(转)
你知道市面上的机器人都采用了哪些操作系统吗? 估计大多数人给出的答案就是 Android 了.从市面上的产品来看,基于 Android 系统开发的机器人确实是主流,但是还有一种操作系统却鲜为人知,它叫 ...
- ROS探索总结(六)——使用smartcar进行仿真
转自:https://www.ncnynl.com/archives/201609/843.html 总结: 一.机器人描述文件三个: 机器人主体body文件: gazebo属性文件: 主文件 sma ...
- 机器人操作系统ROS Indigo 入门学习(1)——安装ROS Indigo【转】
转自:http://blog.csdn.net/bobsweetie/article/details/43638761 Ubuntu14.04安装ROS Indigo 一.安装ROS 1.1配置Ubu ...
随机推荐
- 一个页面从输入url到页面加载显示完成,中间都经历了什么
第一种解释: 一般会经历以下几个过程: 1.首先,在浏览器地址栏中输入url 2.浏览器先查看浏览器缓存-系统缓存-路由器缓存,如果缓存中有,会直接在屏幕中显示页面内容.若没有,则跳到第三步操作. 3 ...
- machine learning 之 Neural Network 1
整理自Andrew Ng的machine learning课程week 4. 目录: 为什么要用神经网络 神经网络的模型表示 1 神经网络的模型表示 2 实例1 实例2 多分类问题 1.为什么要用神经 ...
- Luxurious Houses
The capital of Berland has n multifloor buildings. The architect who built up the capital was very c ...
- 实验与作业(Python)-02 Python函数入门与温度转换程序
截止日期 实验目标 学会定义函数,使用函数.学会导入在某个文件中定义的函数. input获得值,然后通过eval或者int.float将其转换为相应的类型. 学会使用列表:访问列表.append.遍历 ...
- Linux 虚存 linux2.6内核特性
一.大型页面的支持 当代计算机体系结构大都支持多种页面大小,例如,IA-32体系结构支持4KB或4MB的页面, Linux操作系统只是将大型页面用于映射实际的内核映像.大型页面的使用主要是为了改进高性 ...
- 利用github webhook 结合openresty自动更新静态博客
使用hexo在github pages上弄了一个静态博客,后来觉得访问有点慢,于是放到自己vps上. 对于静态博客的部署非常简单,本来就是html,js,css等静态文件,只要nginx上配置下目录就 ...
- linux下安装apache(httpd-2.4.3版本)各种坑
博主的linux是ubuntu 14.04.3. 在安装apache最新版httpd-2.4.3的时候遇到各种坑. 先提供安装apache httpd-2.4.3所需要的包,博主已经整理好,下载地址: ...
- Gradle 1.12用户指南翻译——第四十五章. 应用程序插件
本文由CSDN博客貌似掉线翻译,其他章节的翻译请参见: http://blog.csdn.net/column/details/gradle-translation.html 翻译项目请关注Githu ...
- TV Metro界面(仿泰捷视频TV版)源码解析
转载请把头部出处链接和尾部二维码一起转载,本文出自逆流的鱼yuiop:http://blog.csdn.net/hejjunlin/article/details/52822499 前言:上一篇介绍了 ...
- Unity UGUI实现分段式血条
我们可以看到像英雄联盟等游戏里英雄头顶的血条显示并非是纯色的,而是根据血量的多少而显示一定量的格子,这种方式明显是比较友好.比较美观的,事实上我们的游戏里面也想实现这样的效果,那该怎么办呢?根据血量的 ...