运行arbotix报错,如何解决

ModuleNotFoundError: No module named 'rospkg'
shutdown request: [/joint_state_publisher_gui] Reason: new node registered with same name
[dviver-5] process has died [pid 18346, exit code 1, cmd /home/melodic/catkin_ws/src/arbotix_ros/arbotix_python/bin/arbotix_driver __name:=dviver __log:=/home/melodic/.ros/log/c8071278-7a06-11ec-aa34-000c295384a4/dviver-5.log].
log file: /home/melodic/.ros/log/c8071278-7a06-11ec-aa34-000c295384a4/dviver-5*.log

报错贴图

原因:arbotix是运行python3 而ros运行是python2

解决:进入src目录下,进入arbotix_ros功能包,进入arbotix_python,进入bin,进入arbotix_driver将pyhon3改成pyhon2.7

你可能感兴趣的:(ros学习中小问题,ubuntu,人工智能)