Skip to content

Commit d6eb990

Browse files
committed
add: robotkernel::name() func
1 parent de09169 commit d6eb990

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

include/robotkernel/robotkernel.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ inline std::shared_ptr<T> get_device(const std::string& dev_name) {
104104
return retval;
105105
};
106106

107+
//! get robotkernel name
108+
extern const std::string name(void);
109+
107110
}; // namespace robotkernel;
108111

109112
#endif // ROBOTKERNEL_KERNEL_BASE_H

src/robotkernel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,7 @@ std::shared_ptr<robotkernel::device> robotkernel::get_device(const std::string&
103103
return robotkernel::kernel::instance.get_device<robotkernel::device>(dev_name);
104104
}
105105

106+
//! get robotkernel name
107+
const std::string robotkernel::name(void) {
108+
return robotkernel::kernel::instance.name;
109+
}

0 commit comments

Comments
 (0)