Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 4 additions & 0 deletions hydra_visualizer/src/adapters/graph_color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down