Skip to content

Commit 73f5c2a

Browse files
author
Emre Karincali
committed
Add support for compressed point-cloud topics in pcl2 display dropdowns
1 parent f93b77b commit 73f5c2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ class PointCloud2TransportDisplay : public rviz_common::_RosTopicDisplay
5858
: messages_received_(0)
5959
{
6060
QString message_type = QString::fromStdString(rosidl_generator_traits::name<MessageType>());
61-
topic_property_->setMessageType(message_type);
61+
std::vector<QString> supported_types = {
62+
"sensor_msgs/msg/PointCloud2",
63+
"point_cloud_intefaces/msg/CompressedPointCloud2"
64+
};
65+
66+
topic_property_->setMessageTypes(supported_types);
6267
topic_property_->setDescription(message_type + " topic to subscribe to.");
6368
}
6469

0 commit comments

Comments
 (0)