0

我目前正在使用一个名为 smach 的 ros 包和旋律。但是,现在我需要将我的旋律版本升级到水晶以支持 ROS2,因为该项目使用 DDS。SMACH 包依赖于 catkin。是否可以用水晶(ROS2)创建一个柳絮工作区?我尝试了以下方法:

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

我还尝试在 Ubuntu 上消除 catkin 的依赖

sudo apt-get install cmake python-catkin-pkg python-empy python-nose libgtest-dev

4

2 回答 2

3

似乎开发人员使用 ament 在 ROS2 中构建他们的包

例子

教程

于 2019-04-25T22:28:59.883 回答
-1

源 /opt/ros/melodic/setup.bash

于 2019-10-31T10:48:25.507 回答