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
19 changes: 19 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
Changelog for package plotjuggler_ros
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.3.2 (2025-12-21)
------------------
* fix CI
* fail to compile
* fix
* add pre-commit step
* new formatting rules
* add formatting consistent with plotjuggler App
* Fix O(n^2) complexity in ROS2 topic selection dialog. (`#106 <https://github.com/PlotJuggler/plotjuggler-ros-plugins/issues/106>`_)
* Depend on ros_environment for Humble detection (`#107 <https://github.com/PlotJuggler/plotjuggler-ros-plugins/issues/107>`_)
PR `#98 <https://github.com/PlotJuggler/plotjuggler-ros-plugins/issues/98>`_ mistakenly removed ros_environment from package.xml. This broke
Humble detection, which had to be worked around in 9b03f97 ("try
detecting Humble in the build farm", 2025-06-10).
This PR adds ros_environment dependency back and removes the Humble
detection workaround.
This also helps with building the package using the Nix package
manager.
* Contributors: Davide Faconti, Michal Sojka, ksuszka

2.2.0 (2025-05-21)
------------------
* jazzy+
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package format="3">
<name>plotjuggler_ros</name>
<version>2.3.1</version>
<version>2.3.2</version>
<description>PlotJuggler plugin for ROS</description>

<maintainer email="davide.faconti@gmail.com">Davide Faconti</maintainer>
Expand Down
7 changes: 2 additions & 5 deletions src/TopicPublisherROS2/generic_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class GenericPublisher : public rclcpp::PublisherBase
#ifdef ROS_HUMBLE
: rclcpp::PublisherBase(node_base, topic_name, type_support, rcl_publisher_get_default_options())
#else
: rclcpp::PublisherBase(node_base, topic_name, type_support, rcl_publisher_get_default_options(), callbacks_, true)
: rclcpp::PublisherBase(node_base, topic_name, type_support, rcl_publisher_get_default_options(),
rclcpp::PublisherEventCallbacks{}, true)
#endif
{
}
Expand All @@ -53,10 +54,6 @@ class GenericPublisher : public rclcpp::PublisherBase

return std::make_shared<GenericPublisher>(node.get_node_base_interface().get(), topic_name, *type_support);
}

#ifndef ROS_HUMBLE
rclcpp::PublisherEventCallbacks callbacks_;
#endif
};

#endif // GENERIC_PUBLISHER_H
3 changes: 2 additions & 1 deletion src/TopicPublisherROS2/publisher_ros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <QRadioButton>
#include <unordered_map>
#include <QMessageBox>
#include <algorithm>
#include <tf2_ros/qos.hpp>
#include <rosbag2_cpp/types.hpp>
#include <rmw/rmw.h>
Expand Down Expand Up @@ -153,7 +154,7 @@ void TopicPublisherROS2::filterDialog()

std::map<std::string, QCheckBox*> checkbox;

for (const TopicInfo& info : _topics_info)
for (const TopicInfo& info : sorted_topics)
{
const std::string topic_name = info.topic_name;
auto cb = new QCheckBox(dialog);
Expand Down
Loading