Skip to content

Commit

Permalink
fix: string messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmajek committed Jan 13, 2025
1 parent f214052 commit f8f22e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rai/rai/communication/ros_connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ def send_message(self, message: LangchainBaseMessage | RAIMultimodalMessage):
for target in self.targets:
hri_message = HRIMessage.from_langchain(message)
ros2rri_message = ROS2RRIMessage(
payload=hri_message.text, # TODO: Only string topics
ros_message_type=type(hri_message).__name__,
python_message_class=type(hri_message),
payload={"data": hri_message.text}, # TODO: Only string topics
ros_message_type="std_msgs/msg/String",
python_message_class=String,
)
self._publish(ros2rri_message, target)

Expand Down

0 comments on commit f8f22e6

Please sign in to comment.