Skip to content
Snippets Groups Projects
Commit be05ab5e authored by Joana Plewnia's avatar Joana Plewnia
Browse files
parents 939cc698 ac0d6a8e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -86,6 +86,7 @@ namespace armarx::plugins
ARMARX_INFO << "Adding skill `" << skillId << "` to component `" << componentName << "` .";
skillFactories.emplace(skillId, std::move(fac));
// if (connected)
......
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