Class NodeletLogHelper
Defined in File nodelet.h
Inheritance Relationships
Base Type
public cras::RosconsoleLogHelper
Derived Type
public cras::FilterLogHelper< F >(Template Class FilterLogHelper)
Class Documentation
-
class NodeletLogHelper : public cras::RosconsoleLogHelper
Log helper delegating the logging calls to the NODELET_ macros.
Subclassed by cras::FilterLogHelper< F >
Public Types
-
typedef ::std::function<const ::std::string&()> GetNameFn
Type of the function returning the name of the nodelet.
Public Functions
-
explicit NodeletLogHelper(const GetNameFn &getNameFn)
Create the log helper reporting as the nodelet of name returned by getNameFn.
- Parameters:
getNameFn – A function returning the name of the nodelet.
-
void initializeLogLocationImpl(::ros::console::LogLocation *loc, const ::std::string &name, ::ros::console::Level level) const override
-
typedef ::std::function<const ::std::string&()> GetNameFn