mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
make core_ptz stfu
This commit is contained in:
@@ -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."""
|
||||||
|
|||||||
Reference in New Issue
Block a user