Skip to content

Commit

Permalink
[ThermoLimiter/ThermoLimiter.cpp] decrease debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
eisoku9618 committed Oct 24, 2015
1 parent a73c924 commit cd07e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rtc/ThermoLimiter/ThermoLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ void ThermoLimiter::calcMaxTorqueFromTemperature(hrp::dvector &tauMax)

// determine tauMax
if (squareTauMax[i] < 0) {
std::cerr << "[WARN] tauMax ** 2 = " << squareTauMax[i] << " < 0 in Joint " << i << std::endl;
if (isDebug()) {
std::cerr << "[WARN] tauMax ** 2 = " << squareTauMax[i] << " < 0 in Joint " << i << std::endl;
}
tauMax[i] = m_robot->joint(i)->climit * m_robot->joint(i)->gearRatio * m_robot->joint(i)->torqueConst; // default tauMax from model file
} else {
tauMax[i] = std::sqrt(squareTauMax[i]); // tauMax is absolute value
Expand Down

0 comments on commit cd07e75

Please sign in to comment.