diff --git a/PythonAPI/carla/source/libcarla/Blueprint.cpp b/PythonAPI/carla/source/libcarla/Blueprint.cpp index 1d1ffeb87..6b2f5ac64 100644 --- a/PythonAPI/carla/source/libcarla/Blueprint.cpp +++ b/PythonAPI/carla/source/libcarla/Blueprint.cpp @@ -24,6 +24,12 @@ namespace data { return out; } + std::ostream &operator<<(std::ostream &out, const OpticalFlowPixel &color) { + out << "Color(" << std::to_string(color.x) + << ',' << std::to_string(color.y) << ')'; + return out; + } + } // namespace data } // namespace sensor