- sudo docker run -itd --name szz --net=host --mount type=bind,source=/Users/szz/Documents/ros_ws,target=/root/ros_ws ct2034/vnc-ros-kinetic-full bash
- apt-get update
- apt-get upgrade
- apt-get install net-tools wget curl nano inetutils-ping apt-rdepends
- echo "source /opt/ros/kinetic/setup.bash" >> /root/.bashrc
- source /root/.bashrc
- rosdep update
- mkdir ros_ws
- cd ros
- mkdir src
- cd /root
- mkdir Libs
- cd ros_ws/src
- mkdir hokuyo
- cd hokuyo
- git clone https://github.com/ros-drivers/driver_common.git
- git clone https://github.com/ros-perception/laser_proc.git
- git clone https://github.com/ros-drivers/urg_c.git
- git clone https://github.com/ros-drivers/urg_node.git
- cd /root/ros_ws
- catkin_make
- cd /root
- sudo apt-get install -y clang g++ git google-mock libboost-all-dev libcairo2-dev libcurl4-openssl-dev libeigen3-dev libgflags-dev libgoogle-glog-dev liblua5.2-dev libsuitesparse-dev ninja-build python-sphinx libpcl-dev ros-kinetic-pcl-conversions ros-kinetic-tf2-eigen
- cd /root/Libs
- git clone https://github.com/eigenteam/eigen-git-mirror.git
- cd eigen-git-mirror
- git checkout 3.2.7
- mkdir build
- cd build
- cmake ..
- make install
- cp -r /usr/local/include/eigen3/Eigen /usr/local/include
- cd /root/Libs
- git clone https://github.com/ceres-solver/ceres-solver.git
- cd ceres-solver
- git checkout 1.13.0
- mkdir build
- cd build
- cmake .. -G Ninja -DCX11=ON
- ninja
- sudo ninja install
- cd /root/Libs
- git clone https://github.com/google/protobuf.git
- cd protobuf
- mkdir build
- cd build
- cmake -G Ninja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -Dprotobuf_BUILD_TESTS=OFF ../cmake
- ninja
- sudo ninja install
- cd /root/Libs
- git clone https://github.com/larics/cartographer_frontier_detection.git
- cd cartographer_frontier_detection
- cd cartographer
- mkdir build
- cd build
- cmake .. -G Ninja -DCXX11=ON
- ninja
- sudo ninja install
- cd ../..
- cp -r cartographer_ros/ /root/ros_ws/src/
- cd /root/ros_ws/
- catkin_make
- cd /root
- apt-get install ros-kinetic-gmapping ros-kinetic-navigation python-opencv python-numpy python-scikits-learn ros-kinetic-kobuki ros-kinetic-kobuki-core ros-kinetic-kobuki-gazebo
- cd /root/ros_ws/src
- mkdir rrt_exploration
- cd rrt_exploration
- git clone https://github.com/hasauino/rrt_exploration_tutorials.git
- cd /root/ros_ws
- catkin_make
- cd /root
- mkdir .gazebo
- cd .gazebo
- mkdir models
- cd models
- wget http://file.ncnynl.com/ros/gazebo_models.txt
- wget -i gazebo_models.txt
- ls model.tar.g* | xargs -n1 tar xzvf
- rm model.tar.gz.*