Skip to content

Commit fd499b1

Browse files
committed
Set gt room frame id from config
1 parent 4377352 commit fd499b1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

hydra_ros/include/hydra_ros/backend/gt_room_publisher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class GtRoomPublisher : public UpdateRoomsFunctor::Sink {
1515
public:
1616
struct Config {
1717
std::string ns = "~/gt_rooms";
18+
std::string room_frame_id = "map";
1819
visualizer::DiscreteColormap::Config colormap;
1920
} const config;
2021

hydra_ros/src/backend/gt_room_publisher.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ void declare_config(GtRoomPublisher::Config& config) {
2222
using namespace config;
2323
name("GtRoomPublisher::Config");
2424
field(config.ns, "ns");
25+
field(config.room_frame_id, "room_frame_id");
2526
field(config.colormap, "colormap");
2627
}
2728

@@ -36,7 +37,6 @@ GtRoomPublisher::GtRoomPublisher(const Config& config)
3637
std::string GtRoomPublisher::printInfo() const { return config::toString(config); }
3738

3839
void GtRoomPublisher::call(uint64_t, const RoomFinder& rf) const {
39-
LOG(WARNING) << "GT Room sink called";
4040
MarkerArray ma;
4141
auto& m = ma.markers.emplace_back();
4242
m.action = m.DELETEALL;
@@ -48,7 +48,7 @@ void GtRoomPublisher::call(uint64_t, const RoomFinder& rf) const {
4848
for (auto room : rf.room_extents.room_bounding_boxes) {
4949
for (auto box : room) {
5050
auto& m = ma.markers.emplace_back();
51-
m.header.frame_id = "euclid/utm_local";
51+
m.header.frame_id = config.room_frame_id;
5252
m.ns = "gt_rooms";
5353
m.id = idx++;
5454
m.action = m.ADD;

0 commit comments

Comments
 (0)