安装arbotix simulator仿真环境--9
原创博客:转载请表明出处:http://www.cnblogs.com/zxouxuewei/ 周学伟
安装之前:首先确保已经正常制作了ros工作空间并且安装了rbx1功能包:
cd ~/catkin_ws/src
git clone https://github.com/pirobot/rbx1.git
cd rbx1
git checkout indigo-devel
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
rospack profile
1.安装simulator
sudo apt-get install ros-indigo-arbotix-*
注意:一定要删除任何早期版本的arbotix依赖。
rospack profile
2. 为了确保一切工作,确保roscore运行,然后启动模拟turtlebot如下
roslaunch rbx1_bringup fake_turtlebot.launch
输出信息如下:
.. logging to /root/.ros/log/c0433730-e414-11e5-8d90-c48e8f5baa47/roslaunch-zxwubuntu-Aspire-V3-572G-.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB. started roslaunch server http://zxwubuntu-Aspire-V3-572G:56323/ SUMMARY
======== CLEAR PARAMETERS
* /arbotix/ PARAMETERS
* /arbotix/baud:
* /arbotix/controllers/base_controller/Kd:
* /arbotix/controllers/base_controller/Ki:
* /arbotix/controllers/base_controller/Ko:
* /arbotix/controllers/base_controller/Kp:
* /arbotix/controllers/base_controller/accel_limit: 1.0
* /arbotix/controllers/base_controller/base_frame_id: base_footprint
* /arbotix/controllers/base_controller/base_width: 0.26
* /arbotix/controllers/base_controller/ticks_meter:
* /arbotix/controllers/base_controller/type: diff_controller
* /arbotix/port: /dev/ttyUSB0
* /arbotix/rate:
* /arbotix/read_rate:
* /arbotix/sim: True
* /arbotix/sync_read: True
* /arbotix/sync_write: True
* /arbotix/write_rate:
* /robot_description: <?xml version="1....
* /robot_state_publisher/publish_frequency: 20.0
* /rosdistro: indigo
* /rosversion: 1.11.
* /use_sim_time: False NODES
/
arbotix (arbotix_python/arbotix_driver)
robot_state_publisher (robot_state_publisher/state_publisher) ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found
process[arbotix-]: started with pid []
process[robot_state_publisher-]: started with pid []
3.使用一个模型的pi-机器人,运行命令:
roslaunch rbx1_bringup fake_pi_robot.launch
输出信息如下:
PARAMETERS
* /arbotix/baud:
* /arbotix/controllers/base_controller/Kd:
* /arbotix/controllers/base_controller/Ki:
* /arbotix/controllers/base_controller/Ko:
* /arbotix/controllers/base_controller/Kp:
* /arbotix/controllers/base_controller/accel_limit: 1.0
* /arbotix/controllers/base_controller/base_frame_id: base_link
* /arbotix/controllers/base_controller/base_width: 0.26
* /arbotix/controllers/base_controller/ticks_meter:
* /arbotix/controllers/base_controller/type: diff_controller
* /arbotix/joints/arm_elbow_flex_joint/id:
* /arbotix/joints/arm_elbow_flex_joint/invert: True
* /arbotix/joints/arm_elbow_flex_joint/max_speed:
* /arbotix/joints/arm_elbow_flex_joint/neutral:
* /arbotix/joints/arm_shoulder_lift_joint/id:
* /arbotix/joints/arm_shoulder_lift_joint/invert: True
* /arbotix/joints/arm_shoulder_lift_joint/max_speed:
* /arbotix/joints/arm_shoulder_lift_joint/neutral:
* /arbotix/joints/arm_shoulder_pan_joint/id:
* /arbotix/joints/arm_shoulder_pan_joint/invert: False
* /arbotix/joints/arm_shoulder_pan_joint/max_angle:
* /arbotix/joints/arm_shoulder_pan_joint/max_speed:
* /arbotix/joints/arm_shoulder_pan_joint/min_angle: -
* /arbotix/joints/arm_shoulder_pan_joint/neutral:
* /arbotix/joints/arm_wrist_flex_joint/id:
* /arbotix/joints/arm_wrist_flex_joint/invert: True
* /arbotix/joints/arm_wrist_flex_joint/max_angle:
* /arbotix/joints/arm_wrist_flex_joint/max_speed:
* /arbotix/joints/arm_wrist_flex_joint/min_angle: -
* /arbotix/joints/arm_wrist_flex_joint/neutral:
* /arbotix/joints/gripper_joint/id:
* /arbotix/joints/gripper_joint/invert: False
* /arbotix/joints/gripper_joint/max_angle:
* /arbotix/joints/gripper_joint/max_speed:
* /arbotix/joints/gripper_joint/min_angle: -
* /arbotix/joints/gripper_joint/neutral:
* /arbotix/joints/head_pan_joint/id:
* /arbotix/joints/head_pan_joint/invert: False
* /arbotix/joints/head_pan_joint/max_angle:
* /arbotix/joints/head_pan_joint/max_speed:
* /arbotix/joints/head_pan_joint/min_angle: -
* /arbotix/joints/head_pan_joint/neutral:
* /arbotix/joints/head_tilt_joint/id:
* /arbotix/joints/head_tilt_joint/invert: False
* /arbotix/joints/head_tilt_joint/max_angle:
* /arbotix/joints/head_tilt_joint/max_speed:
* /arbotix/joints/head_tilt_joint/min_angle: -
* /arbotix/joints/head_tilt_joint/neutral:
* /arbotix/port: /dev/ttyUSB0
* /arbotix/rate:
* /arbotix/read_rate:
* /arbotix/sim: True
* /arbotix/sync_read: True
* /arbotix/sync_write: True
* /arbotix/write_rate:
* /robot_description: <?xml version="1....
* /robot_state_publisher/publish_frequency: 20.0
* /rosdistro: indigo
* /rosversion: 1.11.
* /use_sim_time: False
4.接下来,把rviz所以我们可以观察模拟机器人在行动:
rosrun rviz rviz -d `rospack find rbx1_nav`/sim.rviz
5.发布消息,使机器人移动。要测试模拟,打开另一个终端窗口,并运行以下要使模拟机器人在逆时针方向移动:
rostopic pub -r /cmd_vel geometry_msgs/Twist '{linear: {x: 0.2, y: , z: }, angular: {x: , y: , z: 0.5}}'
6.需要停止机器人 ,在同一个终端窗口式Ctrl-C,或者发布空Twist message:
rostopic pub - /cmd_vel geometry_msgs/Twist '{}'
安装arbotix simulator仿真环境--9的更多相关文章
- 给ros安装arbotix simulator仿真环境
首先下载程序包.编译.安装. cd ~/catkin_ws/src git clone https://github.com/pirobot/rbx1.git cd rbx1 git checkout ...
- 安装arbotix simulator仿真环境()
先安装rbx1功能包: cd ~/catkin_ws/src git clone https://github.com/pirobot/rbx1.git cd rbx1 git checkout in ...
- 基于 Mathematica 的机器人仿真环境(机械臂篇)[转]
完美的教程,没有之一,收藏学习. 目的 本文手把手教你在 Mathematica 软件中搭建机器人的仿真环境,具体包括以下内容(所使用的版本是 Mathematica 11.1,更早的版本可能缺少某些 ...
- 基于S7-PLCSIM Advanced搭建S7通信仿真环境
写在前面: 之前有专门讲过一期如何搭建西门子PLC的S7通信仿真环境,感兴趣的可以点击查看:戳↓ 1.基于TIA搭建西门子PLC仿真环境及通信方案-联合出品 2.手把手教你搭建西门子PLC仿真环境 那 ...
- 【新阁教育】穷学上位机系列——搭建STEP7仿真环境
经常有学员问我,学习上位机要不要买PLC硬件? 我一般的回答是:富则自行购买,穷则搭建仿真. PLC硬件,对于学习上位机来说,是锦上添花的事,经济条件允许,有则更好,条件不允许,我们也可以通过搭建仿真 ...
- 【探索之路】机器人篇(5)-Gazebo物理仿真环境搭建_让机器人运动起来
如果完成了前两步,那么其实我们已经可以去连接我们的现实中的机器人了. 但是,做机器人所需要的材料还没有到,所以我们这里先在电脑平台上仿真一下.这里我们用到的就算gazebo物理仿真环境,他能很好的和R ...
- 【转】linux和windows下安装python集成开发环境及其python包
本系列分为两篇: 1.[转]windows和linux中搭建python集成开发环境IDE 2.[转]linux和windows下安装python集成开发环境及其python包 3.windows和l ...
- 关于JDK 安装,以及Java环境的设置
关于JDK 安装,以及Java环境的设置 1.下载JDK1.6,选择对应的安装路径 2.配置相应的Java 环境变量 A.属性名称:JAVA_HOME 属性值:C:\Program Files\Jav ...
- Greenplum 数据库安装部署(生产环境)
Greenplum 数据库安装部署(生产环境) 硬件配置: 16 台 IBM X3650, 节点配置:CPU 2 * 8core,内存 128GB,硬盘 16 * 900GB,万兆网卡. 万兆交换机. ...
随机推荐
- mac下安装apache+php+mysql
运行“sudo apachectl start”,再输入帐号密码,这样Apache就运行了. 运行“sudo apachectl -v”,你会看到Mac OS X 10.6.3中的Apache版本号: ...
- sqlite3 SQL常用语句
1. select SELECT LastName,FirstName FROM Persons; SELECT * FROM Persons; 2. where SELECT * FROM Pers ...
- POJ 2104 静态找区间第k大
静态区间第k大的问题,往往可以利用主席树来解决 这是主席树的第一道题 主席树大概可以理解为在n个节点上都建立一棵线段树,但是想想会超出内存 每一个节点保存的线段树都记录当前整段前缀区间的信息 但是因为 ...
- 分布式一致性原理—BASE
定义 BASE是BasicallyAvailable(基本可用).Soft state(软状态)和Eventually consistent(最终一致性)三个短语的简写,是由来自eBay的架构师Dan ...
- 分布式一致性原理—CAP
背景 随着分布式事务的出现,传统的单机事务模型(ACID)已经无法胜任,尤其是对于一个高访问量.高并发的互联网分布式系统来说. 如果我们要求严格一致性,很可能就需要牺牲掉系统的可用性,反之亦然.但两者 ...
- 笔记本安装Win2012R2 心得(包含无线网卡+有线网卡驱动解决方法)
笔记本:联想昭阳E47G 无线网卡安装方法: 系统安装完毕后将自动识别无线网卡驱动,但需要手动允许WLAN服务开启.(建议,如果是拿来办公或者家用,可以安装上桌面体验)不然,QQ发的截图双击都看不起. ...
- java基础-003
10.进程和线程 进程是执行者的应用程序,而线程是进程内部的一个执行序列.一个进程可以有多个线程.线程又叫轻量级进程. 创建线程的三种方式: I> 继承Thread类 II> 实现Runn ...
- ios开发值json数据文件的存取
将Json存进本地文件夹 NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainM ...
- 码表由来:ascll码-Gbk2312-GBK-Unicode-UTF-8
码表ascll码-Gbk2312-GBK-Unicode-UTF-8, ascll是基本的标准码表,GB2312是中文码表,GBK是扩展之后的码表,Unicode是国际通用码表,UTF-8是优化后的U ...
- [转] linux中巧用ctrl-z后台运行程序
背景: 最近在执行一些长时间程序的时候,老是一不小心忘了输入‘&’ , 结果终端就卡在那里了,很是郁闷 以前总是再新开一个终端. 今天翻看<鸟哥的linux私房菜>的时候,发现介绍 ...