Skip to content

Conversation

@GoldenZephyr
Copy link
Contributor

No description provided.

Copy link
Collaborator

@nathanhhughes nathanhhughes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines 31 to 33
inline static const auto registration_ =
config::RegistrationWithConfig<UpdateRoomsFunctor::Sink, GtRoomPublisher, Config>(
"GtRoomPublisher");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better in the source file instead of in the class (I haven't gotten the chance to hide all of them yet in hydra / hydra-ros but that is my intention eventually, the frontend and backend modules are good examples of how to do this)

Comment on lines 23 to 24
room_publisher_ = nh_.create_publisher<visualization_msgs::msg::MarkerArray>(
"gt_room_boundaries", 1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor) I'd just do using visualization_msgs::msg::MarkerArray somewhere earlier to try and avoid the line break (room_publisher_ to pub_ would get you the rest of the way if it's not short enough with the using)

Comment on lines 32 to 34
visualization_msgs::msg::Marker m;
m.action = m.DELETEALL;
ma.markers.push_back(m);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The auto& elem = container.emplace_back(); pattern would work here / would be pretty useful

Comment on lines 38 to 40
const std::vector<double> reds{0, .2, .4, .6, .8, 1};
const std::vector<double> greens{1, .8, .6, .4, .2};
const std::vector<double> blues{.4, .2, 0, 1};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just grab one of the visualizer colormaps instead of doing this (e.g., this is designed to do what you want)

@GoldenZephyr GoldenZephyr merged commit 948eee4 into develop Nov 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants