Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question [ROS TCP Connector]Timeout ros service

Discussion in 'Robotics' started by KevinYukiNTU, Oct 20, 2022.

  1. KevinYukiNTU

    KevinYukiNTU

    Joined:
    May 19, 2022
    Posts:
    5
    Hi there!

    I'm building a project using ROS TCP Connector and I'm requesting a ros service.

    Code (CSharp):
    1. ROSConnection.GetOrCreateInstance().SendServiceMessage<SetSceneResponse>(serviceName, request, Callback)
    How do I timeout the request in case there is no response?
     
  2. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    KevinYukiNTU likes this.
  3. KevinYukiNTU

    KevinYukiNTU

    Joined:
    May 19, 2022
    Posts:
    5