1.安装、查看与卸载package
http://www.cnblogs.com/forward/archive/2012/01/10/2318483.html
1.1 列出所有已经安装的pkg
dpkg -l
1.2 安装下载好的deb
第一步,获得root 权限
sudo -i
第二布,去到安装文件所在位置
第三步,安装
dpkg -i 文件名.deb
2.查看ROS版本号
- 终端输入
roscore
- 打开新终端,再输入
rosparam list
- 再输入
rosparam get /rosdistro
3.查看ubuntu版本号
lsb_release -a
4.从git上安装ros package
#make sure you have sourced the correct setup.bash file for your ROS distribution already
go to workspace src space
cd /path/to/your/catkin_ws/src
#checkout the desired version of the descartes repository.
git clone -b indigo-devel https://github.com/ros-industrial-consortium/descartes.git
#we need to make sure you have all dependencies installed.
cd /path/to/your/catkin_ws
rosdep install --from-paths src --ignore-src --rosdistro indigo
#now build
catkin_make
5.文件管理
查看上级目录
cd ..
查看当前路径
pwd
在当前目录新建一个文件夹
mkdir 文件夹名字
在当前目录新建系列文件夹
mkdir -p 文件夹/文件夹
在根目录新建文件夹
mkdir 文件夹名字
在根目录新建系列文件夹
mkdir -p /文件夹/文件夹
列出当前文件夹内容
ls
把目录1里面的文件1移动到目录2
mv 目录1/文件名 目录2
把目录1下的所有文件移动到目录2
mv 目录1/* 目录2
解压文件1
tar -zxf 文件名1 或者 unzip 文件名(需要安装unzip工具包)
删除文件
rm -rf 文件名
6.新建urdf文件
touch 文件名.urdf
7.帮助
【命令】 --help
8.编辑文件
rosed [package name] [file name]
8.1 退出编辑