Skip to content

Transfer data from Unity to another computer with ROS2 #116

@L1MSpace

Description

@L1MSpace

I have a goal, to create a connection between two computers. The first computer on Windows 11 has Unity and ROS2 Humble installed. The second computer on Linux (Ubuntu 22.04) has only ROS2 Humble installed.

I was able to run the ros2-for-unity scripts “ROS2 Unity Component”, “ROS2 Talker Example”, “ROS2 Listener Example” in Unity without errors. Afterward, when I type “ros2 topic list” in the console on Windows, I see the “/chatter” topix that Unity creates. But, if I enter the same thing on a second computer on Linux, the “/chatter” topix is not there, i.e. ROS2 on Linux does not see this topix.
Both computers are connected to the same WI-FI network.

Question, does ros2-for-unity support data transfer via topics to another computer with ROS2?
If not, are there then alternative libraries that are suitable for my purpose.

P.S. I used ROS# library for the same purpose in ROS1. There I just had to put in the ip of a second computer on Linux (where ros-master was running), and after that Unity could send and receive data from another computer with ROS2.

Environment:
Windows 11;
Linux (Ubuntu 22.04)
ROS2 Humble (on Windows and Linux);
ros2-for-unity 1.3.0, overlay mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions