我目前正在使用一个名为smach带旋律的ros软件包。然而,现在我需要升级我的旋律版本,以支持水晶,因为项目使用ROS2。SMACH包依赖于catkin。是否有可能用水晶(ROS2)创建catkin工作区?我尝试了以下几点:
source /opt/ros/$CHOOSE_ROS_DISTRO/setup.bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make此命令给出了以下结果
Command 'catkin_make' not found, but can be installed with:
sudo apt install catkin
developer@bionic-base:~/catkin_ws$ sudo apt install catkin
[sudo] password for developer:
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.即使在使用命令安装python-catkin-pkg之后,此错误仍然存在。
sudo apt-get install python-catkin-pkg我还试图消除catkin对Ubuntu的依赖。
sudo apt-get install cmake python-catkin-pkg python-empy python-nose libgtest-dev
https://stackoverflow.com/questions/55851501
复制相似问题