本文主要是介绍Ubuntu20.04 Kimera Semantic运行记录,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Ubuntu20.04 Kimera Semantic运行记录
以下基本为官方教程,有部分修改
依赖
sudo apt-get install python3-wstool python3-catkin-tools protobuf-compiler autoconf
sudo apt-get install ros-noetic-cmake-modulessudo apt-get install ros-noetic-image-proc
sudo apt-get install ros-noetic-depth-image-proc
Kimera-Semantics Installation
# Setup catkin workspace
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin init
catkin config --extend /opt/ros/noetic # Change `melodic` to your ROS distro
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
catkin config --merge-devel# Add workspace to bashrc.
echo 'source ~/catkin_ws/devel/setup.bash' >> ~/.bashrc# Clone repo 选择了feature/noetic_fixes分支
cd ~/catkin_ws/src
git clone https://github.com/MIT-SPARK/Kimera-Semantics.git --branch feature/noetic_fixes# Install dependencies from rosinstall file using wstool
wstool init # Use unless wstool is already initialized# Optionally add Kimera-Semantics to the rosinstall file
# wstool scrape# For ssh:
#wstool merge Kimera-Semantics/install/kimera_semantics_ssh.rosinstall
# For https: 选择了这个
wstool merge Kimera-Semantics/install/kimera_semantics_https.rosinstall# Download and update all dependencies
wstool update
编译
# Compile code
catkin build kimera_semantics_ros# Refresh workspace
source ~/catkin_ws/devel/setup.bash
测试运行
三个终端分别运行,记得source
roscore
roslaunch kimera_semantics_ros kimera_semantics.launch play_bag:=true
rviz -d $(rospack find kimera_semantics_ros)/rviz/kimera_semantics_gt.rviz
这篇关于Ubuntu20.04 Kimera Semantic运行记录的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!