Skip to content
Snippets Groups Projects
Commit 60986b88 authored by Paul D'Angio's avatar Paul D'Angio
Browse files

exit if initialize fails

parent d7277bcd
No related branches found
No related tags found
No related merge requests found
...@@ -61,10 +61,7 @@ ros_node::ros_node(std::shared_ptr<driver> driver, int argc, char **argv) ...@@ -61,10 +61,7 @@ ros_node::ros_node(std::shared_ptr<driver> driver, int argc, char **argv)
catch (std::exception& e) catch (std::exception& e)
{ {
ROS_FATAL_STREAM(e.what()); ROS_FATAL_STREAM(e.what());
// Deinitialize driver. exit(1);
ros_node::deinitialize_driver();
// Quit the node.
ros::shutdown();
} }
// Set up services. // Set up services.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment