@@ -150,8 +150,8 @@ namespace dynamicgraph {
150150 };
151151
152152struct SOT_CORE_EXPORT RobotUtil
153- {
154- public:
153+ {
154+ public:
155155
156156 RobotUtil ();
157157
@@ -241,17 +241,26 @@ struct SOT_CORE_EXPORT RobotUtil
241241 const JointLimits & get_joint_limits_from_id (Index id);
242242 JointLimits cp_get_joint_limits_from_id (Index id);
243243
244-
245- void sendMsg (const std::string& msg,
246- MsgType t=MSG_TYPE_INFO,
247- const char * file=" " , int line=0 )
248- {
249- getLogger ().sendMsg (" [FromURDFToSoT] " +msg, t, file, line);
250- }
244+ /* * \name Logger related methods */
245+ /* * \{*/
246+ // / \brief Send messages \param msg with level t. Add string file and line to message.
247+ void sendMsg (const std::string &msg,
248+ MsgType t=MSG_TYPE_INFO,
249+ const char *file=" " ,
250+ int line=0 );
251+
252+ // / \brief Specify the verbosity level of the logger.
253+ void setLoggerVerbosityLevel (LoggerVerbosity lv)
254+ {logger_.setVerbosity (lv);}
255+
256+ // / \brief Get the logger's verbosity level.
257+ LoggerVerbosity getLoggerVerbosityLevel ()
258+ { return logger_.getVerbosity (); };
251259
252260 void display (std::ostream &os) const ;
253-
254- }; // struct RobotUtil
261+ protected:
262+ Logger logger_;
263+ }; // struct RobotUtil
255264 RobotUtil * RefVoidRobotUtil ();
256265
257266 RobotUtil * getRobotUtil (std::string &robotName);
0 commit comments