Commit 4d342e6a authored by François Bailly's avatar François Bailly Committed by Olivier Stasse
Browse files

Added compatibility of robot-utils with dynamic-graph logger

parent b7792392
Pipeline #2997 failed with stage
in 17 minutes and 33 seconds
......@@ -150,8 +150,8 @@ namespace dynamicgraph {
};
struct SOT_CORE_EXPORT RobotUtil
{
public:
{
public:
RobotUtil();
......@@ -241,17 +241,26 @@ struct SOT_CORE_EXPORT RobotUtil
const JointLimits & get_joint_limits_from_id(Index id);
JointLimits cp_get_joint_limits_from_id(Index id);
void sendMsg(const std::string& msg,
MsgType t=MSG_TYPE_INFO,
const char* file="", int line=0)
{
getLogger().sendMsg("[FromURDFToSoT] "+msg, t, file, line);
}
/** \name Logger related methods */
/** \{*/
/// \brief Send messages \param msg with level t. Add string file and line to message.
void sendMsg(const std::string &msg,
MsgType t=MSG_TYPE_INFO,
const char *file="",
int line=0);
/// \brief Specify the verbosity level of the logger.
void setLoggerVerbosityLevel(LoggerVerbosity lv)
{logger_.setVerbosity(lv);}
/// \brief Get the logger's verbosity level.
LoggerVerbosity getLoggerVerbosityLevel()
{ return logger_.getVerbosity(); };
void display(std::ostream &os) const;
}; // struct RobotUtil
protected:
Logger logger_;
}; // struct RobotUtil
RobotUtil * RefVoidRobotUtil();
RobotUtil * getRobotUtil(std::string &robotName);
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment