Skip to content
Snippets Groups Projects
Commit ac0d6a8e authored by Timo Birr's avatar Timo Birr :rage:
Browse files

Merge branch 'master' of git.h2t.iar.kit.edu:sw/armarx/robot-api

parents c4b3c0d5 2bf69c0f
No related branches found
No related tags found
No related merge requests found
Pipeline #22313 failed
......@@ -70,7 +70,7 @@ namespace armarx::armem::grasping::segment
return std::nullopt; // file does not exist
}
ARMARX_INFO << "loading " << graspFilePath;
ARMARX_VERBOSE << "Loading `" << graspFilePath << "`.";
try
{
const std::string objectClassName = graspFileInfo.objectId.className();
......@@ -324,13 +324,13 @@ namespace armarx::armem::grasping::segment
<< graspFileInfo.fileLocInfo.absolutePath << "` failed.";
}
ARMARX_INFO << "inotify_add_watch for grasp file: "
ARMARX_VERBOSE << "inotify_add_watch for grasp file: "
<< graspFileInfo.fileLocInfo.absolutePath << "` added.";
wds.emplace(wd, graspFileInfo);
}
}
ARMARX_INFO << "Set up " << wds.size() << " inotify events.";
ARMARX_INFO << "Set up " << wds.size() << " inotify events to watch for file changes.";
fileWatcherTask = new SimpleRunningTask<>(
[this, inotifyFd, wds]()
......@@ -362,9 +362,11 @@ namespace armarx::armem::grasping::segment
auto* event = reinterpret_cast<inotify_event*>(p);
const auto& graspFileInfo = wds.at(event->wd);
ARMARX_INFO << "File changed: "
ARMARX_VERBOSE << "File changed: "
<< VAROUT(graspFileInfo.fileLocInfo.absolutePath);
ARMARX_INFO << "Reloading file for object `" << graspFileInfo.objectId << "`.";
p += sizeof(struct inotify_event) + event->len;
const bool lockMemory = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment