Track googlecartographer/cartographer#423 (#446)

master
damienrg 2017-07-27 11:59:09 +02:00 committed by Wolfgang Hess
parent d60e1e2e11
commit 907586a7fc
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}