Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question Communicating with ROS

Discussion in 'Unity Mediation' started by Akhi_KAM, Feb 9, 2023.

  1. Akhi_KAM

    Akhi_KAM

    Joined:
    Jan 24, 2023
    Posts:
    1
    Hi everyone,
    I am trying to setup communication between my ROS setup and Unity. I have imported the URDF of my robot.
    I have been following the tutorials on this github page:
    https://github.com/Unity-Technologi...main/tutorials/ros_unity_integration/setup.md
    When I press play on the Unity scene, the following message pops up in the terminal:
    Starting server on 127.0.0.1:10000
    Connection from 127.0.0.1
    RegisterSubscriber(/tf, <class 'tf2_msgs.msg._TFMessage.TFMessage'>) OK

    I am assuming that this means that the connection has been established. However, the robot disappears from the scene. If I select the option "Move to View" by right clicking on the name of my robot in the Hierarchy tree, nothing comes up. When I stop the scene and do the same, I can see the robot again.
    Kindly help me in this situation.
    Thanks!
     
  2. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    145
    Hi @Akhi_KAM ,
    I believe you have the wrong forum section, this is unfortunately unrelated to mediation and we can't offer much assistance.
    Best of luck! :)