본문 바로가기
Autonomous Vehicle/ROS programming

Segmap Installation History 정리 (Trouble Shooting)

by kim.jeff 2021. 9. 23.

Segmap Installation History 정리 (Trouble Shooting)


많은 어려움... 다시 설치하게 된다면 유용한 자료가 되길 바라며 남긴다...

이전의 포스트인 Docker 환경에서 바로 진행한 결과이다. 환경설정이 궁금하다면 전 포스트를 확인하기 바란다.

 135 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 136 apt-get install lsb-release 137 apt update 138 cd ../etc/apt/sources.list.d/ 139 ls 140 rm ros-latest.list 141 ls 142 apt update 143 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 144 apt-get install lsb_release 145 cd 146 cd ../etc/apt/sources.list.d/ 147 ls 148 rm ros-latest.list 149 cd 150 apt update 151 apt-get install lsb_release 152 apt-get install lsb-release 153 sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' 154 sudo apt install curl # if you haven't already installed curl 155 sudo apt install curl 156 curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - 157 sudo apt-get update 158 sudo apt-get install ros-kinetic-desktop-full 159 echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc 160 source ~/.bashrc 161 sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential 162 sudo apt install python-rosdep 163 sudo rosdep init 164 rosdep update 165 ls 166 ~/ 167 cd .. 168 cd home/ 169 ls 170 cd ~/segmap_ws 171 sudo apt-get install python-wstool doxygen python3-pip python3-dev python-virtualenv dh-autoreconf 172 mkdir -p ~/segmap_ws/src 173 cd ~/segmap_ws 174 catkin init 175 source ~/.bashrc 176 catkin init 177 roscore 178 catkin init 179 apt install catkin 180 pip install catkin 181 catkin init 182 sudo catkin init 183 vim ~/.bashrc 184 source /opt/ros/kinetic/setup.bash 185 catkin init 186 sudo apt install python3-catkin-tools python3-osrf-pycommon 187 catkin init 188 catkin config --merge-devel 189 catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release 190 cd src 191 git clone https://github.com/ethz-asl/segmap.git 192 wstool init 193 wstool merge segmap/dependencies.rosinstall 194 wstool update 195 cd .. 196 virtualenv ~/segmappyenv 197 source ~/segmappyenv/bin/activate 198 pip install --upgrade pip 199 pip install catkin_pkg empy pyyaml 200 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2 201 nvcc -V 202 nvidia-smi 203 bazel-version 204 bazel version 205 mv ~/../home/Downloads/v1.8.0-rc1.zip ~/segmappyenv/ 206 cd segmappyenv/ 207 ls 208 unzip v1.8.0-rc1.zip 209 cd tensorflow-1.8.0-rc1/ 210 ./Configure 211 ls 212 ./configure 213 bazel build --config = opt --define framework_shared_object = true tensorflow: libtensorflow_cc.so 214 bazel build --config=opt --define framework_shared_object=true tensorflow:libtensorflow_cc.so 215 history

ros 설치시 오류 해결(lsb_release)
apt update && apt install -y lsb-core
ros kinetic 설치

  • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  • curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
  • sudo apt-get update
  • sudo apt-get install ros-kinetic-desktop-full
  • echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
  • source ~/.bashrc
  • sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
  • sudo apt install python-rosdep
  • sudo rosdep init
  • rosdep update

catkin not found 오류 해결

  • sudo apt install python3-catkin-tools python3-osrf-pycommon

tensorflow_ros_cpp 빌드시 경로 확인 필수

  • catkin build tensorflow_ros_cpp --cmake-args -DFORCE_TF_PIP_SEARCH="OFF" -DFORCE_TF_BAZEL_SEARCH="ON" -DTF_BAZEL_LIBRARY="/root/tensorflow-1.8.0-rc1/bazel-bin/tensorflow/libtensorflow_cc.so" -DTF_BAZEL_SRC_DIR="/root/tensorflow-1.8.0-rc1"


https://github.com/catkin/catkin_tools/issues/167
segmap 빌드시 프리징 걸리는 경우가 많음. 따라서 클럭 수 제한을 해줄 필요가 있다.

  • catkin build segmap -j1

autoreconf: not found 에러

  • sudo apt-get install autoreconf

리눅스 iconv 설치
sudo apt-get install doxygen
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
pip install empy


https://wnstjqdl.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-iconv-%EC%84%A4%EC%B9%98

리눅스 iconv 설치

** iconv 설치 configure중 iconv가 없다고 할때 설치 합니다. ex) configure: error: Please reinstall the iconv library 1. iconv 다운로드 http://www.gnu.org/software/libiconv/#TOCdownloading 2. 압축..

wnstjqdl.tistory.com

# docker commit <옵션> <컨테이너 이름> <이미지 이름>:<태그>
$ docker commit tf2 eungbean/tf2:latest



<참고문헌>
[1] https://www.programmerall.com/article/28451670519/
[2] https://github.com/ethz-asl/segmap