不能 运行 catkin 在 ubuntu 20.04 上构建

cannot run catkin build on ubuntu 20.04

我有 Ubuntu 20.04 并且我刚刚安装了 ROS noetic 和 catkin。

但每次我这样做时 catkin build 都会有一个错误列表,无法继续。你们能帮我解决这个问题吗

Traceback (most recent call last):
  File "/usr/local/bin/catkin", line 5, in <module>
    from catkin_tools.commands.catkin import main
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/commands/catkin.py", line 28, in <module>
    from catkin_tools.common import is_tty
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/common.py", line 23, in <module>
    import trollius as asyncio
  File "/usr/local/lib/python3.8/dist-packages/trollius/__init__.py", line 21, in <module>
    from .base_events import *
  File "/usr/local/lib/python3.8/dist-packages/trollius/base_events.py", line 42, in <module>
    from . import tasks
  File "/usr/local/lib/python3.8/dist-packages/trollius/tasks.py", line 565
    def async(coro_or_future, loop=None):
        ^
SyntaxError: invalid syntax

apt and pip3 versions of catkin_tools are broken for noetic. Workaround is to install like this:

sudo pip3 install git+https://github.com/catkin/catkin_tools.git

参考; https://github.com/Rayman/ros-get/issues/95