ROS 원본 설치 kinetic 버 전

1514 단어 ROS
시스템:Ubuntu 16.04 ROS kinetic 소스 코드 컴 파일 기록 1.설치 안내 의존 관계sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential2.rosdepsudo rosdep init초기 화rosdep update주의:init 와 update 오류 가 발생 하면 모 바 일 네트워크 공유 업데이트 3.catkin 작업 공간 만 들 기mkdir ~/ros_catkin_ws4.ROS-Comm 패키지 설치(ROS package,build,and communication libraries.No GUI tools)cd ~/ros_catkin_wsrosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall5.해석 의존wstool init -j8 src kinetic-ros_comm-wet.rosinstall6.catkin 작업 공간rosdep install --from-paths src --ignore-src --rosdistro kinetic -ymelodic 버 전 컴 파일 에 나타 난 문제 및 해결 방법 1>오류 발생:'nullptr'was not declared in this scope 해결 방법:예./src/roscomm/rosbag/CMakeLists.txt 와./src/roscomm/rosbag_storage/MakeLists.txt 두 파일 에 컴 파일 옵션 추가-std=c++11 2>"ROSDISTRO was set to"melodic"before.Please make sure that the environment does not mix paths from different distributions."해결 방법:melodic 버 전 을 컴 파일 하여 kinetic 버 전 환경 설정 을 컴 파일 하 는 데 충돌 이 생 겼 으 며,env|grep ros 를 사용 해도 해당 하 는 환경 변수 설정 이 보이 지 않 아 이전 melodic 버 전 을 컴 파일 하 는 작업 경 로 를 바 꾸 었 습 니 다.kietic 버 전 을 컴 파일 하 는 것 이 정상 입 니 다.i 하책)7.환경 설정.bashrc 스 크 립 트 쓰기./src/catkin/bin/catkin_make_isolated --install `-DCMAKE_BUILD_TYPE=Releaseecho "source ~/ros_catkin_ws/install_isolated/setup.bash" >> ~/.bashrc

좋은 웹페이지 즐겨찾기