mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
final fix for string output on anchor_relay for core
This commit is contained in:
@@ -178,7 +178,9 @@ class SerialRelay(Node):
|
|||||||
def send_cmd(self, msg):
|
def send_cmd(self, msg):
|
||||||
if self.launch_mode == 'anchor':
|
if self.launch_mode == 'anchor':
|
||||||
self.get_logger().info(f"[Core to Anchor Relay] {msg}")
|
self.get_logger().info(f"[Core to Anchor Relay] {msg}")
|
||||||
self.anchor_pub.publish(msg)
|
output = String()#Convert to std_msg string
|
||||||
|
output.data = msg
|
||||||
|
self.anchor_pub.publish(output)
|
||||||
elif self.launch_mode == 'core':
|
elif self.launch_mode == 'core':
|
||||||
self.get_logger().info(f"[Core to MCU] {msg}")
|
self.get_logger().info(f"[Core to MCU] {msg}")
|
||||||
self.ser.write(bytes(msg, "utf8"))
|
self.ser.write(bytes(msg, "utf8"))
|
||||||
|
|||||||
Reference in New Issue
Block a user