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

Delta robot simulation with cordinats from outside unity

Discussion in 'General Discussion' started by martinusdepinus, Dec 7, 2022.

  1. martinusdepinus

    martinusdepinus

    Joined:
    Dec 7, 2022
    Posts:
    2
    Hello to you all,

    I don't know where to post this question so....admin, if it's wrong then please tell me.


    So my question is as follows:
    I want to make a robot simulation, Like a pick and place robot.
    Where the robot is going to pick, the X, Y and Z coordinates are coming from outside the unity program.

    So there has to be a form of communication between the unity simulation and the program with the coordinates.

    Is this even possible or?....

    Thank you for taking the time
     
  2. bluescrn

    bluescrn

    Joined:
    Feb 25, 2013
    Posts:
    628
    It's almost certain to be possible... but it depends what the 'program with the coordinates' is and what exactly it does.

    At the easy end of the spectrum, if it's just generating a pre-defined list of movement commands in a file, in a standard format (something like the G-Code used for 3D printers/CNC), then that should be easy, just a matter of loading and parsing the file.

    At the difficult end of the spectrum, it might involve some serious reverse-engineering (e.g. if it's proprietary software that expects to be communicating directly with a real robot via undocumented protocols)
     
  3. martinusdepinus

    martinusdepinus

    Joined:
    Dec 7, 2022
    Posts:
    2

    Hello Bluescrn,

    In Basic the coordinates are send continu via ether ip, so the movement of the simulation is done in semi realtime.
    So the robot gets the coordinates via ether ip and the simulates the movement.

    In our current system there is also a simulation running but thats not up to our standards:)
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,321
    Yes.

    Unity uses C#. C# is general purpose. You can read data from anywhere and do whatever with it. And you can do whatever with objects in scene based on the data.
     
    martinusdepinus likes this.