Repository navigation
|
I have an executable which uses PlusLib. Relevant parts: #include <igsioTrackedFrame.h>
#include <vtkIGSIOTransformRepository.h>
#include <vtkIGSIOTrackedFrameList.h>
#include <PlusConfigure.h> //must come before other Plus includes to prevent linker errors
#include <vtkPlusSequenceIO.h>
...
int main()
{
// ...
// read transforms from the config file
vtkSmartPointer<vtkXMLDataElement> configRootElement =
vtkSmartPointer<vtkXMLDataElement>::Take(vtkXMLUtilities::ReadElementFromFile(config.c_str()));
transformRepository = vtkSmartPointer<vtkIGSIOTransformRepository>::New();
if (transformRepository->ReadConfiguration(configRootElement) != PLUS_SUCCESS)
{
LOG_ERROR("Transform repository failed to read configuration");
return EXIT_FAILURE;
}
// ...
vtkPlusSequenceIO::Write(...);
// ...
}The This has not bothered me much until now. I now need to invoke this program from a script on a series of ~350 files. As the output will be recorded into a log (a Jupyter notebook output cell), I would very much like to avoid this being repeated on each call. What is the are the best, quickest and proper ways to do this? |
Answered by
dzenanz
Mar 16, 2022
Replies: 2 comments 4 replies
|
If you don't need the INFO level messages, I think you could do this at the start: |
4 replies
Answer selected by
dzenanz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IGSIO/IGSIO#28 fixed the problem.