We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de09169 commit d6eb990Copy full SHA for d6eb990
2 files changed
include/robotkernel/robotkernel.h
@@ -104,6 +104,9 @@ inline std::shared_ptr<T> get_device(const std::string& dev_name) {
104
return retval;
105
};
106
107
+//! get robotkernel name
108
+extern const std::string name(void);
109
+
110
}; // namespace robotkernel;
111
112
#endif // ROBOTKERNEL_KERNEL_BASE_H
src/robotkernel.cpp
@@ -103,3 +103,7 @@ std::shared_ptr<robotkernel::device> robotkernel::get_device(const std::string&
103
return robotkernel::kernel::instance.get_device<robotkernel::device>(dev_name);
}
+const std::string robotkernel::name(void) {
+ return robotkernel::kernel::instance.name;
+}
0 commit comments