Class NodeletLogHelper

Inheritance Relationships

Base Type

  • public cras::RosconsoleLogHelper

Derived Type

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

Protected Attributes

GetNameFn getNameFn

Function returning the name of the nodelet.