Skip to content

Commit 2a06dc7

Browse files
EmreK03lreiher
authored andcommitted
use message_type variable instead of hardcoded string in PCL2-Display
Co-authored-by: Lennart Reiher <[email protected]> Signed-off-by: Emre <[email protected]>
1 parent 35e71e1 commit 2a06dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rviz_default_plugins/include/rviz_default_plugins/displays/pointcloud/point_cloud_transport_display.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class PointCloud2TransportDisplay : public rviz_common::_RosTopicDisplay
5959
{
6060
QString message_type = QString::fromStdString(rosidl_generator_traits::name<MessageType>());
6161
std::vector<QString> supported_types = {
62-
"sensor_msgs/msg/PointCloud2",
62+
message_type,
6363
"point_cloud_interfaces/msg/CompressedPointCloud2"
6464
};
6565

0 commit comments

Comments
 (0)