diff --git a/include/structs_definitions.h b/include/structs_definitions.h index 1ea91eff2561f9b1094322ac67b5d35cf3dd7df9..01aa17de0bff8a22b2731e5615b9895ae47a5284 100644 --- a/include/structs_definitions.h +++ b/include/structs_definitions.h @@ -73,8 +73,28 @@ const int TRUNK = 71; const int POLE = 80; const int TRAFFIC_SIGN = 81; -// Key obstacles like cars, pedestrians and so on are the rest of the classes so we will not explicitly write them here +// KITTI Classes rgb codes: +const uint8_t R_CLASS_ROAD = 0; +const uint8_t G_CLASS_ROAD = 0; +const uint8_t B_CLASS_ROAD = 255; + +const uint8_t R_CLASS_SIDEWALK = 127; +const uint8_t G_CLASS_SIDEWALK = 127; +const uint8_t B_CLASS_SIDEWALK = 127; + +const uint8_t R_CLASS_TERRAIN = 127; +const uint8_t G_CLASS_TERRAIN = 127; +const uint8_t B_CLASS_TERRAIN = 0; +const uint8_t R_CLASS_VEGETATION = 0; +const uint8_t G_CLASS_VEGETATION = 255; +const uint8_t B_CLASS_VEGETATION = 0; + +const uint8_t R_CLASS_KITTI_OBSTACLE = 0; +const uint8_t G_CLASS_KITTI_OBSTACLE = 255; +const uint8_t B_CLASS_KITTI_OBSTACLE = 255; + +// Key obstacles like cars, pedestrians and so on are the rest of the classes so we will not explicitly write them here //Custom labels not present in Kitti semantic const int CLASS_GROUND = 46;