Skip to content

Instantly share code, notes, and snippets.

@ojura
Last active June 21, 2017 13:39
Show Gist options
  • Save ojura/3ef3202cbcecc790bec863e251f652dd to your computer and use it in GitHub Desktop.
Save ojura/3ef3202cbcecc790bec863e251f652dd to your computer and use it in GitHub Desktop.
ROS_DISTRO=lunar
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 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo add-apt-repository universe
sudo apt update
sudo apt install git ros-$ROS_DISTRO-ros-base ninja-build -y
mkdir -p catkin_ws/src && cd catkin_ws/src
source /opt/ros/$ROS_DISTRO/setup.bash
git clone https://github.com/googlecartographer/cartographer.git
git clone https://ceres-solver.googlesource.com/ceres-solver
git clone https://github.com/googlecartographer/cartographer_ros.git
cd ..
./src/cartographer/scripts/install_debs.sh
sudo rosdep init
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
catkin_make_isolated
Errors << cartographer_ros:cmake /home/ubuntu/catkin_ws/logs/cartographer_ros/build.cmake.000.log
CMake Error at /usr/lib/cmake/eigen3/Eigen3Config.cmake:24 (message):
File or directory /usr/share/cartographer/cmake referenced by variable
CARTOGRAPHER_CMAKE_DIR does not exist !
Call Stack (most recent call first):
/home/ubuntu/catkin_ws/devel/share/cartographer/cartographer-config.cmake:57 (set_and_check)
CMakeLists.txt:38 (find_package)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment