From 907586a7fc24f3b26f01eb08ccc45c9e48516622 Mon Sep 17 00:00:00 2001 From: damienrg Date: Thu, 27 Jul 2017 11:59:09 +0200 Subject: [PATCH] Track googlecartographer/cartographer#423 (#446) --- cartographer_ros/cartographer_ros/map_builder_bridge.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cartographer_ros/cartographer_ros/map_builder_bridge.cc b/cartographer_ros/cartographer_ros/map_builder_bridge.cc index 1fa937d..71a87bc 100644 --- a/cartographer_ros/cartographer_ros/map_builder_bridge.cc +++ b/cartographer_ros/cartographer_ros/map_builder_bridge.cc @@ -27,11 +27,11 @@ namespace { constexpr double kTrajectoryLineStripMarkerScale = 0.07; constexpr double kConstraintMarkerScale = 0.025; -::std_msgs::ColorRGBA ToMessage(const cartographer::io::Color& color) { +::std_msgs::ColorRGBA ToMessage(const cartographer::io::FloatColor& color) { ::std_msgs::ColorRGBA result; - result.r = color[0] / 255.; - result.g = color[1] / 255.; - result.b = color[2] / 255.; + result.r = color[0]; + result.g = color[1]; + result.b = color[2]; result.a = 1.f; return result; }