ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Autoware related problem. Runtime manager and roscore only flash then disappear and leave no error massage.

asked 2019-05-24 10:29:42 -0500

datnguyen gravatar image

updated 2019-05-24 11:07:11 -0500

gvdhoorn gravatar image

I am trying to run Autoware after completing the installation instruction from the github: ( https://github.com/autowarefoundation... ) but when I ran ~/Autoware/ros$ ./run the run time manager and roscore windows only popped up then dissapearred immediately. I use the docker for installation and docker hub "as is" for Autoware docker setup. I have checked the CUDA nvidia-docker service with: $ sudo nvidia-docker run --rm nvidia/cuda nvidia-smi and it works judging by the output about driver version, CUDA version, GPU, etc. However, when I ran ~/Autoware/ros$ ./colcon_release, I got colcon build failure.

[0.170s] ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.package_identification.python': No module named 'setuptools.config', 'setuptools' needs to be at least version 30.3.0, if a newer version is not available from the package manager use 'pip3 install -U setuptools' to update to the latest version
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 98, in load_entry_points
    extension_type = load_entry_point(entry_point)
  File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 140, in load_entry_point
    return entry_point.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/colcon_core/package_identification/python.py", line 12, in <module>
    from setuptools.config import read_configuration
ImportError: No module named 'setuptools.config', 'setuptools' needs to be at least version 30.3.0, if a newer version is not available from the package manager use 'pip3 install -U setuptools' to update to the latest version

[0.173s] ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.package_identification.python_setup_py': No module named 'setuptools.config', 'setuptools' needs to be at least version 30.3.0, if a newer version is not available from the package manager use 'pip3 install -U setuptools' to update to the latest version
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 98, in load_entry_points
    extension_type = load_entry_point(entry_point)
  File "/usr/lib/python3/dist-packages/colcon_core/entry_point.py", line 140, in load_entry_point
    return entry_point.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/colcon_python_setup_py/package_identification/python_setup_py.py", line 20, in <module>
    from colcon_core.package_identification.python import \
  File "/usr/lib/python3/dist-packages/colcon_core/package_identification/python.py", line 12, in <module>
    from setuptools.config import read_configuration
ImportError: No module named 'setuptools.config', 'setuptools' needs to be at least version 30.3.0, if a newer version is not available from the package manager use 'pip3 install -U setuptools' to update to the latest version

Starting >>> autoware_build_flags
Starting >>> autoware_msgs
Starting >>> autoware_config_msgs
Starting >>> tablet_socket_msgs
Starting >>> adi_driver
Starting >>> as
Starting >>> astar_search
Starting >>> autoware_bag_tools
Starting >>> autoware_can_msgs
Starting >>> autoware_driveworks_gmsl_interface
Starting >>> autoware_health_checker
Starting >>> autoware_launcher
--- stderr: autoware_bag_tools                                            
CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "Findcatkin.cmake ...
(more)
edit retag flag offensive close merge delete

Comments

It looks like you are missing two things:

  1. ROS does not appear to be installed in your docker image.
  2. The Python3 package setuptools is not installed in your docker image.

Under the "Autoware Docker Setup" section from the instructions you linked to, which method did you follow?

Josh Whitley gravatar image Josh Whitley  ( 2019-05-28 15:06:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-05-30 07:44:54 -0500

datnguyen gravatar image

updated 2019-05-30 07:53:07 -0500

@Maximus5684

Thank you for your response! Fortunately, I have managed to solve it. Your suggestion is correct. I did not pull Autoware into the docker folder which is one part of the problem. So I fixed that. Moreover, the run.sh file from Autoware github seems to be wrong because when I try to execute it by sudo bash run.sh, I got the error UID = "0" already exists if I remember correctly. So I change the run.sh script to:

#!/bin/sh

XSOCK=/tmp/.X11-unix

XAUTH=/home/$USER/.Xauthority

SHARED_DIR=/home/autoware/.autoware

HOST_DIR=/home/$USER/.autoware

nvidia-docker run \

    -it --rm \
    --volume=$XSOCK:$XSOCK:rw \
    --volume=$XAUTH:$XAUTH:rw \
    --volume=$HOST_DIR:$SHARED_DIR:rw \
    --env="XAUTHORITY=${XAUTH}" \
    --env="DISPLAY=${DISPLAY}" \
    -u autoware \
    --privileged -v /dev/bus/usb:/dev/bus/usb \
    --net=host \
    autoware/autoware:latest-kinetic

according to this guide: https://ai4sig.org/2018/07/docker-for...

Then I ran sudo bash run.sh again in Autoware/docker/generic directory and it led me to the docker terminal.

After that, I ran cd Autoware/ros and ./run

The run time manager showed up on the screen this time :))).

However, now I have to run ~Autoware/ros: sudo bash run.sh every time to enter the docker terminal. Is there any better way to do this?

Thanks!!!

edit flag offensive delete link more

Comments

@datnguyen you need to install Nvidia docker v2 to make use of the run.sh script, also it shouldn't be run using sudo as you can see here

sgermanserrano gravatar image sgermanserrano  ( 2019-06-03 03:22:33 -0500 )edit

@sgermanserrano - I think that link is broken.

i_robot_flight gravatar image i_robot_flight  ( 2019-07-01 15:37:32 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-24 10:29:42 -0500

Seen: 515 times

Last updated: May 30 '19