您的位置:首页 > 娱乐 > 明星 > 深圳出国劳务公司官网_网络营销是什么部门_百度指数人群画像哪里查询_互联网销售是做什么的

深圳出国劳务公司官网_网络营销是什么部门_百度指数人群画像哪里查询_互联网销售是做什么的

2025/2/24 1:15:43 来源:https://blog.csdn.net/black0moonlight/article/details/145664490  浏览:    关键词:深圳出国劳务公司官网_网络营销是什么部门_百度指数人群画像哪里查询_互联网销售是做什么的
深圳出国劳务公司官网_网络营销是什么部门_百度指数人群画像哪里查询_互联网销售是做什么的

 Windows Docker运行GitHub - ZJU-FAST-Lab/Implicit-SVSDF-Planner: [SIGGRAPH 2024 & TOG]

 1. 设置环境

我将项目git clone在D:/Github目录中。

下载ubuntu20.04 noetic镜像

docker pull osrf/ros:noetic-desktop-full-focal

 启动容器,挂载主机的D:/Github文件夹为/home,并将容器初始进入的路径设为/home。

docker run -dit -v D:/Github:/home -w /home --name noetic osrf/ros:noetic-desktop-full-focal

进入容器并编译项目:

docker exec -it noetic bash
source /opt/ros/noetic/setup.bash
cd Implicit-SVSDF-Planner/
./build.sh

报错1:

root@18267cd27b32:/home/Implicit-SVSDF-Planner# ./build.sh bash: ./build.sh: /bin/bash^M: bad interpreter: No such file or directory

将win字符转译为unix

sed -i 's/\r$//' build.sh

报错2:

Compilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead

安装包解决:

sudo apt update
sudo apt install gfortran

 编译结束

2. 运行

source /opt/ros/noetic/setup.bash
cd Implicit-SVSDF-Planner/
source devel/setup.bash
export DISPLAY=host.docker.internal:0
roslaunch plan_manager run_sdTunnel.launch

使用VcXsrv可视化时出现了rviz的报错,参考以下使用MobaXterm完成运行。

win10 下 wsl2 使用 rviz 报错 Segmentation fault 段错误 (核心已转储) 的另一可能解决方案_rviz启动报错segmentation fault-CSDN博客

测试gpu但发现没有区别的运行代码:

docker run -dit -v D:/Github:/home -w /home --gpus all -e DISPLAY=host.docker.internal:0.0 -v /tmp/.X11-unix:/tmp/.X11-unix --network=host --privileged -it --name testrviz ros:noetic bash

 3. 保存镜像

docker commit noetic my_new_image:latest

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com