ROS进阶学习手记 10 - 搭建自己的TurtleBot(4)- Nodes of Base Driver

ROS进阶学习手记 10 - 搭建自己的TurtleBot(4)- Nodes of Base Driver ROS进阶学习手记 10 - 搭建自己的TurtleBot(4)- Nodes of Base Driver Here we are going to continue playing with the launchfile:[ turtlebot_minimal_create.launch ] and look into the nodes, topics, messages, publisher, and subscriber about that. Let’s refer the log printed when we start this launchfile here: SUMMARY ======== PARAMETERS * /cmd_vel_mux/yaml_cfg_file * /diagnostic_aggregator/analyzers/digital_io/path * /diagnostic_aggregator/analyzers/digital_io/startswith * /diagnostic_aggregator/analyzers/digital_io/timeout * /diagnostic_aggregator/analyzers/digital_io/type * /diagnostic_aggregator/analyzers/mode/path * /diagnostic_aggregator/analyzers/mode/startswith * /diagnostic_aggregator/analyzers/mode/timeout * /diagnostic_aggregator/analyzers/mode/type * /diagnostic_aggregator/analyzers/nodes/contains * /diagnostic_aggregator/analyzers/nodes/path * /diagnostic_aggregator/analyzers/nodes/timeout * /diagnostic_aggregator/analyzers/nodes/type * /diagnostic_aggregator/analyzers/power/path * /diagnostic_aggregator/analyzers/power/startswith * /diagnostic_aggregator/analyzers/power/timeout * /diagnostic_aggregator/analyzers/power/type * /diagnostic_aggregator/analyzers/sensors/path * /diagnostic_aggregator/analyzers/sensors/startswith * /diagnostic_aggregator/analyzers/sensors/timeout * /diagnostic_aggregator/analyzers/sensors/type * /diagnostic_aggregator/base_path * /diagnostic_aggregator/pub_rate * /robot/name * /robot/type * /robot_description * /robot_pose_ekf/freq * /robot_pose_ekf/imu_used * /robot_pose_ekf/odom_used * /robot_pose_ekf/output_frame * /robot_pose_ekf/publish_tf * /robot_pose_ekf/sensor_timeout * /robot_pose_ekf/vo_used * /robot_state_publisher/publish_frequency * /rosdistro * /rosversion * /turtlebot_laptop_battery/acpi_path * /turtlebot_node/bonus * /turtlebot_node/port * /turtlebot_node/update_rate * /use_sim_time NODES / cmd_vel_mux (nodelet/nodelet) diagnostic_aggregator (diagnostic_aggregator/aggregator_node) kinect_breaker_enabler (create_node/kinect_breaker_enabler.

READ MORE

ROS进阶学习手记 10 - 搭建自己的TurtleBot(3)- Velocity Calibration

ROS进阶学习手记 10 - 搭建自己的TurtleBot(3)- Velocity Calibration ROS进阶学习手记 10 - 搭建自己的TurtleBot(3)- Velocity Calibration 上一篇我们分析了 rbx 书籍中,对于底板驱动相关的.launch文件,turtlebot_minimal_create.launch, 现在要实验一下相关的配置以后,速度值是否与设定值一致。 要用到的.launch 文件: turtlebot_minimal_create_me.launch ; 使用 rostopic pub 命令发布驱动指令。 运行命令行: 先把rbx包source一下: $ cd ~/catkin_ws $ catkin_make $ source ~/catkin_ws/devel/setup.bash 再在子机上(my_robot1)启动 底盘 驱动: (通过vi工具修改了子机上的tb_create_mobile_base.launch.xml文件) $ roslaunch rbx1_bringup turtlebot_minimal_create.launch 在校准之前,务必参考我博文:Using Create2(Roomba 620) as your turtlebot driving base. 校准线速度: 通过母机发指令: $ rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.1, y: 0, z: 0}, angular: {x: 0, y: 0, z: 0}}' 按照rbx书上的说法:Linear velocities are specified in meters per second and angular velocities are given in radians per second.

READ MORE

ROS进阶学习手记 10 - 搭建自己的TurtleBot(2)- Using iRobot Roomba as the Driving Base

ROS进阶学习手记 10 - 搭建自己的TurtleBot(2)- Using iRobot Roomba as the Driving Base ROS进阶学习手记 10 - 搭建自己的TurtleBot(2)- Using iRobot Roomba as the Driving Base 使用iRobot Roomba 5xx/6xx/7xx作为turtlebot的驱动底盘 要略过的一些内容: 参考《ROS by Example _ Hydro _ Vol1》书中所述,实现到“7.5 Sending Twist Messages to a Real Robot” 中间的过程就按书中来进行即可。涉及到的比如设备驱动、ROS网络配置 等内容可参考本博客前的相关文章。 要在这里讨论的问题: 在 roslaunch rbx1_bringup turtlebot_minimal_create.launch 这个命令运行时,PC(my_robot1)可以接收cmd_vel消息,并通过串口驱动 Create2® 。 这里调用的顺序是什么?启动了哪些nodes? 参数是如何设置的? 我们运行了-v 选项的 roslaunch 命令以后,得到如下的状态打印:一行行来分析【见文末附录1:turtlebot_minimal_create.launch文件的执行记录分析】 这里面主要的操作就是2个: 设置node运行前需要设置的参数parameters 运行nodes 关于.launch 文件们 turtlebot_minimal_create.launch 这个launch文件是我们驱动iRobot_Roomba底盘时首先要运行的,显然是很重要的,看看它的层次结构: 1. 标签 首先我们熟悉一下launch文件的tags-标签们: <arg name=“base” default=“create”/> 这是一个argument标签,表示声明一个参数,后面name指定了参数名为“base”, default指定了它的默认值"create" 这是一个ros_parameter标签,即ROS程序运行时需要输入的参数,后面name指定了参数名为“/use_sim_time”, value指定了它的赋值,此地是调用前面 arg name=“simulation” 的argument的值 采用了$ 符号。 引用Include标签,意思引用外部的launch文件或xml文件。 $(find package_name)这里是一个调用ROS外部包的写法,意思robot.

READ MORE

ROS进阶学习手记 10 - 用iRobot Create 2搭建自己的TurtleBot(1)- Introduction

ROS进阶学习手记 10 - 用iRobot Create 2搭建自己的TurtleBot(1)- Introduction ROS进阶学习手记 10 - 搭建自己的TurtleBot(1)- Introduction 时隔一两个月,再次回来继续写自己的ROS学习及应用手记。这一两个月里,我并没有闲着,而是照着《ROS_by_Example_Hydro_Vol1》基本走完了vol1全书所有的例程。但期间所遇到的一些问题,我并没有搞得很清楚。所以回到开始搭建TurtleBot的步骤,来重新梳理如何从攒一个硬件TurtleBot, 到可以执行 SLAM 任务的全过程。 首先梳理一下手里有的材料: iRobot Create 2 移动机器人驱动平台, 官方链接及资料 Mirko Ferrati’s irobotCreate2_ROS driver: https://github.com/MirkoFerrati/irobotcreate2ros 基于蓝牙无线通信协议的串口透明传输模块,淘宝链接(及配置用 USB-TTL电平 - RS232协议 串口转换模块) 机器人TurtleBot 控制用 Mini PC,装 ROS Hydro 大容量聚合物锂电池:12V 5.5AH, 用于机器人自带Mini PC的供电 华硕 Xtion Pro Live 三维摄像头 另一台Mini PC及显示器、键鼠 无线路由器,用于组建ROS多机局域网 系统组成: 实物照片: 要略过的一些内容: 参考《ROS by Example _ Hydro _ Vol1》书中所述,实现到“7.5 Sending Twist Messages to a Real Robot” 中间的过程就按书中来进行即可。涉及到的比如设备驱动、ROS网络配置 等内容可参考本博客前的相关文章。 ROS网络配置参数: =--------==----------=---=---- Log of Configurations: =--------==----------=---=---- Physical machines: PC1 - Black Mini Computer (WLAN Mac: 74:44:01:67:xx:xx) PC2 - White Mini Computer (WLAN Mac: a0:21:b7:4e:xx:xx) Hostname and Hosts file: PC1 - my_desktop PC2 - my_robot1 The host of ROS (the PC run roscore) PC2 - my_robot1 IP Address: PC1 - my_desktop - 192.

READ MORE

在 Ubuntu 用 OpenNI支持 使用 ASUS Xtion 传感器

在 Ubuntu 用 OpenNI支持 使用 ASUS Xtion 传感器 在 Ubuntu 用 OpenNI支持 使用 ASUS Xtion Pro Live传感器 Installing the driver for Asus_Xtion_Pro_Live in Ubuntu 12.04 Pre-Reading: 我们要用ROS来做机器人,同时要用 Asus_Xtion_Pro_Live 这个传感器来获取深度信息和图像信息。首先要安装 Asus_Xtion_Pro_Live 在 Ubuntu 系统中的驱动。 Procedures: Search online for the .iso disk file carrying the driver for Asus_Xtion_Pro_Live. Like: “V1049_0430” ASUS Xtion Pro CD Readme file OpenNI Framework v1.5.2.23 Sensor DDK v5.1.0.41 NITE v1.5.2.21 USB driver v3.1.3.1 ******************************************************* Required software: for WinXP: Microsoft .NET 3.5: http://www.microsoft.com/en-us/download/details.aspx?id=21 for Linux Ubuntu 10.10: The installation steps as follows, 1.

READ MORE

使用CloneZilla备份-恢复操作系统的简明步骤

使用CloneZilla备份-恢复操作系统的简明步骤 日期:2015.09.09 题目:使用CloneZilla备份linux/windows系统的简明步骤 正文: 这是是简明步骤,应对日常大部分工作。别的参考google. official Site: http://clonezilla.org/ »准备工作: 1. 2 U disks: Ud1 and Ud2 2. 下载 clonezilla 的 iso 文件。 3. 用 Universal-USB-Installer-1.9.6.1 and Ud1 把clonezilla的iso文件制作成启动盘。 4. Boot computer from Ud1 Disk (Press Del / F10 / … or Set up boot list in your bios) 5. ======== BACK UP PROCEDURE: ========== Select the menu of CloneZilla: en_US..»Don’t touch..»Start…»device-image»local_dev» mount the Ud2 drive. »top directory»beginner»savedisk»whole disk»Naming» [OK] » [*] sda disk » skip » yes » [Enter] » [Cloning…] » reboot.

READ MORE

如何阻止QQ右下角弹出新闻框

如何阻止QQ右下角弹出新闻框 如何阻止QQ右下角弹出新闻框 http://hi.baidu.com/liarbin/item/055858d94a674ff8ca0c3947 一、去除腾讯迷你首页: 方法一、最简单、彻底的方法(即使QQ重装也无妨): 按Win+R键打开运行窗口,输入notepad C:\windows\system32\drivers\etc\hosts打开Hosts文件,光标移动到字符的最后,然后回车,添加一行: 127.0.0.1 minisite2009.qq.com 当然了,你如果想去掉其他程序的广告或迷你首页,只需找到该广告的网址,然后,打开hosts文件,回车,另起一行,添加127.0.0.1+空格+域名(域名不要带上http://)。 方法二、进入QQ的安装文件夹,找到 Plugin\Com.Tencent.Advertisement\bin文件夹,这里你会看到一个Advertisement.dll文件,它就是迷你首页的关键所在,将这个文件改成只读属性。 方法三、用组策略阻止 可以用组策略阻止TXOPShow.exe进程(腾讯迷你首页)、TXPlatform.exe进程(是切换到TM状态时用的,一般用户用不到)、QQPetAgent.exe进程(QQ宠物)。当然了,视个人而定。 用组策略的方法很管用。说几句废话,以前偶家小不点喜欢玩彩虹岛游戏,开始给我删了,不久又偷偷装上。后来,偶就用组策略给禁止了,连安装程序都给禁了,更别说玩游戏。 组策略的方法也有几种,这里介绍一种。 操作很简单: Win+R 打开运行–输入 gpedit.msc 打开组策略,计算机配置—windows设置—安全设置—软件限制策略—右键新建)—其他规则—右键新建路路径规则,浏览,分别找到QQ安装路径下的TXOPShow.exe,TXPlatform.exe,QQPetAgent.exe这三个文件,建三个规则,不允许运行!OK 二、去除登陆框和过渡框的广告: 打开如下位置的文件夹,请选择自己的系统: 需要显示系统文件+扩展名 C:\Documents and Settings\Administrator\ApplicationData\Tencent\QQ\Misc(XP) C:用户\你的用户名\AppData\Roaming\Tencent\QQ\Misc (Vista/win7) 找到LogoFile和OAPanelLogo这两个文件夹,删掉,然后右键新建两个文本文档,LogoFile.txt和OAPanelLogo.txt,最后去掉.txt的后缀名,即把LogoFile.txt和OAPanelLogo.txt修改为LogoFile和OAPanelLogo,系统提示无视。 三、去除聊天窗口右上角广告: 1、同上:打开如下位置的文件夹,请选择自己的系统: C:\Documents and Settings\Administrator\ApplicationData\Tencent\QQ\Misc(XP) C:用户\你的用户名\AppData\Roaming\Tencent\QQ\Misc (Vista/win7) 找到com.tencent.advertisement文件夹,打开,删除里边的所有内容。注意文件夹本身不能删除,然后把当前用户的写入权限给拒绝掉(需要当前分区为NTFS格式)。 方法:文件夹上右键,属性 - 安全标签,选中当前登录用户,接着在下方“写入”权限里,拒绝上打勾。 2、如果有多个QQ需要登录的话,上边这样做还是不能屏蔽其他QQ号聊天窗口右上角的广告,需要直接将Misc文件夹的写入权限给拒绝掉,不然可恶的腾讯会在MISC文件夹下添com.tencent.advertisement***文件夹,***代表随机性的数字,文件夹里边仍然是可恶的广告。 3、另在QQ的安装目录下,Plugin\Com.Tencent.Advertisement文件夹内有个Bundle.rdb的文件,所有的勾当都在这里面。当然,这个文件也是不能删除的,否则QQ因为会因为缺乏文件而无法启动,我们能做的就是解包这个文件。 复制该文件到桌面上,解包。 解包后在目录Bundle\I18N\2052下,有个StringBundle.xml文件,用记事本打开它,删除如下字段: defaultbanner.jpg www.tencentmind.com defaultrich.swf GroupBanner.jpg defaultvideo.swf www.tencentmind.com http://im.qq.com 重新打包后,记得关闭QQ,然后替换。 如果嫌解包打包烦,可以点击下载已修改好的,替换即可。 四、去除聊天窗口左下角广告 同样操作针对XP和Vista\win7有所不同。 XP: 关闭QQ,然后进入X(系统盘):\Documents and Settings\用户名\ApplicationData\Tencent\Users\你的QQ号\QQ\,删除其中的Misc.db,接着新建一个文件夹并命名为Misc.db。 Vista/Win7 关闭QQ,进入X:(系统盘)\users\用户名\appdata\Roaming\Tencent\Users\你的QQ号码\QQ\,然后操作同上。 五、最后说说右下角的弹窗新闻 这个东东,其实最讨人厌了,但找不到好的方法屏蔽掉,即使禁掉腾讯新闻网页,还是要弹出来。 有个办法就是:找到 C:\Tencent\QQ\I18N, 用记事本打开config.xml文件 将语言 2052 改为 1033或者3076,将文件夹2052改为相对应的数字。但这种方法会有一些小小的缺憾,比如点击个人资料时,好友印象、QQ空间、QQ秀、装扮等会无法显示,且登陆时为直版登陆框,无法设置使用横版的经典登陆框……但并不影响正常使用…… 话说前几天看到有人在315网站投诉,当然,他投诉的是迷你首页,但由此可见,不管是迷你首页还是弹窗新闻,都已经恨入人心了。 http://www.315ts.net/archive/tousu/2010/0222/610863.shtml 较早之前(2007年)还有人写了篇文章,题目叫: 给QQ新闻自动弹出窗口的慰问信 也有点意思,不妨看看: http://blog.sina.com.cn/s/blog_4a6ab81101000bjs.html

READ MORE

禁止win7-win8自动更新到win10

禁止win7-win8自动更新到win10 How to remove Windows 10 upgrade updates in Windows 7and 8 怎样移除windows7 / windows8 里 自动升级到 windows10 的相关程序 By Martin Brinkmannon April 17, 2015 in Tutorials - Last Update: June 1, 2015 65 Microsoft will ship Windows 10 later this year and with it comes an offerto upgrade existing versions of Windows to the operating system for free. Since the majority of Windows users probably does not know about that offer as they may not read tech sites at all or only sporadically, Microsoft pushed updates to Windows 7 and Windows 8 systems that prepare the system forthe update.

READ MORE

在ROS 使用摄像头 WebCam 完成图像处理(2) -- 初探OpenCV

在ROS 使用摄像头 WebCam 完成图像处理(2) – 初探OpenCV 在ROS 使用摄像头 WebCam 完成图像处理(2) – 初探OpenCV 在上一节,我们通过ros中 uvc_camera 包下的 uvc_camera_node 得到了摄像头的 rgb 图像数据。这些图像数据将送入我们的图像处理 node 进行处理、识别等工作。 OpenCV 是开源的 计算机视觉 算法包,将被用来开发 我们的图像处理 node 。 Install the OpenCV: The easiest way to install OpenCV under Ubuntu Linux is to get the Debian packages。 $ sudo apt-get install ros-hydro-opencv2 ros-hydro-vision-opencv If you need a feature found only in the latest version, you can compile the library from source. Instructions can be found here: http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html To check your installation, try the following commands:

READ MORE

在ROS使用 Kinect 完成3D图像处理(1)-- 测试OpenNI_camera

在ROS使用 Kinect 完成3D图像处理(1)– 测试OpenNI_camera 在ROS使用 Kinect 完成3D图像处理(1)– 测试OpenNI_camera 在完成了 在 Ubuntu 用 OpenNI支持 使用 Kincet 传感器 之后,我们可以尝试使用ROS提供的包来测试ROS+Kinect有关的功能 ROS 有两个包,支持kinect在ROS上的运行: openni_camera & openni_launch, 前者应该是driver, 后者应该是运行程序。 ROS Package: http://wiki.ros.org/openni_camera http://wiki.ros.org/openni_launch (OPTIONAL) ROS openni-camera installation on ubuntu 在完成了 在 Ubuntu 用 OpenNI支持 使用 Kincet 传感器 之后,我们可以尝试使用ROS提供的包来测试ROS+Kinect有关的功能. To install the ROS OpenNI drivers for the Microsoft Kinect or Asus Xtion, use the command: $ sudo apt-get install ros-hydro-openni-camera Testing your Kinect or Xtion Camera Once you have the OpenNI driver installed, make sure you can see the video stream from the camera by using the ROS image_view package.

READ MORE