Ask Your Question
0

Autoware.Auto Release Branch 1.0.0 failed to build with colcon

asked 2021-11-08 07:11:48 -0500

eslaaam3 gravatar image

Hi there,

I'm starting out with Autoware.Auto

I followed:

  1. This [https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/installation-ade.html#installation-and-development-install-ade] procedure to install Autoware.Auto with ADE, no errors

  2. Checkout release 1.0.0 following this [https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/installation-ade.html#installation-and-development-setup-ade-home-and-project-checkout], no errors

  3. Entered the environment following [https://autowarefoundation.gitlab.io/autoware.auto/AutowareAuto/installation-ade.html#autotoc_md64], no errors

  4. To make sure everything is alright I built Autoware and I got the following error

ade:~/AutowareAuto (release-1.0.0)$ cd
ade:~$ cd AutowareAuto/
ade:~/AutowareAuto (release-1.0.0)$ colcon build
Starting >>> autoware_auto_cmake
Starting >>> mpark_variant_vendor
Starting >>> autoware_auto_integration_tests
Starting >>> lexus_rx_450h_description
Starting >>> ament_acado
Starting >>> motion_model_testing_simulator
Starting >>> autoware_auto_create_pkg
Starting >>> autoware_auto_examples
Finished <<< autoware_auto_integration_tests [0.36s]                       
Finished <<< autoware_auto_cmake [0.40s]                                   
Starting >>> autoware_auto_common
Starting >>> time_utils
Starting >>> reference_tracking_controller
Starting >>> autoware_auto_algorithm
Starting >>> recordreplay_planner_actions
Starting >>> avp_web_interface
Finished <<< mpark_variant_vendor [0.47s]
Finished <<< lexus_rx_450h_description [0.47s]
Finished <<< motion_model_testing_simulator [0.50s]                    
Starting >>> controller_testing
Finished <<< autoware_auto_examples [0.55s]                           
Finished <<< autoware_auto_create_pkg [0.57s]
Finished <<< avp_web_interface [0.37s]                               
Finished <<< time_utils [0.46s]
Starting >>> motion_testing
Finished <<< reference_tracking_controller [0.49s]                   
Finished <<< autoware_auto_algorithm [0.50s]
Finished <<< autoware_auto_common [0.54s]
Starting >>> autoware_auto_geometry
Starting >>> had_map_utils
Starting >>> motion_model
Starting >>> autoware_auto_tf2
Starting >>> optimization
Starting >>> signal_filters
Starting >>> velodyne_driver
Starting >>> lidar_integration                                         
Starting >>> off_map_obstacles_filter
Starting >>> trajectory_spoofer
Starting >>> covariance_insertion
Starting >>> joystick_vehicle_interface
Finished <<< controller_testing [0.52s]
Starting >>> spinnaker_camera_driver
--- stderr: motion_testing                                             
In file included from /home/micropolis/AutowareAuto/src/control/motion_testing/src/motion_testing/motion_testing.cpp:14:
/home/micropolis/AutowareAuto/src/control/motion_testing/include/motion_testing/motion_testing.hpp:18:10: fatal error: autoware_auto_msgs/msg/trajectory.hpp: No such file or directory
   18 | #include <autoware_auto_msgs/msg/trajectory.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/motion_testing.dir/build.make:63: CMakeFiles/motion_testing.dir/src/motion_testing/motion_testing.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:130: CMakeFiles/motion_testing.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< motion_testing [0.41s, exited with code 2]
Aborted  <<< optimization [0.34s]
Aborted  <<< covariance_insertion [0.29s]
Aborted  <<< signal_filters [0.34s]
Aborted  <<< spinnaker_camera_driver [0.26s]
Aborted  <<< joystick_vehicle_interface [0.30s]
Aborted  <<< velodyne_driver [0.36s]
Aborted  <<< motion_model [0.39s]
Aborted  <<< off_map_obstacles_filter [0.37s]
Aborted  <<< recordreplay_planner_actions [0.95s]
Aborted  <<< lidar_integration [0.55s]                                          
Aborted  <<< ament_acado [1.88s]                                                  
Aborted  <<< autoware_auto_geometry [1.09s]       
Aborted  <<< trajectory_spoofer [1.38s]                                            
Aborted  <<< autoware_auto_tf2 [1.79s]                                             
Aborted  <<< had_map_utils [2.08s]                                 

Summary: 13 packages finished [3.74s]
  1 package failed: motion_testing
  15 packages aborted: ament_acado autoware_auto_geometry autoware_auto_tf2 covariance_insertion had_map_utils joystick_vehicle_interface lidar_integration motion_model off_map_obstacles_filter optimization recordreplay_planner_actions signal_filters spinnaker_camera_driver trajectory_spoofer velodyne_driver
  8 packages had stderr output: autoware_auto_geometry autoware_auto_tf2 had_map_utils joystick_vehicle_interface lidar_integration motion_testing off_map_obstacles_filter trajectory_spoofer
  58 packages not processed

It can't find a file autoware_auto_msgs/msg/trajectory.hpp.

I looked up /opt/AutowareAuto/share/autoware_auto_msgs/msg/ where I found it but it has the extensions .idl instead of .hpp.

ade:~/AutowareAuto (release-1.0.0)$ ll /opt/AutowareAuto ...
(more)
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-11-09 06:01:12 -0500

xmfcx gravatar image

Hello,

Normally you don't need to rebuild the code if you are using ade unless you are doing development on it, you can just run the demos without it.

For the error you are getting, you can follow these from the Troubleshooting section: https://autowarefoundation.gitlab.io/...

In case where ros-foxy-autoware-auto-msgs is installed on the system, colcon uses it instead of the one in the AutowareAuto/src/external/ folder. This may cause errors. To prevent this, please remove the package by:

sudo apt purge -y ros-foxy-autoware-auto-msgs

edit flag offensive delete link more

Comments

Thanks but this solution is for "installation without ADE", I'm using the ADE

Normally you don't need to rebuild the code if you are using ade

The build step exists in this tutorial https://gitlab.com/ApexAI/autowareclass2020/...

So if I don't build it now I will need to build it later either way, so I built it at first to know when I get errors if they were caused by any modification of this tutorial or it's just the source code doesn't compile

eslaaam3 gravatar image eslaaam3  ( 2021-11-11 04:04:56 -0500 )edit

I understand, the same solution should work for your case too. Could you try to run sudo apt purge -y ros-foxy-autoware-auto-msgs and rm bulid/ install/ log/ inside the Autoware.Auto folder and retry compiling?

xmfcx gravatar image xmfcx  ( 2021-11-11 04:10:00 -0500 )edit

It worked when I installed the ros-foxy-autoware-auto-msgs after a cleaning

eslaaam3 gravatar image eslaaam3  ( 2021-11-11 09:19:10 -0500 )edit
0

answered 2021-12-01 03:44:40 -0500

eslaaam3 gravatar image

updated 2021-12-01 03:45:14 -0500

Another approach is indicated by @marcusvinicius178 here https://github.com/lgsvl/simulator/issues/1600#...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-11-08 07:11:48 -0500

Seen: 190 times

Last updated: Dec 01 '21