Comments (18)
@hwiedPro Thanks a lot! Now it looks perfect!!!
from phobos.
Thank you for testing. I'll close this then!
from phobos.
Awesome, thanks for the help.
from phobos.
Hi @hwiedPro
Yes it works on my side. Thanks so much.
from phobos.
Hi,
How is the urdf placed when you load it? Do you open it in it's package environment or have you only downloaded the urdf it self.
As your urdf contains package:// style pathes, phobos expects that the urdf is still in it's package. If you move it out of this package, it can not find the package and thus all other pathes are no longer valid.
from phobos.
Hi @hwiedPro ,
Thanks for the reply. I didn't use the package:// style anymore: I deleted all the package path, and only leave the mesh file name in the urdf. Then, I put the urdf together with the mesh files inside one single folder. So theoretically it is correct. I also tried with other robot model, it worked. It only cannot work with the Anymal C robot model. So I have no idea what is going on. I attached the model in anymalC.zip. Many thanks.
from phobos.
Hi @edward9503 ,
thanks for the reply.
It seems in the URDF there is a reference to material "orange" that is not defined in the URDF. That you should remove or specify. (PS: I removed the reference)
However, there were some bugs in phobos as well. Thanks for pointing them out with your use case, they are fixed now. Please, fetch, zip and re-install phobos as stated in the README.
For me it works now.
Looking forward to your reply.
from phobos.
Hi @hwiedPro ,
Thanks, it works now!
Still, there is a little problem when importing this model. As you can see in the picture, the robot's base is penetrated by a linkage, which is not expected in urdf. Do you also see this issue from your side?
from phobos.
You are awesome, @edward9503 ! Thanks for testing.
I use DAE import quite rarely, so that was a good place for the bugs to hide. ;)
I just pushed a fix.
from phobos.
Hi @hwiedPro ,
Thanks for the update. Now the penetrating issue is solved.
There is one last issue, which is when I just import the model, the hatch_visual part is very big (much more bigger than the robot model). As you can see the robot is overlapped in the middle.
from phobos.
Yes i noticed, I thought you put a room into it. Sorry I'll check again.
EDIT:
Ok, the reason for this is the following:
https://github.com/ANYbotics/anymal_c_simple_description/blob/master/meshes/hatch.dae#L99
In Line 99 of hatch.dae is written:
<matrix sid="transform">0.001006675 0 0 0 0 9.99987e-4 0 0 0 0 9.99987e-4 0 0 0 0 1</matrix>
This transformation is a scaling transformation of 0.001 and leads to import of the mesh with that scale. As the URDF commands a scale of the mesh of 1.0 this is upscaled.
from phobos.
Hi @hwiedPro , but if that's the case, then we should also observe a upscaled hatch in rviz, which is instead not be observed.
Ps the urdf is the default one downloaded from the official website. I only change the path.
from phobos.
Yes, I know. I handle it now the same way as rviz, as I think for phobos dealing with the mesh like this is the more appropriate way. See bac32f3 ;)
from phobos.
Hi @hwiedPro ,
I tried to import another robot model, but something with the scale problem occurs again. You can see the leg of the robot is giant.
The model can be found here:
aliengo.zip
Thanks.
from phobos.
Thanks, this seems now to be really an issue with the DAE.
In DAE it is possible to define the unit in which the vertices of the mesh are specified. Search for the tag unit.
It happens now that calf.dae uses this option. If you import it into blender directly (File->Import->Collada .dae) and select there Import units. You'll notice that this mesh is huge there as well. E.g. hip does not scale with the unit.
I guess rviz ignores this tag.
However there also seems to be a bug in blender itself. When loading the DAE without importing the units it's small as the scale is applied. Then when importing WITH units, it's big. But THEN, when importing again without units it's still big, the Import units option no longer takes effect.
from phobos.
Thanks.
That's really an issue. Can we ignore that tag as well when using phobos to import the model?
from phobos.
Unfortunately phobos uses the exact same import units option. My suggestion here would be to export the calf.dae file again without the scale. I did so here: calf.zip
I also opened an issue in blender here https://projects.blender.org/blender/blender/issues/112557
I hope there will be a solution soon.
from phobos.
Hi @edward9503 ,
it should work now with the original aliengo model, too.
I'd be happy if you could confirm.
from phobos.
Related Issues (20)
- Wrong load in 1.0.3 in blender2.93 HOT 2
- Adding prismatic motor type
- Compiling Materials page in Wiki is missing HOT 1
- Materials don't always get fully added to urdf HOT 12
- Undefined key joint/type when exporting HOT 5
- Export failure on v2
- Nest camera definition within link HOT 2
- Camera sensor `topic` param HOT 1
- IMU sensor doesn't get exported HOT 2
- Add motor with JointController HOT 1
- Exporting scaled meshes HOT 2
- Link pose not exported in SDF HOT 3
- Cannot activate addon: ModuleNotFoundError: No module named 'pkg_resources' HOT 3
- AttributeError: module 'bgl' has no attribute 'glBegin' HOT 4
- Exporting URDF with 0 mass causes divide-by-zero error HOT 2
- "Define Joint(s)" dialog remembers and applies last joint name when creating new joint
- "Create Inertials" fails if not all vertices are selected HOT 2
- Better error messages in representation.py
- Installing the extension error: it claims to have installed all dependencies but does not enable. HOT 2
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 phobos.