diff --git a/hydra_visualizer/include/hydra_visualizer/adapters/graph_color.h b/hydra_visualizer/include/hydra_visualizer/adapters/graph_color.h index 6fb03f6..b0b206f 100644 --- a/hydra_visualizer/include/hydra_visualizer/adapters/graph_color.h +++ b/hydra_visualizer/include/hydra_visualizer/adapters/graph_color.h @@ -206,6 +206,7 @@ struct FrontierColorAdapter : GraphColorAdapter { spark_dsg::Color predicted{0, 0, 255}; spark_dsg::Color active{0, 255, 0}; spark_dsg::Color archived{255, 0, 0}; + spark_dsg::Color anti_frontier{0, 255, 255}; } const config; explicit FrontierColorAdapter(const Config& config); diff --git a/hydra_visualizer/src/adapters/graph_color.cpp b/hydra_visualizer/src/adapters/graph_color.cpp index fb414af..a85bc3b 100644 --- a/hydra_visualizer/src/adapters/graph_color.cpp +++ b/hydra_visualizer/src/adapters/graph_color.cpp @@ -200,6 +200,10 @@ Color FrontierColorAdapter::getColor(const DynamicSceneGraph&, return config.predicted; } + if (attrs.anti_frontier) { + return config.anti_frontier; + } + return attrs.active_frontier ? config.active : config.archived; } catch (const std::bad_cast&) { return Color();