Code Monkey home page Code Monkey logo

Comments (6)

jirenz avatar jirenz commented on June 9, 2024

The 3-D coordinate of the site matters, and the site references body coordinates. Because when we are putting the object on the table (say on table_top = np.array([0.5, 0.5, 0]), we do obj.pos = table_top - obj.bottom_offset. When you have a mesh object, where the bottom should go depends on your mesh.

@anchit should be able to tell you how the sites for stl files are generated.

from robosuite.

gsp-27 avatar gsp-27 commented on June 9, 2024

Yes. But I am not sure how these values are computed, because when I compute them using the top-most and bottom-most point from the mesh, I do not get the same value as that written in the xml file.

from robosuite.

anchit avatar anchit commented on June 9, 2024

The top and bottom sites for the mesh objects have not been computed in a principled way. We have just approximately tuned them to what works well. Currently these are only used to initialize at the right place and hence being accurate isn't necessary.

from robosuite.

gsp-27 avatar gsp-27 commented on June 9, 2024

I see thanks for the info.

But is the method that I described above the intended method to compute these parameters, because I am trying to load random shape net objects in the scene and hence it would be beneficial to have these automatically computed.

from robosuite.

jirenz avatar jirenz commented on June 9, 2024

I think it would work. The objects might tilt a bit because the x, y coordinates are not necessarily correct but what you described is what I would do for shapeNET as well.

from robosuite.

gsp-27 avatar gsp-27 commented on June 9, 2024

Okay thanks a lot

from robosuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.