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
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question We could use some help -guidance

Discussion in 'Robotics' started by jweiland123, Jul 3, 2022.

  1. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
    I hope this is the right place to post this question.

    We have a game that uses robots and we're trying to allow teams to personalize their robot and insert it in our game. But we're not sure how we get the new robot into our web GL export product. see the game https://www.vrobotsim.online/homepage.html
     
  2. LaurieUnity

    LaurieUnity

    Unity Technologies

    Joined:
    Oct 23, 2020
    Posts:
    77
    Hi, could you provide more details about what you're trying to do? What do you want to import here, a mesh? A URDF file?
     
    IngDinoDanny likes this.
  3. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
    We are trying to import a urdf file and stl files -see robot in example


    start at around 5 min
     
    Last edited: Jul 5, 2022
  4. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
    Here is the attempt to import into unity/webgl


    you can see that we start with a bunch of STL files and the URDF file.
    Currently we can't import the really large files but we can get a robot into the game.
    now the question is how do we make the new robot programmable

    we're using a custom script import the robot.. If you would like access to the GitHub site, let me know.

    Will we be better off using GLB files? fbx? or ..
     
  5. ActiveSim

    ActiveSim

    Joined:
    May 10, 2019
    Posts:
    59
    From my point of view the URDF importer and the PhysX ArticulationBody are not scripted that well, that it is easy to randomize models by a user. I tired to find the main issues here and here but didn't.
    I think you have two options
    1. Write your own controller scripts to get that running.
    2. Use other (most of them are very expensive) physic engines (e.g. this one)
     
    Last edited: Jul 15, 2022
  6. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
    We use a fusion exporter to create a urdf file and stl files which allows us to get the robot into our Webgl (at runtime) export see
    or a slightly longer version
    . But the final "test" robot isn't very stable or nimble. Is there a better way? You can see our current system at https://robotimporter.vrobotsim.online/programpage.html Ideally we want any student to have the ability to test their robot in our simulator
     
  7. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
  8. ActiveSim

    ActiveSim

    Joined:
    May 10, 2019
    Posts:
    59
    A very interesting application.
    I linked a few sides above to help handling urdf files. I think the importer is not the best. In our project we skipped the urdf importer and preconfigure a set of robots, which could be manipulated just in predefined ways.
     
  9. jweiland123

    jweiland123

    Joined:
    Sep 28, 2020
    Posts:
    12
    We have some prescripted robots-https://powerplay.vrobotsim.online/programpage.html but we are looking for amethod to allow students to work with their own robot-design comformation
     
  10. ActiveSim

    ActiveSim

    Joined:
    May 10, 2019
    Posts:
    59
    If you really want to use the urdf import, I would recommand you to test multiple scenarious with the Articulation Body. Most of the issues are made by them and can be avoided by modify the imported modell. On the other hand writer controller and motor scripts move more robust.