1
可以把完整的ros功能包(完整指的是,有xml,cmakelists等文件),直接放进自己的/workspace/src,然后在/workspace进行catkin_make,然后记得添加环境变量:
只在当前终端生效:
source ~/workspace/devel/setup.bash
在所有终端生效需要加入脚本 .bashrc
echo "source ~/workspace/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
2
在ros中执行py文件无法找到,其中rosrun,robot_vision是可以tab出来的,但是后面的.py不可以
lincent@ThinkPad:~$ rosrun robot_vision cv_bridge_test.py
[rosrun] Couldn't find executable named cv_bridge_test.py below /home/lincent/catkin_ws/src/robot_vision
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /home/lincent/catkin_ws/src/robot_vision/scripts/cv_bridge_test.py
查看文件权限:
ubuntu下查看权限的命令为:
ls -l filename
ls -ld folder
一共有10位数
其中: 最前面那个 - 代表的是类型
中间那三个 rw- 代表的是所有者(user)
然后那三个 rw- 代表的是组群(group)
最后那三个 r-- 代表的是其他人(other)
r 表示文件可以被读(read)
w 表示文件可以被写(write)
x 表示文件可以被执行(如果它是程序的话)
- 表示相应的权限还没有被授予
lincent@ThinkPad:~$ ls -l ~/catkin_ws/src/robot_vision/scripts/cv_bridge_test

最低0.47元/天 解锁文章
403

被折叠的 条评论
为什么被折叠?



