ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Ok, I finally figured this out. For publishing I had to enclose my string into another set of inverted comma send:

{"op": "publish", "topic": "/talker", "msg": {"data" : "_my_message " }}

basically, I used Wireshark to sniff the network, and checked my working ROS to Unity channel, and figured out what was missing on my Unity to ROS medium.

Also, I realised I was using Simple Json to convert my message to json which is not really important.

Ok, I finally figured this out. For publishing I had to enclose my string into another set of inverted comma send:

{"op": "publish", "topic": "/talker", "msg": {"data" : "_my_message " }}

basically, I used Wireshark to sniff the network, and checked my working ROS to Unity channel, and figured out what was missing on my Unity to ROS medium.

Also, I realised realized I was using Simple Json to convert my message to json which is not really important.