Function grid_map::colorVectorToValue(const Eigen::Vector3i&, float&)

Function Documentation

void grid_map::colorVectorToValue(const Eigen::Vector3i &colorVector, float &colorValue)

Transforms a color vector (RGB from 0-255) to a concatenated 3 single-byte float value.

Parameters:
  • colorVector[in] the color vector in RGB from 0-255.

  • colorValue[out] the concatenated RGB color value.