diff --git a/src/RobotStateProvider.cpp b/src/RobotStateProvider.cpp
index cb743cd0dce4379e69e1a9412483c179abdc789e..25b480961b364bb71c7af8d03753173e47fcdd6b 100644
--- a/src/RobotStateProvider.cpp
+++ b/src/RobotStateProvider.cpp
@@ -139,7 +139,7 @@ namespace robot_state_provider {
       // get the elements in the group
       for (const auto &group: groups) {
         std::map<std::string, std::string> element_topics{};
-        std::string key{"/panda_mqtt_connector" + elementType + group};
+        std::string key{n.getNamespace() + elementType + group};
         if (!n.getParam(key, element_topics)) {
           ROS_ERROR_STREAM("Unable to retrieve value for " << key);
         }