Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
container: ros:jazzy-perception
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with: {path: src/hydra}
- name: CCache
id: cache-ccache
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: ~/.cache/ccache
key: ${{ runner.os }}-ccache-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Dependencies
run: sudo apt-get update && sudo apt install pipx
- name: Lint
Expand Down
15 changes: 0 additions & 15 deletions config/label_spaces/gdsam2_default_label_space.yaml

This file was deleted.

55 changes: 0 additions & 55 deletions config/label_spaces/gdsam2_mit_label_space.yaml

This file was deleted.

53 changes: 0 additions & 53 deletions config/label_spaces/kitti_360_label_space.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions config/label_spaces/phoenix_label_space.yaml

This file was deleted.

162 changes: 0 additions & 162 deletions config/label_spaces/yolov11_coco_label_space.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions include/hydra/common/semantic_color_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <spark_dsg/color.h>

#include <memory>
#include <opencv2/core/mat.hpp>
#include <optional>
#include <string>
#include <unordered_map>
Expand Down Expand Up @@ -70,6 +71,8 @@ class SemanticColorMap {

std::string toString() const;

cv::Mat colorsToLabels(const cv::Mat& colors, int32_t default_label = -1) const;

public:
static SemanticColorMap::Ptr randomColors(size_t num_labels,
const spark_dsg::Color& unknown = {});
Expand Down
16 changes: 4 additions & 12 deletions include/hydra/input/input_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,13 @@ std::unique_ptr<InputData> parseInputPacket(const InputPacket& input_packet,
bool normalize_labels = true);

/**
* @brief make sure that all the images are of the right type
* @brief Ensure that all the images are of the right type
* @param data Input data to normalize
* @param normalize_labels Whether or not to ensure labels are the correct type
* @return Whether or not the input normalization was successful
*/
bool normalizeData(InputData& data, bool normalize_labels = true);

bool normalizeDepth(InputData& data);

bool colorToLabels(cv::Mat& label_image, const cv::Mat& colors);

// TODO(nathan) check if the conversions are directly used...
bool convertLabels(InputData& data);

bool convertDepth(InputData& data);

bool convertColor(InputData& data);

/**
* @brief Ensure that the vertex map is in the correct frame.
* @param data The input data to convert.
Expand Down
Loading