Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/humble.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:
- humble
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
fail-fast: false
runs-on: ubuntu-22.04
container:
image: ubuntu:jammy
steps:
- uses: actions/checkout@v4
with:
ref: humble
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: humble
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/humble_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ on:
- cron: '0 0 * * 6'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
fail-fast: false
runs-on: ubuntu-22.04
container:
image: ubuntu:jammy
steps:
- uses: actions/checkout@v4
with:
ref: humble
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: humble
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:
- jazzy
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: jazzy
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: jazzy
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/jazzy_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ on:
- cron: '0 0 * * 6'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: jazzy
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: jazzy
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/kilted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:
- kilted
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: kilted
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: kilted
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/kilted_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ on:
- cron: '0 0 * * 6'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: kilted
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: kilted
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/rolling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ on:
- rolling
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: rolling
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: rolling
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/rolling_cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@ on:
- cron: '0 0 * * 6'
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04]
fail-fast: false
runs-on: ubuntu-24.04
container:
image: ubuntu:noble
steps:
- uses: actions/checkout@v4
with:
ref: rolling
- name: Setup ROS 2
uses: ros-tooling/setup-ros@0.7.15
with:
required-ros-distributions: rolling
- name: build and test
uses: ros-tooling/action-ros-ci@0.4.5
with:
Expand Down
7 changes: 5 additions & 2 deletions navmap_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ target_include_directories(${PROJECT_NAME} PUBLIC
$<INSTALL_INTERFACE:include>
${PCL_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME} PRIVATE
pcl_conversions::pcl_conversions
${PCL_LIBRARIES}
)
target_link_libraries(${PROJECT_NAME} PUBLIC
rclcpp::rclcpp
navmap_core::navmap_core
pcl_conversions::pcl_conversions
${navmap_ros_interfaces_TARGETS}
${geometry_msgs_TARGETS}
${nav_msgs_TARGETS}
${sensor_msgs_TARGETS}
${std_srvs_TARGETS}
${PCL_LIBRARIES}
)
add_executable(slam_server_app
src/slam_server_app.cpp
Expand Down Expand Up @@ -76,6 +78,7 @@ ament_export_dependencies(
rclcpp
navmap_core
navmap_ros_interfaces
nav_msgs
geometry_msgs
sensor_msgs
std_srvs
Expand Down
36 changes: 23 additions & 13 deletions navmap_rviz_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
cmake_minimum_required(VERSION 3.10)
project(navmap_rviz_plugin)

# 1) Qt y AUTOMOC
find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

# add_definitions(-DQT_NO_KEYWORDS)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
Expand All @@ -20,35 +18,47 @@ find_package(navmap_ros_interfaces REQUIRED)
find_package(navmap_ros REQUIRED)
find_package(navmap_core REQUIRED)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Core)

qt5_wrap_cpp(NAVMAP_MOC_SRCS
set(QT_LIBRARIES
Qt${QT_VERSION_MAJOR}::Core
Qt${QT_VERSION_MAJOR}::Gui
)

set(NAVMAP_MOC_SRCS
include/navmap_rviz_plugin/NavMapDisplay.hpp
include/navmap_rviz_plugin/navmap_goal_tool.hpp
include/navmap_rviz_plugin/navmap_pose_tool.hpp
)

if (${QT_VERSION_MAJOR} GREATER "5")
qt_standard_project_setup()
qt_wrap_cpp(NAVMAP_MOC_SRCS
include/navmap_rviz_plugin/NavMapDisplay.hpp
include/navmap_rviz_plugin/navmap_goal_tool.hpp
include/navmap_rviz_plugin/navmap_pose_tool.hpp
)
endif()

add_library(${PROJECT_NAME} SHARED
src/navmap_rviz_plugin/NavMapDisplay.cpp
src/navmap_rviz_plugin/navmap_goal_tool.cpp
src/navmap_rviz_plugin/navmap_pose_tool.cpp
include/navmap_rviz_plugin/NavMapDisplay.hpp
include/navmap_rviz_plugin/navmap_goal_tool.hpp
include/navmap_rviz_plugin/navmap_pose_tool.hpp
${NAVMAP_MOC_SRCS}
)
target_link_libraries(navmap_rviz_plugin PUBLIC
${navmap_ros_interfaces_TARGETS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
Qt${QT_VERSION_MAJOR}::Widgets
navmap_ros::navmap_ros
navmap_core::navmap_core
pluginlib::pluginlib
rclcpp::rclcpp
rviz_common::rviz_common
rviz_rendering::rviz_rendering
rviz_default_plugins::rviz_default_plugins
Qt5::Core
Qt5::Widgets
)
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down Expand Up @@ -84,12 +94,12 @@ endif()
ament_export_libraries(${PROJECT_NAME})
ament_export_targets(export_${PROJECT_NAME})
ament_export_dependencies(
Qt6
rclcpp
pluginlib
rviz_common
rviz_rendering
rviz_default_plugins
Qt5
navmap_ros_interfaces
geometry_msgs
std_msg
Expand Down
Loading