Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Creating multiple ros connection instances

Discussion in 'Robotics' started by alpmustafa93, Sep 12, 2022.

  1. alpmustafa93

    alpmustafa93

    Joined:
    Jan 23, 2020
    Posts:
    1
    Hi,

    First of all thank you for this package, it is working great so far!

    I'm wondering if there is an easy way to create multiple ros connections to publish to/subscribe from different IP addresses. Basically I would like to send & receive data from 2 vehicles to 2 different tcp endpoints.

    Regards
     
  2. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    Unfortunately, multiple connections don't work well with the currently released code, sorry.
     
  3. lazyrobotboy

    lazyrobotboy

    Joined:
    Jul 1, 2020
    Posts:
    16
    @LaurieUnity
    Is this probably the reason I am encountering the performance problems (see the other thread in this forum)?
     
  4. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    Hmm, well, possibly. Long story short, there are some static variables (like "has connection error") that end up being shared between the connections, causing them to interfere with each other. I wouldn't have expected it to manifest as a performance problem though.