Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Redoblue/047721672726ae044f3d9c9d6f447db6 to your computer and use it in GitHub Desktop.

Select an option

Save Redoblue/047721672726ae044f3d9c9d6f447db6 to your computer and use it in GitHub Desktop.

Revisions

  1. Redoblue revised this gist Mar 15, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ros_kinetic_raspian_buster.sh
    Original file line number Diff line number Diff line change
    @@ -35,5 +35,5 @@ rosdep install -y --from-paths src --ignore-src --rosdistro kinetic -r --os=debi
    # set(BOOST_ROOT ~/build)
    # set(BOOST_INCLUDEDIR ~/build/include)
    # set(BOOST_LIBRARYDIR ~/build/lib)
    sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j2
    sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j2 -DPYTHON_VERSION=3
    sudo ln -s /home/pi/build/lib/* /usr/lib/
  2. @frank9615 frank9615 revised this gist Nov 21, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install_ros_kinetic_raspian_buster.sh
    Original file line number Diff line number Diff line change
    @@ -36,3 +36,4 @@ rosdep install -y --from-paths src --ignore-src --rosdistro kinetic -r --os=debi
    # set(BOOST_INCLUDEDIR ~/build/include)
    # set(BOOST_LIBRARYDIR ~/build/lib)
    sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j2
    sudo ln -s /home/pi/build/lib/* /usr/lib/
  3. @frank9615 frank9615 created this gist Nov 20, 2019.
    38 changes: 38 additions & 0 deletions install_ros_kinetic_raspian_buster.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    #!/bin/bash

    # Install ros kinetic on raspian buster
    cd ~
    wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.gz
    tar xvzf boost_1_58_0.tar.gz
    mkdir ~/build
    cd boost_1_58_0/
    sudo ./bootstrap.sh
    sudo ./b2 install —prefix="../build"
    cd ~
    sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
    sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install -y python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential cmake
    sudo rosdep init
    rosdep update
    mkdir -p ~/ros_catkin_ws
    rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall
    wstool init src kinetic-ros_comm-wet.rosinstall
    mkdir -p ~/ros_catkin_ws/external_src
    cd ~/ros_catkin_ws/external_src
    wget http://sourceforge.net/projects/assimp/files/assimp-3.1/assimp-3.1.1_no_test_models.zip/download -O assimp-3.1.1_no_test_models.zip
    unzip assimp-3.1.1_no_test_models.zip
    cd assimp-3.1.1
    cmake .
    make
    sudo make install
    cd ~/ros_catkin_ws
    rosdep install -y --from-paths src --ignore-src --rosdistro kinetic -r --os=debian:buster
    # modify files ~/ros_catkin_ws/src/rospack/CMakeLists.txt
    # and ~/ros_catkin_ws/src/catkin/CMakeLists.txt
    # writing after line containing "project"
    # set(BOOST_ROOT ~/build)
    # set(BOOST_INCLUDEDIR ~/build/include)
    # set(BOOST_LIBRARYDIR ~/build/lib)
    sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j2