YWL0720 / YOLO_ORB_SLAM3

This is an improved version of ORB-SLAM3 that adds an object detection module implemented with YOLOv5 to achieve SLAM in dynamic environments.
240 stars 29 forks source link

运行./build_ros.sh报错 #22

Open Rosa712 opened 1 year ago

Rosa712 commented 1 year ago

按照博主的方式在bashrc里添加了rospkg路径但还是报错 image image 但是运行./build.sh是正常的

YWL0720 commented 1 year ago

ros的问题,是否用了conda环境?

Rosa712 commented 1 year ago

ros的问题,是否用了conda环境?

运行./build_ros.sh时没有使用conda创建的虚拟环境

YWL0720 commented 1 year ago

那先pip install rospkg试试吧

Rosa712 commented 1 year ago

那先pip install rospkg试试吧

我查了以下好像是python版本问题,虽然上面-- Found PythonInterp: /usr/bin/python (found version "2.7.18")显示找到python2.7版本,但是下面File "/opt/ros/noetic/lib/python3/dist-packages/roslib/init.py", line 50, in 仍然时python3和ros自带的python2.7不符所以导致rospkg报错,但是我在bashrc里将python变量指定为python2.7仍未解决问题,目前也不想卸载python3.8会导致其他代码无法运行 image

atacanturk commented 11 months ago

@YWL0720 @Rosa712 same problem. Is catkin workspace necessary to build ros examples?

sensoryu commented 5 hours ago

you can view https://blog.csdn.net/weixin_62952541/article/details/131807996 to solve the problem.