Skip to content

Commit 4cdf25b

Browse files
committed
Add logging
1 parent bc23fec commit 4cdf25b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drone_estimators/ros_nodes/ros2_node.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,17 @@ def calibration_callback(
359359
response.message = "Pose could not be calibrated, deck tilted too much."
360360
return response
361361

362-
node.get_logger().warning("Calibration successful.")
362+
node.get_logger().info("Calibration successful.")
363363
nonlocal calibration_rot
364364
calibration_rot = last_rot
365365
response.success = True
366366
response.message = "Pose calibrated successfully."
367367
return response
368-
368+
369369
def remove_calibration_callback(
370-
request: Trigger.Request, response: Trigger.Response
370+
request: Trigger.Request, response: Trigger.Response
371371
) -> Trigger.Response:
372+
node.get_logger().info("Calibration deleted successfully.")
372373
nonlocal calibration_rot
373374
calibration_rot = R.from_quat(np.array([0.0, 0.0, 0.0, 1.0]))
374375
response.success = True

0 commit comments

Comments
 (0)