Skip to content

Instantly share code, notes, and snippets.

@akirayou
Last active December 3, 2020 11:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akirayou/c49a02fe49ef3819cb7a6e8c37418643 to your computer and use it in GitHub Desktop.
Save akirayou/c49a02fe49ef3819cb7a6e8c37418643 to your computer and use it in GitHub Desktop.
#install ROS2 for linux Mint(as ubuntu18)
#https://gbiggs.github.io/rosjp_ros2_intro/computer_prep_linux.html
sudo apt update
sudo apt install -y curl gnupg2 lsb-release
curl http://repo.ros2.org/repos.key | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu bionic main" > /etc/apt/sources.list.d/ros2-latest.list'
export CHOOSE_ROS_DISTRO=dashing
sudo apt update
sudo apt install -y ros-${CHOOSE_ROS_DISTRO}-desktop python3-argcomplete
echo "source /opt/ros/${CHOOSE_ROS_DISTRO}/setup.bash" >> ~/.bashrc
source ~/.bashrc
#install Realsense
#https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main"
sudo apt update
sudo apt-get install -y librealsense2-dkms
sudo apt-get install -y librealsense2-utils
sudo apt-get install -y librealsense2-dev
sudo apt-get install -y librealsense2-udev-rules
#to check realsense-viewer (after reboot)
#install ROS2 driver for realsense
#https://github.com/intel/ros2_intel_realsense
sudo apt-get install -y ros-dashing-cv-bridge ros-dashing-librealsense2 ros-dashing-message-filters ros-dashing-image-transport libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev ros-dashing-realsense-camera-msgs ros-dashing-realsense-ros2-camera
#To check
#ros2 run rviz2 rviz2 -d realsense_ros2_camera/rviz/ros2.rviz
#ros2 run realsense_ros2_camera realsense_ros2_camera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment