Comments (2)
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/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.
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.
@gbiggs thank you very much! This made a lot of sense.
Closing the issue now.
from rosbook.
Related Issues (20)
- [Text improvement] Chapter 4: Move description of using rosservice HOT 1
- Suggestions to improve explanations and text HOT 1
- Corrections to text and code samples HOT 1
- NASA R2 repositories have moved HOT 7
- Possibly incorrect wheel arrangement on Tortoisebot HOT 1
- slam_gmapping parameter prefix error
- rosparam set the wrong name
- chapter 12 codes freezing HOT 1
- Compatibility with Tiago HOT 1
- aisle.world file need correcting
- Can't install ros-indigo-fetch*? HOT 1
- General "Custom Message" Issues HOT 1
- Can't run basics topic publisher.
- Chapter 21: src/code/cpp example code has errors HOT 1
- No motion plan found HOT 2
- Unable to run the python file red_light_green_light.py HOT 3
- key_publisher.py does not work HOT 5
- Error in Chapter 8 Page 126 under rviz heading line 6
- is it possible to simulate Nasa's R2 on ROS Noetic?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosbook.