From 1aa65b67d0366b0328bee2b3ad6fe504527a3680 Mon Sep 17 00:00:00 2001
From: Michael Jeronimo <michael.jeronimo@intel.com>
Date: Mon, 20 May 2019 16:47:09 -0700
Subject: [PATCH] Minor fixes to motion primitives

---
 .../include/nav2_motion_primitives/motion_primitive.hpp     | 3 +++
 nav2_motion_primitives/src/main.cpp                         | 6 ++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/nav2_motion_primitives/include/nav2_motion_primitives/motion_primitive.hpp b/nav2_motion_primitives/include/nav2_motion_primitives/motion_primitive.hpp
index 668f5d14..3a84a9d4 100644
--- a/nav2_motion_primitives/include/nav2_motion_primitives/motion_primitive.hpp
+++ b/nav2_motion_primitives/include/nav2_motion_primitives/motion_primitive.hpp
@@ -144,6 +144,9 @@ protected:
           RCLCPP_WARN(node_->get_logger(), "%s failed", primitive_name_.c_str());
           goal_handle->abort(result);
           return;
+
+        default:
+          break;
       }
 
       loop_rate.sleep();
diff --git a/nav2_motion_primitives/src/main.cpp b/nav2_motion_primitives/src/main.cpp
index b44a5e41..32aefdea 100644
--- a/nav2_motion_primitives/src/main.cpp
+++ b/nav2_motion_primitives/src/main.cpp
@@ -13,15 +13,13 @@
 // limitations under the License. Reserved.
 
 #include <memory>
+
 #include "rclcpp/rclcpp.hpp"
-#include "nav2_motion_primitives/spin.hpp"
 #include "nav2_motion_primitives/back_up.hpp"
+#include "nav2_motion_primitives/spin.hpp"
 
 int main(int argc, char ** argv)
 {
-  // Force flush of the stdout buffer.
-  setvbuf(stdout, NULL, _IONBF, BUFSIZ);
-
   rclcpp::init(argc, argv);
 
   auto motion_primitives_node = rclcpp::Node::make_shared("motion_primitives");
-- 
GitLab