Skip to content

Commit 35e71e1

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rviz_default_plugins/include/rviz_default_plugins/displays/image/image_transport_display.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ImageTransportDisplay : public rviz_common::_RosTopicDisplay
6161
{
6262
QString message_type = QString::fromStdString(rosidl_generator_traits::name<MessageType>());
6363
std::vector<QString> supported_types = {
64-
"sensor_msgs/msg/Image",
64+
message_type,
6565
"sensor_msgs/msg/CompressedImage",
6666
"ffmpeg_image_transport/msg/FFMPEGPacket",
6767
"theora_image_transport/msg/Packet"

0 commit comments

Comments
 (0)