From f66507eb780edfd17aba4dd9e49ee27d78258ced Mon Sep 17 00:00:00 2001
From: Alex AUTERNAUD <alex.auternaud@inria.fr>
Date: Tue, 4 Apr 2023 11:27:30 +0200
Subject: [PATCH] remove print

---
 social_mpc/controller.py | 7 +++----
 social_mpc/path.py       | 2 --
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/social_mpc/controller.py b/social_mpc/controller.py
index e758c96..d0f4417 100644
--- a/social_mpc/controller.py
+++ b/social_mpc/controller.py
@@ -361,7 +361,7 @@ class RobotController():
                 else:
                     self.set_target_pose(target[:-1])
         else:
-            rospy.loginfo('Goto target not set')
+            rospy.logdebug('Goto target not set')
             self.is_failure = True
             self.controller_config.goto_target_id = -1
             with self.lock:
@@ -382,7 +382,7 @@ class RobotController():
                 self.is_failure = True
                 self.controller_config.human_target_id = -1
         else:
-            rospy.loginfo('Human target not valid')
+            rospy.logdebug('Human target not valid')
             self.is_failure = True
             self.controller_config.human_target_id = -1
 
@@ -414,7 +414,7 @@ class RobotController():
                 else:
                     self.pan_target_pose = global_to_local(state.robot_pose, target[:2])
         else:
-            rospy.loginfo('Human target not valid')
+            rospy.logdebug('Human target not valid')
             self.is_failure = True
             self.controller_config.pan_target_id = -1
 
@@ -629,7 +629,6 @@ class RobotController():
         return [pos_local, angle, vel, flag]
 
     def update_goals(self, state):
-        rospy.logdebug('mode : {}'.format(self.mode))
         if self.mode == 0 or self.mode == 2:
             with self.lock:
                 shared_waypoint = np.array([*self.shared_waypoint])
diff --git a/social_mpc/path.py b/social_mpc/path.py
index 3b16e91..b27b99f 100644
--- a/social_mpc/path.py
+++ b/social_mpc/path.py
@@ -120,8 +120,6 @@ class PathPlanner():
             robot_pose = [sh_robot_pose[0],
                           sh_robot_pose[1],
                           sh_robot_pose[2]]
-            # print("robot_pose : {}".format(robot_pose))
-            # print("update_distance : {}".format(update_distance))
             if update_distance:
                 try:
                     self.get_distance_map(global_map)
-- 
GitLab