参考网址:
(124条消息) 【亲测有效】离线安装WSL windows 10子系统Ubuntu 20.04方法_青柚创客的博客-CSDN博客_wsl 离线安装
Ubuntu - Docker — 从入门到实践 (gitbook.io)
Docker快速搭建cartographer/cartographer_ros编译开发环境 - AustinZ的个人空间 - OSCHINA - 中文开源技术交流社区
安装wsl2
安装docker
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| # 配置http sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release # 配置docker下载安装环境 curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # 安装 sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io # 启动 sudo service docker start
|
安装docker_carto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| # 拉取镜像 # ubuntu18.04 docker pull fdko11/ros:bionic-melodic-cartographer # ubuntu20.04 docker pull fdko11/ros:focal-noetic-cartographer # 运行并创建docker docker run -it --name="carto" --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix fdko11/ros:bionic-melodic-cartographer # 用户名:carto 密码:123456 有sudo权限 # 需要在容器中手动进行一次abseil库编译安装 su carto cd /home/carto/carto_ws/abseil-cpp/ mkdir build cd build cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_PREFIX=/usr/local/stow/absl .. sudo ninja install cd /usr/local/stow sudo stow absl # 编译carto su carto cd /home/carto/carto_ws source /opt/ros/melodic/setup.bash catkin_make_isolated --install --use-ninja
|