mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Update README.md
This commit is contained in:
@@ -93,17 +93,40 @@ This section shows how to install RTAB-Map ros-pkg on **ROS Hydro/Indigo/Jade/Ki
|
|||||||
### Update to new version
|
### Update to new version
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
###########
|
||||||
|
# rtabmap
|
||||||
|
###########
|
||||||
$ cd rtabmap
|
$ cd rtabmap
|
||||||
$ git pull origin master
|
$ git pull origin master
|
||||||
$ cd build
|
$ cd build
|
||||||
|
|
||||||
|
# We want to do a clean re-install to avoid problems if RTAB-Map's minor version has changed.
|
||||||
|
|
||||||
|
# If previously installed in ~/catkin_ws/devel:
|
||||||
|
$ make uninstall
|
||||||
|
# If previously installed in /usr/local:
|
||||||
|
$ sudo make uninstall
|
||||||
|
|
||||||
|
$ rm -rf ../build/*
|
||||||
|
|
||||||
|
# To install in catkin_ws:
|
||||||
|
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..
|
||||||
|
# Or this to install in /usr/local:
|
||||||
|
$ cmake ..
|
||||||
|
|
||||||
$ make
|
$ make
|
||||||
$ make install
|
$ make install
|
||||||
# Do "sudo make install" if you installed rtabmap in "/usr/local"
|
# Do "sudo make install" if you installed rtabmap in "/usr/local"
|
||||||
|
|
||||||
|
###########
|
||||||
|
# rtabmap_ros
|
||||||
|
###########
|
||||||
$ roscd rtabmap_ros
|
$ roscd rtabmap_ros
|
||||||
$ git pull origin master
|
$ git pull origin master
|
||||||
$ cd ~/catkin_ws
|
$ cd ~/catkin_ws
|
||||||
$ catkin_make -j1
|
# reset cmake cache
|
||||||
|
$ rm -rf build/CMakeCache.txt build/rtabmap_ros
|
||||||
|
$ catkin_make -j1 --pkg rtabmap_ros
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user