Getting node name namespace from rclcpp
Hi is there a way to get to a node namespace in some clean way before that node is constructed using make shared? Processing argv doesn't seem like a good idea :/
Let's say
int main(int argc, char **argv) {
rclcpp_init(argc, argv);
// i want to get to the namespace and name here
auto node = std::make_shared<MyCustomNode>();
// currently this is the way I do this, but this is
auto ns = node->get_namespace();
auto name = node->get_name()
}
to get the namespace I could create some simple node, but that will collide with my desired one, when I want to get the name (I think?)