f1tenth_system ROS build using catkin build "ament_python not recognized"

35 views
Skip to first unread message

Yair Nahum

unread,
Dec 27, 2023, 4:33:00 PM12/27/23
to F1_10
Hi,


When trying to build the ROS VESC related packages using catkin_make or "catkin build"
I get an error related to ament_python not found:

$catkin_make
-- ~~  - f1tenth_stack (unknown)
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message):
  Unknown build type 'ament_python' for package 'f1tenth_stack'
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:69 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/yair/work/f1tenth/f1tenth_ws2/build/CMakeFiles/CMakeOutput.log".
See also "/home/yair/work/f1tenth/f1tenth_ws2/build/CMakeFiles/CMakeError.log".
...
...

on  different ws:
$catkin build
...
...
-----------------------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
-----------------------------------------------------------------------
[build] Found 1 packages in 0.0 seconds.
[build] Updating package table.
[build] Warning: Skipping package `f1tenth_stack` because it has an unsupported package build type: `ament_python`
[build] Note: Available build types:
[build]  - `catkin`
[build]  - `cmake`
Starting  >>> catkin_tools_prebuild
Finished  <<< catkin_tools_prebuild                [ 11.0 seconds ]
[build] Summary: All 1 packages succeeded!
...
...



I use melodic ROS version on Ubunto 18.04:
f1tenth/f1tenth_ws$ rosversion -d
melodic

Is this OK? was the configuration completed  and I just need to run the setup script?
In the site instructions, it shows only catkin_make build command which seems to finish w/ errors.

Did anyone face such a problem? Any ideas?

Thanks,
Yair

Jaroslav Klapálek

unread,
Jan 2, 2024, 1:13:42 AM1/2/24
to F1_10
Hello,

 default branch of that repository is `foxy-devel` which is created for ROS2. You have to switch to different branch, e.g., `melodic`.

Happy new year!

J.

Dne středa 27. prosince 2023 v 22:33:00 UTC+1 uživatel Yair Nahum napsal:
Reply all
Reply to author
Forward
0 new messages