I am developing a project with https://github.com/ms-iot/ros_msft_mrtk and would like to send simple messages via Ros2 to Unity or then to the Hololens2. Unfortunately, I don't understand Ros2's communication. I use the SubscriptionExample https://github.com/ms-iot/ros_msft_mrtk/blob/master/SampleProject/Assets/Scripts/Examples/SubscriptionExample.cs, added it to a GameObject and now want to display sented messages in a text field in Unity. That was my attempt:
I get the error: Cannot implicitly convert type 'std_msgs.msg.String' to 'string'. How can I store a received std_msgs.msg.String in a string to output it in Unity and later on the HoloLens?