-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I print a variable in the ComputeError() in the terminal? #759
Comments
Do you have a minimal working example that illustrates the problem? About the crash: |
I have solved the crash bug but the printing problem still exists. Here is an example of working computeError() function, where both the void EdgeLaneAlignOnlyPose::computeError() |
Try to use a debugger along with a breakpoint in the respective functions. Without a minimal working example, I cannot tell what is going on. |
I want to print some values calculated in the computeError() function of an edge during the optimization process, but it seems that the output stream like std::cout/std::cerr doesn't work in the computeError(). I have tried the write(ostream &os) function but it is used for save information in a file. I want to see some information in real-time because there is a unknown bug which will cause the system crashing. Do you know the solution? Thank you.
The text was updated successfully, but these errors were encountered: