Skip to content

Commit d6a03f2

Browse files
Merge branch 'main' into feat/sorting-republisher-topics
2 parents 4ff959a + 1295aac commit d6a03f2

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<!-- ROS2 dependencies -->
1515
<buildtool_depend>ament_cmake</buildtool_depend>
1616

17+
<depend>ros_environment</depend>
1718
<depend>rclcpp</depend>
1819
<depend>rcpputils</depend>
1920
<depend>rosbag2_transport</depend>

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ target_link_libraries( TopicPublisherROS2 commonROS)
4848
message("AMENT_PREFIX_PATH = ${AMENT_PREFIX_PATH}")
4949
message("ROS_DISTRO (env) = $ENV{ROS_DISTRO}")
5050

51-
if("${AMENT_PREFIX_PATH}" STREQUAL "/opt/ros/humble" OR "$ENV{ROS_DISTRO}" STREQUAL "humble")
51+
if("$ENV{ROS_DISTRO}" STREQUAL "humble")
5252
message(STATUS "Detected Humble")
5353
target_compile_definitions(DataLoadROS2 PUBLIC ROS_HUMBLE)
5454
target_compile_definitions(TopicPublisherROS2 PUBLIC ROS_HUMBLE)

src/DataStreamROS2/datastream_ros2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ bool DataStreamROS2::start(QStringList* selected_datasources)
134134
auto topic_name = QString::fromStdString(topic.first);
135135
auto type_name = QString::fromStdString(topic.second[0]);
136136
dialog_topics.push_back({ topic_name, type_name });
137-
dialog.updateTopicList(dialog_topics);
138137
}
138+
dialog.updateTopicList(dialog_topics);
139139
};
140140

141141
getTopicsFromNode();

0 commit comments

Comments
 (0)