当前位置: 首页 > news >正文 旅行社网站建设规划的内容如何做微信小程序店铺 news 2025/10/30 3:41:57 旅行社网站建设规划的内容,如何做微信小程序店铺,如何设计自己想要的图片,虚拟主机如何做网站【ROS】ros-noetic和anaconda联合使用 文章目录 【ROS】ros-noetic和anaconda联合使用1. 安装anaconda2. 创建虚拟环境3. 查看python解释器路径4. 在虚拟环境中使用任意的包5. 创建工作空间和ros功能包进行测试Reference 1. 安装anaconda 在Ubuntu20.04中安装anaconda可以参考…【ROS】ros-noetic和anaconda联合使用 文章目录 【ROS】ros-noetic和anaconda联合使用1. 安装anaconda2. 创建虚拟环境3. 查看python解释器路径4. 在虚拟环境中使用任意的包5. 创建工作空间和ros功能包进行测试Reference 1. 安装anaconda 在Ubuntu20.04中安装anaconda可以参考博主的这篇博客这里就不再赘述。下面简要介绍下博主使用的环境 2. 创建虚拟环境 Anaconda基本环境管理语法如下 创建虚拟环境 conda create -n your-virtualenv-name python3.8激活虚拟环境 conda activate your-virtualenv-name激活虚拟环境后使用pip install rospkg rospy catkin_tools来安装ros依赖 #in your virtual env pip install rospkg rospy catkin_tools3. 查看python解释器路径 笔者使用的是ros-noetic版本安装的anaconda3在ros-noetic中的原生python版本为python3.8.10如果使用的ros-melodic版本那么原生python应该三是python2.7。 下面我们验证一下基本信息是否正确打开一个terminal which python3默认的python3解释器路径是/usr/bin/python3 然后查看anaconda虚拟环境中的python3解释器路径 conda activate your_virtualenv_name which python3比如笔者的虚拟环境名字是metaRL查看的结果如下 4. 在虚拟环境中使用任意的包 笔者在这个环境中配置了torch-v2.0.1具体教程参考这篇博客这个所需要的包可以是任何你想使用的包。我们验证一下是否能顺利导入 conda activate your_virtualenv_name python import rospy print(rospy.__file__) import torch print(torch.__file__)如下所示我们顺利导入了rospy和torch并且查看了其存放路径 5. 创建工作空间和ros功能包进行测试 mkdir -p ~/test_ws/src cd ~/test_ws/src/ catkin_init_workspace catkin_create_pkg test_ros_python std_msgs rospy cd .. catkin_make echo source ~/test_ws/devel/setup.bash ~/.bashrc source ~/.bashrc然后创建一个测试脚本 roscd test_ros_python mkdir scripts touch test_node.py chmod x test_node.py然后在test_node中编写以下内容 #! /usr/bin/env python # coding :utf-8print(\n*****************************************\n\t[test libraries]:\n) import rospy import torchprint( - rospy.__file__ %s%rospy.__file__) print( - scipy.__file__ %s%torch.__file__) # check cuda is ready or not print(cuda is {}.format(ready if torch.cuda.is_available() else not ready)) print(\n*****************************************\n\t[finish test]\n)if __name__ __main__:rospy.init_node(test_node, anonymousTrue)rospy.loginfo( hello world )这样进行测试之后发现并不能顺利导入我所需要的torch包如下图所示 这个结果与我们之前在终端中的结果相违背那么可以详细查看一下python包的搜索路径利用sys库 #! /usr/bin/env python # coding :utf-8print(\n*****************************************\n\t[test libraries]:\n) import rospy import sys for p in sys.path:print(p)# print() # import torchprint( - rospy.__file__ %s%rospy.__file__) # print( - scipy.__file__ %s%torch.__file__) # # check cuda is ready or not # print(cuda is {}.format(ready if torch.cuda.is_available() else not ready)) print(\n*****************************************\n\t[finish test]\n)if __name__ __main__:rospy.init_node(test_node, anonymousTrue)rospy.loginfo( hello world )查看的搜索路径如下 奇怪的是这里并没有我们之前在终端中得到的路径 我们可以手动将这个路径添加到python的搜索路径当中 /home/your-user-name/anaconda3/envs/your-virturalenv-name/lib/python3.8/site-packages得到如下的脚本文件 #! /usr/bin/env python # coding :utf-8print(\n*****************************************\n\t[test libraries]:\n) import rospy import sys sys.path.append(/home/sjh/anaconda3/envs/metaRL/lib/python3.8/site-packages) for p in sys.path:print(p)print() import torchprint( - rospy.__file__ %s%rospy.__file__) print( - scipy.__file__ %s%torch.__file__) # check cuda is ready or not print(cuda is {}.format(ready if torch.cuda.is_available() else not ready)) print(\n*****************************************\n\t[finish test]\n)if __name__ __main__:rospy.init_node(test_node, anonymousTrue)rospy.loginfo( hello world )成功导入了torch Reference 【Linux】Ubuntu20.04版本配置pytorch环境2023.09.05【教程】 【ROS】如何在ROS中使用anaconda虚拟环境 ROS图像的Deeplab v3实时语义分割ROSPytorch 文章转载自: http://www.morning.mxbks.cn.gov.cn.mxbks.cn http://www.morning.jghty.cn.gov.cn.jghty.cn http://www.morning.ydnxm.cn.gov.cn.ydnxm.cn http://www.morning.attorneysportorange.com.gov.cn.attorneysportorange.com http://www.morning.hytr.cn.gov.cn.hytr.cn http://www.morning.zzaxr.cn.gov.cn.zzaxr.cn http://www.morning.mxlwl.cn.gov.cn.mxlwl.cn http://www.morning.jzmqk.cn.gov.cn.jzmqk.cn http://www.morning.fhqsm.cn.gov.cn.fhqsm.cn http://www.morning.kdfqx.cn.gov.cn.kdfqx.cn http://www.morning.cmqrg.cn.gov.cn.cmqrg.cn http://www.morning.gsyns.cn.gov.cn.gsyns.cn http://www.morning.kjmcq.cn.gov.cn.kjmcq.cn http://www.morning.tqdqc.cn.gov.cn.tqdqc.cn http://www.morning.dsncg.cn.gov.cn.dsncg.cn http://www.morning.mbzlg.cn.gov.cn.mbzlg.cn http://www.morning.ktntj.cn.gov.cn.ktntj.cn http://www.morning.qjdqj.cn.gov.cn.qjdqj.cn http://www.morning.bydpr.cn.gov.cn.bydpr.cn http://www.morning.kzhxy.cn.gov.cn.kzhxy.cn http://www.morning.pymff.cn.gov.cn.pymff.cn http://www.morning.lgqdl.cn.gov.cn.lgqdl.cn http://www.morning.dsxgc.cn.gov.cn.dsxgc.cn http://www.morning.jgcrr.cn.gov.cn.jgcrr.cn http://www.morning.xnqwk.cn.gov.cn.xnqwk.cn http://www.morning.zstbc.cn.gov.cn.zstbc.cn http://www.morning.fdmfn.cn.gov.cn.fdmfn.cn http://www.morning.yjqkk.cn.gov.cn.yjqkk.cn http://www.morning.2d1bl5.cn.gov.cn.2d1bl5.cn http://www.morning.xdqrz.cn.gov.cn.xdqrz.cn http://www.morning.zcncb.cn.gov.cn.zcncb.cn http://www.morning.pgggs.cn.gov.cn.pgggs.cn http://www.morning.kzcz.cn.gov.cn.kzcz.cn http://www.morning.jbysr.cn.gov.cn.jbysr.cn http://www.morning.pqrhb.cn.gov.cn.pqrhb.cn http://www.morning.mjglk.cn.gov.cn.mjglk.cn http://www.morning.jcwt.cn.gov.cn.jcwt.cn http://www.morning.cfnht.cn.gov.cn.cfnht.cn http://www.morning.nkhdt.cn.gov.cn.nkhdt.cn http://www.morning.tmfm.cn.gov.cn.tmfm.cn http://www.morning.trpq.cn.gov.cn.trpq.cn http://www.morning.txltb.cn.gov.cn.txltb.cn http://www.morning.kdrly.cn.gov.cn.kdrly.cn http://www.morning.tgwfn.cn.gov.cn.tgwfn.cn http://www.morning.spwln.cn.gov.cn.spwln.cn http://www.morning.kpcjl.cn.gov.cn.kpcjl.cn http://www.morning.xwlmg.cn.gov.cn.xwlmg.cn http://www.morning.mnmrx.cn.gov.cn.mnmrx.cn http://www.morning.lbjdx.cn.gov.cn.lbjdx.cn http://www.morning.yxzfl.cn.gov.cn.yxzfl.cn http://www.morning.qyxwy.cn.gov.cn.qyxwy.cn http://www.morning.kjkml.cn.gov.cn.kjkml.cn http://www.morning.ie-comm.com.gov.cn.ie-comm.com http://www.morning.rui931.cn.gov.cn.rui931.cn http://www.morning.cnkrd.cn.gov.cn.cnkrd.cn http://www.morning.bfhrj.cn.gov.cn.bfhrj.cn http://www.morning.dnqliv.cn.gov.cn.dnqliv.cn http://www.morning.bchgl.cn.gov.cn.bchgl.cn http://www.morning.rfxyk.cn.gov.cn.rfxyk.cn http://www.morning.bprsd.cn.gov.cn.bprsd.cn http://www.morning.tbcfj.cn.gov.cn.tbcfj.cn http://www.morning.mnjwj.cn.gov.cn.mnjwj.cn http://www.morning.mrqwy.cn.gov.cn.mrqwy.cn http://www.morning.ltkms.cn.gov.cn.ltkms.cn http://www.morning.lmpfk.cn.gov.cn.lmpfk.cn http://www.morning.wqbzt.cn.gov.cn.wqbzt.cn http://www.morning.cpfx.cn.gov.cn.cpfx.cn http://www.morning.mhnb.cn.gov.cn.mhnb.cn http://www.morning.bpttm.cn.gov.cn.bpttm.cn http://www.morning.dcccl.cn.gov.cn.dcccl.cn http://www.morning.dpzcc.cn.gov.cn.dpzcc.cn http://www.morning.mjtft.cn.gov.cn.mjtft.cn http://www.morning.mtrrf.cn.gov.cn.mtrrf.cn http://www.morning.jyfrz.cn.gov.cn.jyfrz.cn http://www.morning.lnyds.cn.gov.cn.lnyds.cn http://www.morning.kbkcl.cn.gov.cn.kbkcl.cn http://www.morning.bbtn.cn.gov.cn.bbtn.cn http://www.morning.hkswt.cn.gov.cn.hkswt.cn http://www.morning.lyldhg.cn.gov.cn.lyldhg.cn http://www.morning.xxlz.cn.gov.cn.xxlz.cn 查看全文 http://www.tj-hxxt.cn/news/261285.html 相关文章: 网站开发的前端和后端有哪些框架怎么做微信小程序平台 深圳手机网站制作公司排名企业建网站分类信息网 滨州聊城网站建设为什么浏览器打不开一些网站 做分析仪器推广的网站网站建设怎么添加图片上去 永久免费高配云服务器seo服务销售招聘 网站建设艾金手指科杰响应式网站对seo 重庆做网站公司排名怎样做外贸网站建设 百度地图嵌入公司网站页面模板只能选择已发表的内容 建设公司网站征集信息的通知百度互联网营销顾问是做什么的 网站配色 蓝绿百度注册网站 桂林的网站建设公司一个网站3个相似域名 住房建设厅网站吕梁推广型网站开发 淘客网站app建设教人做饮料的网站 青浦营销型网站建设室内设计者联盟官网 策划工资一般多少钱seo权重优化软件 公司建设门户网站的总结网站开发策划书怎么写 印度做网站设计二次元风格wordpress模板 西安做一个企业网站要多少钱温州建站模板搭建 网站页面一般做多大建设网站费用要进固定资产吗 网站后台用户名密码长沙网站制作有哪些公司 常州做网站价位郑州整站网站优化 企业网站建设报价方案模板演示网站 石家庄做网站最好的公司有哪些单页营销网站后台 静态网站开发实训的目的网站做线支付平台系统多少钱 做网站客户总是要退款不同域名指向同一网站 建网站要多少钱呢网站开发要学多久 dede 管理多个网站pc端网站开发技术 中山手机网站建设电话西安巨久科技网站建设 浙江省建设科技推广中心网站建设工程公司名字大全三个字 盐城网站建设策划方案北京软装设计公司前十名