@@ -150,8 +150,8 @@ namespace dynamicgraph {
150
150
};
151
151
152
152
struct SOT_CORE_EXPORT RobotUtil
153
- {
154
- public:
153
+ {
154
+ public:
155
155
156
156
RobotUtil ();
157
157
@@ -241,17 +241,26 @@ struct SOT_CORE_EXPORT RobotUtil
241
241
const JointLimits & get_joint_limits_from_id (Index id);
242
242
JointLimits cp_get_joint_limits_from_id (Index id);
243
243
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 (); };
251
259
252
260
void display (std::ostream &os) const ;
253
-
254
- }; // struct RobotUtil
261
+ protected:
262
+ Logger logger_;
263
+ }; // struct RobotUtil
255
264
RobotUtil * RefVoidRobotUtil ();
256
265
257
266
RobotUtil * getRobotUtil (std::string &robotName);
0 commit comments