make core_ptz stfu

This commit is contained in:
ryleu
2026-01-22 01:50:40 -05:00
parent f558389863
commit 23f49d362e

View File

@@ -1,24 +1,25 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import rclpy
from rclpy.node import Node
import asyncio import asyncio
from concurrent.futures import ThreadPoolExecutor
import signal import signal
import sys import sys
import threading import threading
import time import time
from concurrent.futures import ThreadPoolExecutor
import rclpy
from rclpy.node import Node
from std_msgs.msg import String from std_msgs.msg import String
from astra_msgs.msg import PtzControl, PtzFeedback from astra_msgs.msg import PtzControl, PtzFeedback
# Import the SIYI SDK # Import the SIYI SDK
from core_pkg.siyi_sdk import ( from core_pkg.siyi_sdk import (
SiyiGimbalCamera,
CommandID,
DataStreamType,
DataStreamFrequency,
SingleAxis,
AttitudeData, AttitudeData,
CommandID,
DataStreamFrequency,
DataStreamType,
SingleAxis,
SiyiGimbalCamera,
) )
@@ -262,7 +263,7 @@ class PtzNode(Node):
f"[{self.get_clock().now().nanoseconds / 1e9:.2f}] PTZ Node: {message_text}" f"[{self.get_clock().now().nanoseconds / 1e9:.2f}] PTZ Node: {message_text}"
) )
self.debug_pub.publish(msg) self.debug_pub.publish(msg)
self.get_logger().info(message_text) self.get_logger().debug(message_text)
def run_async_func(self, coro): def run_async_func(self, coro):
"""Run an async function in the event loop.""" """Run an async function in the event loop."""