Skip to content

Commit f81f61d

Browse files
authored
Merge branch 'ros2:rolling' into patch-8
2 parents 23d815b + 951865f commit f81f61d

File tree

188 files changed

+3826
-1275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+3826
-1275
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ lib
77
**/.idea/**
88
*.project
99
*.cproject
10+
.externalToolBuilders/*

.vscode/settings.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"files.associations": {
3+
"cctype": "cpp",
4+
"clocale": "cpp",
5+
"cmath": "cpp",
6+
"cstdarg": "cpp",
7+
"cstddef": "cpp",
8+
"cstdio": "cpp",
9+
"cstdlib": "cpp",
10+
"cstring": "cpp",
11+
"ctime": "cpp",
12+
"cwchar": "cpp",
13+
"cwctype": "cpp",
14+
"any": "cpp",
15+
"array": "cpp",
16+
"atomic": "cpp",
17+
"strstream": "cpp",
18+
"bit": "cpp",
19+
"bitset": "cpp",
20+
"cfenv": "cpp",
21+
"charconv": "cpp",
22+
"chrono": "cpp",
23+
"cinttypes": "cpp",
24+
"codecvt": "cpp",
25+
"compare": "cpp",
26+
"complex": "cpp",
27+
"concepts": "cpp",
28+
"condition_variable": "cpp",
29+
"cstdint": "cpp",
30+
"deque": "cpp",
31+
"forward_list": "cpp",
32+
"list": "cpp",
33+
"map": "cpp",
34+
"set": "cpp",
35+
"string": "cpp",
36+
"unordered_map": "cpp",
37+
"unordered_set": "cpp",
38+
"vector": "cpp",
39+
"exception": "cpp",
40+
"algorithm": "cpp",
41+
"functional": "cpp",
42+
"iterator": "cpp",
43+
"memory": "cpp",
44+
"memory_resource": "cpp",
45+
"numeric": "cpp",
46+
"optional": "cpp",
47+
"random": "cpp",
48+
"ratio": "cpp",
49+
"regex": "cpp",
50+
"source_location": "cpp",
51+
"string_view": "cpp",
52+
"system_error": "cpp",
53+
"tuple": "cpp",
54+
"type_traits": "cpp",
55+
"utility": "cpp",
56+
"hash_map": "cpp",
57+
"hash_set": "cpp",
58+
"format": "cpp",
59+
"fstream": "cpp",
60+
"future": "cpp",
61+
"initializer_list": "cpp",
62+
"iomanip": "cpp",
63+
"iosfwd": "cpp",
64+
"iostream": "cpp",
65+
"istream": "cpp",
66+
"limits": "cpp",
67+
"mutex": "cpp",
68+
"new": "cpp",
69+
"numbers": "cpp",
70+
"ostream": "cpp",
71+
"semaphore": "cpp",
72+
"shared_mutex": "cpp",
73+
"span": "cpp",
74+
"sstream": "cpp",
75+
"stdexcept": "cpp",
76+
"stdfloat": "cpp",
77+
"stop_token": "cpp",
78+
"streambuf": "cpp",
79+
"thread": "cpp",
80+
"typeindex": "cpp",
81+
"typeinfo": "cpp",
82+
"valarray": "cpp",
83+
"variant": "cpp"
84+
}
85+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ For some displays, the [documentation is updated](docs/FEATURES.md).
1717
| Axes | Move Camera | Orbit | Displays |
1818
| Camera | Focus Camera | XY Orbit | Help |
1919
| DepthCloud | Measure | First Person | Selections |
20-
| Effort | Select | Third Person Follower | Time |
21-
| Fluid | 2D Nav Goal | Top Down Orthographic | Tool Properties |
22-
| Grid | Publish Point | | Views |
20+
| Effort | Select | Frame Aligned | Time |
21+
| Fluid | 2D Nav Goal | Third Person Follower | Tool Properties |
22+
| Grid | Publish Point | Top Down Orthographic | Views |
2323
| Grid Cells | Initial Pose |
2424
| Illuminance | Interact |
2525
| Image |

rviz2/CHANGELOG.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,59 @@
22
Changelog for package rviz2
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
15.1.9 (2025-09-04)
6+
-------------------
7+
* get rid of deprecated rclcpp::spin_some() (`#1567 <https://github.com/ros2/rviz/issues/1567>`_)
8+
* Contributors: Alejandro Hernández Cordero
9+
10+
15.1.8 (2025-08-22)
11+
-------------------
12+
13+
15.1.7 (2025-07-25)
14+
-------------------
15+
16+
15.1.6 (2025-07-01)
17+
-------------------
18+
19+
15.1.5 (2025-06-27)
20+
-------------------
21+
22+
15.1.4 (2025-06-20)
23+
-------------------
24+
25+
15.1.3 (2025-05-20)
26+
-------------------
27+
* feat: support both qt5 and qt6 (`#1187 <https://github.com/ros2/rviz/issues/1187>`_)
28+
* Contributors: Daisuke Nishimatsu
29+
30+
15.1.2 (2025-05-14)
31+
-------------------
32+
33+
15.1.1 (2025-05-05)
34+
-------------------
35+
36+
15.1.0 (2025-04-25)
37+
-------------------
38+
39+
15.0.0 (2025-04-25)
40+
-------------------
41+
42+
14.4.4 (2025-03-20)
43+
-------------------
44+
* Expose the possibility to create ROS node with custom `NodeOptions` (`#1347 <https://github.com/ros2/rviz/issues/1347>`_)
45+
* Contributors: Patrick Roncagliolo
46+
47+
14.4.3 (2025-02-27)
48+
-------------------
49+
* uniform CMAKE requirement (`#1335 <https://github.com/ros2/rviz/issues/1335>`_)
50+
* Contributors: mosfet80
51+
52+
14.4.2 (2025-01-31)
53+
-------------------
54+
55+
14.4.1 (2025-01-15)
56+
-------------------
57+
558
14.4.0 (2024-12-20)
659
-------------------
760

rviz2/CMakeLists.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.5)
1+
cmake_minimum_required(VERSION 3.10)
22

33
project(rviz2)
44

@@ -18,24 +18,25 @@ find_package(rviz_common REQUIRED)
1818

1919
find_package(rviz_ogre_vendor REQUIRED)
2020

21-
find_package(Qt5 REQUIRED COMPONENTS Widgets)
21+
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
22+
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
2223
# TODO(wjwwood): this block is to setup the windeployqt tool, could be removed later.
23-
if(Qt5_FOUND AND WIN32 AND TARGET Qt5::qmake AND NOT TARGET Qt5::windeployqt)
24-
get_target_property(_qt5_qmake_location Qt5::qmake IMPORTED_LOCATION)
24+
if(Qt${QT_VERSION_MAJOR}_FOUND AND WIN32 AND TARGET Qt${QT_VERSION_MAJOR}::qmake AND NOT TARGET Qt${QT_VERSION_MAJOR}::windeployqt)
25+
get_target_property(_qt_qmake_location Qt${QT_VERSION_MAJOR}::qmake IMPORTED_LOCATION)
2526

2627
execute_process(
27-
COMMAND "${_qt5_qmake_location}" -query QT_INSTALL_PREFIX
28+
COMMAND "${_qt_qmake_location}" -query QT${QT_VERSION_MAJOR}_INSTALL_PREFIX
2829
RESULT_VARIABLE return_code
29-
OUTPUT_VARIABLE qt5_install_prefix
30+
OUTPUT_VARIABLE qt_install_prefix
3031
OUTPUT_STRIP_TRAILING_WHITESPACE
3132
)
3233

33-
set(imported_location "${qt5_install_prefix}/bin/windeployqt.exe")
34+
set(imported_location "${qt_install_prefix}/bin/windeployqt.exe")
3435

3536
if(EXISTS ${imported_location})
36-
add_executable(Qt5::windeployqt IMPORTED)
37+
add_executable(Qt${QT_VERSION_MAJOR}::windeployqt IMPORTED)
3738

38-
set_target_properties(Qt5::windeployqt PROPERTIES
39+
set_target_properties(Qt${QT_VERSION_MAJOR}::windeployqt PROPERTIES
3940
IMPORTED_LOCATION ${imported_location}
4041
)
4142
endif()
@@ -48,21 +49,21 @@ target_link_libraries(${PROJECT_NAME}
4849
rviz_common::rviz_common
4950
rviz_ogre_vendor::OgreMain
5051
rviz_ogre_vendor::OgreOverlay
51-
Qt5::Widgets
52+
Qt${QT_VERSION_MAJOR}::Widgets
5253
)
5354

5455
# TODO(wjwwood): find a way to make this optional or to run without "deploying" the
5556
# necessary dlls and stuff to the bin folder.
5657
# see:
5758
# https://stackoverflow.com/questions/41193584/deploy-all-qt-dependencies-when-building#41199492
58-
if(TARGET Qt5::windeployqt)
59+
if(TARGET Qt${QT_VERSION_MAJOR}::windeployqt)
5960
# execute windeployqt in a tmp directory after build
6061
add_custom_command(TARGET ${PROJECT_NAME}
6162
POST_BUILD
6263
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
63-
COMMAND set PATH=%PATH%$<SEMICOLON>${qt5_install_prefix}/bin
64+
COMMAND set PATH=%PATH%$<SEMICOLON>${qt_install_prefix}/bin
6465
COMMAND
65-
Qt5::windeployqt
66+
Qt${QT_VERSION_MAJOR}::windeployqt
6667
--dir "${CMAKE_CURRENT_BINARY_DIR}/windeployqt"
6768
"$<TARGET_FILE_DIR:${PROJECT_NAME}>/$<TARGET_FILE_NAME:${PROJECT_NAME}>"
6869
)

rviz2/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
schematypens="http://www.w3.org/2001/XMLSchema"?>
55
<package format="2">
66
<name>rviz2</name>
7-
<version>14.4.0</version>
7+
<version>15.1.9</version>
88
<description>
99
3D visualization tool for ROS.
1010
</description>

rviz2/src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ int main(int argc, char ** argv)
8686
);
8787

8888
rviz_common::VisualizerApp vapp(
89-
std::make_unique<rviz_common::ros_integration::RosClientAbstraction>());
89+
std::make_unique<rviz_common::ros_integration::RosClientAbstraction>(
90+
// In custom setups, this is the injection point for ROS node options
91+
rclcpp::NodeOptions()
92+
)
93+
);
9094
vapp.setApp(&qapp);
9195
if (vapp.init(argc, argv)) {
9296
return qapp.exec();

rviz2/test/tools/send_lots_of_points_node.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ int main(int argc, char ** argv)
6363
msg.points.resize(width * length);
6464
msg.header.frame_id = "world";
6565

66+
rclcpp::executors::SingleThreadedExecutor executor;
67+
executor.add_node(node);
68+
6669
int count = 0;
6770
while (rclcpp::ok() ) {
6871
width++;
@@ -90,7 +93,7 @@ int main(int argc, char ** argv)
9093

9194
pub->publish(msg);
9295

93-
rclcpp::spin_some(node);
96+
executor.spin_some();
9497
loop_rate.sleep();
9598
if (moving) {
9699
++count;

0 commit comments

Comments
 (0)