Ros问题汇总

1.ImportError: No module named beginner_tutorials.srv

解决:

cd ~/catkin_ws
$ source devel/setup.bash
$ rosrun beginner_tutorials add_two_ints_server.py

 2.roscreat-pkg: command not found

catkin_create_pkg smartcar_description urdf

 

3.the config file '/opt/ros/indigo/share/urdf_tutorial/urdf.vcg' is a .vcg file, which is the old rviz config format.

将launch文件最后vcg改成rviz;

<node name="rviz" pkg="rviz" type="rviz" args="-d $(find urdf_tutorial)/urdf.rviz" />  
 
</launch>

 4.[base.urdf.rviz.launch] is neither a launch file in package [smartcar_description] nor is [smartcar_description] a launch file name

$ cd ~/catkin_ws
$ source devel/setup.bash

5.ERROR: the config file '/home/yrm/smartcar/src/smartcar_description/urdf.vcg' is a .vcg file, which is the old rviz config format.

把launch文件中的urdf.vcg改为urdf.rviz

 6.E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission d。。。。。。

1、ps-aux 查出apt-get进程的PID,通常是一个四位数字。

2、用sudo kill PID代码 杀死进程

3、用sudo apt-get update,sudo apt-get dist-upgrade升级。

 7.ERROR: cannot launch node of type [arbotix_python/arbotix_driver]: arbotix_python

没有安装arbotix包

$ sudo apt-get install ros-indigo-arbotix-*

 

posted @ 2018-11-26 18:03  寒江小筑  阅读(1615)  评论(0编辑  收藏  举报