fixed OdometryViewer where clouds were not all removed or shown

This commit is contained in:
Mathieu Labbe
2015-04-06 14:32:32 -04:00
parent 5b5a32839c
commit 39ef8c0f0a
5 changed files with 39 additions and 34 deletions

View File

@@ -361,7 +361,7 @@ void ULogger::write(ULogger::Level level,
}
std::string time = "";
if(printTime_)
if(printTime_ || level == kFatal)
{
time.append("(");
getTime(time);
@@ -369,7 +369,7 @@ void ULogger::write(ULogger::Level level,
}
std::string levelStr = "";
if(printLevel_)
if(printLevel_ || level == kFatal)
{
const int bufSize = 30;
char buf[bufSize] = {0};
@@ -384,7 +384,7 @@ void ULogger::write(ULogger::Level level,
}
std::string whereStr = "";
if(printWhere_)
if(printWhere_ || level == kFatal)
{
whereStr.append("");
//File
@@ -530,9 +530,6 @@ void ULogger::write(ULogger::Level level,
int ULogger::getTime(std::string &timeStr)
{
if(!printTime_) {
return 0;
}
struct tm timeinfo;
const int bufSize = 30;
char buf[bufSize] = {0};