Coder Social home page Coder Social logo

Comments (2)

gbiggs avatar gbiggs commented on August 22, 2024

The origins in URDF files can take a little work to get your head around. It's inevitably been the biggest hurdle for people to overcome when I've taught people how to create URDF files.

The following URDF tutorial pages have a diagram and some explanation of the various origins in a single link.

http://wiki.ros.org/urdf/Tutorials/Building%20a%20Visual%20Robot%20Model%20with%20URDF%20from%20Scratch#Origins

http://wiki.ros.org/urdf/Tutorials/Create%20your%20own%20urdf%20file

The key thing to remember is that the origin specified in the visual tag is for that visual element only. It places the visual element in relation to the link's origin. If you do not specify one, then the origin of the visual data will be the same as the link's origin, and because a cylinder by default has its origin at its own centre of mass, this would make the cylinder of base_link appear in the wrong place for where we want the link to appear. So by raising the cylinder by 0.025 m we effectively lower the origin of the link by the opposite amount. This way of thinking works because this link only has a single visual element. If you start creating links with multiple visual elements or start adding collision elements, you need to get your head around where the link's origin is (at the joint with the previous link) and how the origins of visual, collision and inertial elements relate to it.

If you can read Japanese, or at least make a guess as to the meaning, there are some different diagrams in my URDF tutorial text that might help you understand the relationships between the origins.

https://gbiggs.github.io/rosjp_urdf_tutorial_text/mobile_robot_urdf.html#%E5%8F%AF%E8%A6%96%E5%8C%96%E3%82%88%E3%81%86%E3%81%AE%E3%82%B8%E3%82%AA%E3%83%A1%E3%83%88%E3%83%AA

https://gbiggs.github.io/rosjp_urdf_tutorial_text/mobile_robot_urdf.html#%E3%82%B8%E3%83%A7%E3%82%A4%E3%83%B3%E3%83%88%E3%81%AE%E5%AE%9A%E7%BE%A9

In the future, I recommend asking questions like this at answers.ros.org. You will get better answers sooner because more people are watching.

from rosbook.

lizixroy avatar lizixroy commented on August 22, 2024

@gbiggs thank you very much! This made a lot of sense.

Closing the issue now.

from rosbook.

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.