1.建立软链接

在路径cd /etc/udev/rules.d中,建立例如50-rfid.rules的文件,它会根据文件名之前的50 51等判断优先级,50的优先级就大于51

如:  KERNEL=="ttyUSB*",SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="f1d95271",MODE:="0777", GROUP:="dialout", SYMLINK+="rfid"

它是一个ttyUSB的设备,设备号可能是0 1 2 后面厂商号设备号,一般不同的厂商号设备号都不同,但很多的U转串的厂商号设备号一样,找软件该.后面序列号,随便改一个.它建立软链接后的名字是rfid.以上.

解释如下:The files in this directory are read by udev(7) and used when events are performed by the kernel.  The udev daemon watches this directory  with inotify so that changes to these files are automatically picked up, for this reason they must be files and not symlinks to another location as in the case in Debian.
PS:如何查看serial number?

cd /dev
dmesg |tail

会显示如:

/dev  dmesg |tail
[29853.633958] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[29853.633969] cp210x -:1.0: device disconnected
[29853.903252] usb -: new full-speed USB device number using xhci_hcd
[29853.921143] usb -: New USB device found, idVendor=10c4, idProduct=ea60
[29853.921153] usb -: New USB device strings: Mfr=, Product=, SerialNumber=
[29853.921158] usb -: Product: CP2102 USB to UART Bridge Controller
[29853.921162] usb -: Manufacturer: Silicon Labs
[29853.921165] usb -: SerialNumber: 9528f1d
[29853.922558] cp210x -:1.0: cp210x converter detected
[29853.924222] usb -: cp210x converter now attached to ttyUSB0

看SerialNumber后面9528f1d即为ATTRS{serial}=="f1d95271"这里要替换的序列号.

因为不规范的设备,厂商号设备号都写的一样没办法区分

2.建立工作空间

不论是第几个工作空间,只要名字不一样,都可以

source /opt/ros/indigo/setup.sh
mkdir -p ~/angie/src
cd ~/angie/src
catkin_init_workspace
cd ~/angie
catkin_make
source ~/angie/devel/setup.bash

angie可以随意替换,就是工作空间名字啦

这样的两个工作空间是一个版本的,使用不同版本,参见ROSWIKI

3.boost:foreach函数  作用是遍历每一个元素

blog.csdn.net/jiangfriend/article/details/1713619 我当时参考的资料

4.shell的find和grep使用的方法,请抽空笔记整理

www.cnblogs.com/skynet/archive/2010/12/25/1916873.html

5.C++继承与派生

www.cnblogs.com/fzhe/archive/2012/12/25/2832250.html

ROS实际问题解决方法的更多相关文章

  1. win7中VS2010中安装CSS3.0问题解决方法

    win7中VS2010中安装CSS3.0问题解决方法   在安装Standards Update for VS2010 SP1后,VS2010中没有CSS3.0问题,以下是我的解决方法 1.首先去官网 ...

  2. win8安装SQL Server 2005问题解决方法

    win8安装SQL Server 2005问题解决方法 1.正常安装任一版本的SQL Server 2005(最好安装企业版). 2.安装到SqlServer服务的时候提示启动服务失败(提示重试的时候 ...

  3. WingIDE中文乱码问题解决方法

    WingIDE中文乱码问题解决方法 安装完WingIDE后,首次运行python脚本时,若脚本中含有UTF-8中文,在Debug I/O输出框中,全部变成了乱码. 这时其实我们设置下WingIDE的编 ...

  4. PHP mkdir()无写权限的问题解决方法

    这篇文章主要介绍了PHP mkdir()无写权限的问题解决方法,对umask做了详细解释以及mkdir()后没写权限的解决方法,需要的朋友可以参考下   使用mkdir创建文件夹时,发现这个函数有两个 ...

  5. 【转】asp.net Cookie值中文乱码问题解决方法

    来源:脚本之家.百度空间.网易博客 http://www.jb51.net/article/34055.htm http://hi.baidu.com/honfei http://tianminqia ...

  6. wampserver下打开phpMyAdmin出现403错误的问题解决方法

    图1 图2 wamp下打开phpMyAdmin出现403错误的问题解决方法安装完wamp后打开其下的phpMyAdmin也就是路径http://localhost/phpmyadmin/ 出现[图一] ...

  7. Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法

    原文:Spring3 报org.aopalliance.intercept.MethodInterceptor问题解决方法 一 开发环境:JDK5+Spring3.0.5+Myeclipse6.6+T ...

  8. virtualbox共享文件夹无访问权限问题解决方法

    virtualbox共享文件夹无访问权限问题解决方法 早就困扰了,这次新装虚拟机又碰到了,记录下来. 这篇文章主要介绍了virtualbox共享文件夹无访问权限问题解决方法,造成这个问题的原因是不跟v ...

  9. nfs:server 172.168.1.22 not responding,still trying问题解决方法 平台为RealARM 210平台

    nfs:server 172.168.1.22 not responding,still trying问题解决方法 ,平台为RealARM 210平台. 这里的问题是在使用nfs挂载文件系统时遇到的, ...

随机推荐

  1. 向ES6看齐,用更好的JavaScript(三)

    本文是ES6系列的第三篇,主要介绍ES6新增的数据类型.数据结构,先上传送门: 1 变量部分 2 现有对象拓展 3 新增数据类型/数据结构 4 新的异步编程模式 5 类和模块 1 第七种数据类型Sym ...

  2. url传值错误

    ValueError at /add/ invalid literal for int() with base 10: ''6'' Request Method: GET Request URL: h ...

  3. java 静态函数锁对象说明

    在内存加载.class文件后,会自动创建一个对象,用于保存class的信息,与我们程序员手工创建的对象不一样.

  4. generated clock

    内部时钟的定义: create_generated_clock,通过-source,-edges,-divide_by,-multiply_by来执行clock沿. create_generated_ ...

  5. 复制 replication 新增表 add new article

    immediate_sync   false   Synchronization files are created only if there are new subscriptions. Subs ...

  6. AppleWatch___学习笔记(一)开发思路和框架

    一.开发须知 如果你没有开发过 iphone,直接来做watch,我建议你不要这么做,不是不可以,而是目前所有的第三方应用都必须基于iphone的扩展,原生的watch应用,苹果目前还没有开放给开发者 ...

  7. js typeof

    var message = "some thing"; alert(typeof message); // string alert(typeof 95); // number a ...

  8. python中的正则表达式(re模块)

    一.简介 正则表达式本身是一种小型的.高度专业化的编程语言,而在python中,通过内嵌集成re模块,程序媛们可以直接调用来实现正则匹配.正则表达式模式被编译成一系列的字节码,然后由用C编写的匹配引擎 ...

  9. error: linker command failed with exit code 1 解决方法之一

    出现这种错误的原因可能很多,以下是我遇到的一种情况: 向项目中添加了新文件,没有加入compile source 编译报错: ld: symbol(s) not found for architect ...

  10. Unity-Animator深入系列总索引

    花了不少时间完成了这篇Unity Animator学习系列文章,其中大多数内容都来自个人实践,包括API部分很多都是亲测,期望和网上的诸多教程达到互补. 相关参考文档 Unity Animator官方 ...