-
Notifications
You must be signed in to change notification settings - Fork 910
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
Proper way of exiting when using ROS #54
base: master
Are you sure you want to change the base?
Conversation
#define EIGEN_ALIGN32 EIGEN_ALIGN_TO_BOUNDARY(32) to the coarseinitializer.h tested for eigen 3.2 and 3.3
including ROS in Pangolin for ros::shutdown if user has ROS installed
you can neglect the last second commit ("going back to before eigen fix pull request. Fixing issue just by adding ... ") if you want to, but then you still need to fix the eigen error for DSO_ROS. |
What happens when you compile dso while ROS is installed and available, but you want to use it without dso_ros? With your change, wouldn't it fail to shutdown in that case? Rather then detecting ROS at compile time, maybe there could be a way to make the "exit" function configurable, defaulting to Why is this PR suggesting to revert the eigen alignment changes? |
With your change, wouldn't it fail to shutdown in that case? No, it will still be possible to run it without ROS even if you installed ROS. |
But if you call
I think it would be great if your fix for the |
Since this library is going to be used with ROS and withoutROS, it should be compatible for both.
In the current code, when you close pangolin you are calling exit(0). In the case of using ROS for an online camera, the code after "ros::spin" will never execute unless you call ros::shutdown instead of exit(0) in Pangolin wrapper.
So unlike running without ROS, in DSO_ROS code, these lines will never execute (line 228-238) when you are using ROS: