Skip to content

Commit d20e624

Browse files
Emre Karincalijpbusch
authored andcommitted
add support for displaying compressed image topics in rviz2 Image display dropdown menu
1 parent c04c83b commit d20e624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rviz_common/src/rviz_common/properties/ros_topic_property.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void RosTopicProperty::fillTopicList()
8080
for (const auto & topic : published_topics) {
8181
// Only add topics whose type matches.
8282
for (const auto & type : topic.second) {
83-
if (type == std_message_type) {
83+
if (type == std_message_type || (type == "sensor_msgs/msg/CompressedImage" && std_message_type == "sensor_msgs/msg/Image")) {
8484
addOptionStd(topic.first);
8585
}
8686
}

0 commit comments

Comments
 (0)