I am trying to get started with ROS2 Humble and when running colcon build no executable files are created.
My project structure looks like this:
examples
├── CMakeLists.txt
├── package.xml
└── src
├── CMakeLists.txt
└── helloWorld.cpp
File contents:
examples/CMakeLists.txt:
cmake_minimum_required(VERSION 3.25)
project(examples LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(ament_cmake REQUIRED)
add_subdirectory(src)
ament_package()
examples/src/CMakeLists.txt:
add_executable(helloWorld helloWorld.cpp)
examples/helloWorld.cpp
#include
using std::cout;
using std::endl;
int main()
{
cout
Trending Articles
More Pages to Explore .....