@@ -111,7 +111,7 @@ def get_sub_param(sub_param):
111111 self .get_logger ().info (f'Goal "{ name } " has definition { point } ' )
112112
113113 else :
114- self .get_logger ().warn (
114+ self .get_logger ().warning (
115115 f'Goal "{ name } " definition is wrong. This goal will not be used. '
116116 "Use the following structure: \n <goal_name>:\n "
117117 "positions: [joint1, joint2, joint3, ...]\n "
@@ -150,11 +150,11 @@ def timer_callback(self):
150150 self .i %= len (self .goals )
151151
152152 elif self .check_starting_point and not self .joint_state_msg_received :
153- self .get_logger ().warn (
153+ self .get_logger ().warning (
154154 'Start configuration could not be checked! Check "joint_state" topic!'
155155 )
156156 else :
157- self .get_logger ().warn ("Start configuration is not within configured limits!" )
157+ self .get_logger ().warning ("Start configuration is not within configured limits!" )
158158
159159 def joint_state_callback (self , msg ):
160160
@@ -166,7 +166,7 @@ def joint_state_callback(self, msg):
166166 if (msg .position [idx ] < self .starting_point [enum ][0 ]) or (
167167 msg .position [idx ] > self .starting_point [enum ][1 ]
168168 ):
169- self .get_logger ().warn (f"Starting point limits exceeded for joint { enum } !" )
169+ self .get_logger ().warning (f"Starting point limits exceeded for joint { enum } !" )
170170 limit_exceeded [idx ] = True
171171
172172 if any (limit_exceeded ):
0 commit comments