本人使用Ubuntu 20版本的ROS noetic安装TensorFlow,已安装好pip和TensorFlow,如下图:
但是,在编译工作空间catkin_make、添加环境变量source devel/setup.bash、添加TensorFlow环境变量source TensorFlow/bin/activate后,执行roslaunch tensorflow_object_detector usb_cam_detector.launch时,出现如下报错:
unable to import TensorFlow. Is it installed?
sudo apt install python-pip
sudo pip install tensorflow
[ INFO] [1617686379.842567545]: using default calibration URL
[ INFO] [1617686379.845657205]: camera calibration URL: file:///home/zjz/.ros/camera_info/head_camera.yaml
[ INFO] [1617686379.846630956]: Starting 'head_camera' (/dev/video0) at 640x480 via mmap (yuyv) at 30 FPS
[detect_ros-2] process has died [pid 4724, exit code 1, cmd /home/zjz/catkin_ws/devel/lib/tensorflow_object_detector/detect_ros.py image:=/usb_cam_node/image_raw __name:=detect_ros __log:=/home/zjz/.ros/log/aeb3b496-9697-11eb-a888-d9146293a865/detect_ros-2.log].
不知是什么原因以及如何解决。
您好,我是有问必答小助手,你的问题已经有小伙伴为您解答了问题,您看下是否解决了您的问题,可以追评进行沟通哦~
如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~
ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632
请问解决了吗
跟我问题一模一样
进程已死,是配置有问题,再注意看看空格,大小写等问题。