ROS catkin_make 问题

在测试TurtleBot3 是出现ROS配置问题

问题1:

安装ros之后,dependent不能正常,报错Python不能import catkin_pkg, 推测可能是anaconda 影响了ros环境,于是删除anaconda,重新安装按照turtule tutorial 安装ros,期间先卸载了ros, 然后删除bashrc中的path,再重新安装。(记得删除catkin_ws, 否则可能会影响下一次ros安装)

之后可以正常安装ros,和dependent,但是catkin_make 不能成功,报错:

The program 'catkin_make' is currently not installed. You can install it by typing:
sudo apt install catkin

 

然后试图安装catkin_make, 报错:

 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 catkin : Depends: python-catkin-pkg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

 

google查找,可能是因为catkin_make 安装没有制定特定的版本(kinetic), 于是尝试:

sudo apt install ros-kinetic-catkin

发现catkin 已经安装完成.

于是推测以上原因可能因为安装完成ros之后没有source。

所以手动进行source :

source /opt/ros/kinetic/setup.bash

之后再执行catkin_make ,成功!

参考链接:

https://answers.ros.org/question/258444/sudo-apt-install-catkin-not-working/


版权声明:本文为LeoMancer原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。