GithubHelp home page GithubHelp logo

Comments (18)

edward9503 avatar edward9503 commented on July 28, 2024 1

@hwiedPro Thanks a lot! Now it looks perfect!!!

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024 1

Thank you for testing. I'll close this then!

from phobos.

edward9503 avatar edward9503 commented on July 28, 2024 1

Awesome, thanks for the help.

from phobos.

edward9503 avatar edward9503 commented on July 28, 2024 1

Hi @hwiedPro
Yes it works on my side. Thanks so much.

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

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.

image
image

anymalC.zip

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

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?

image

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

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.

image
image

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

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.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

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.
image

The model can be found here:
aliengo.zip

Thanks.

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

edward9503 avatar edward9503 commented on July 28, 2024

Thanks.

That's really an issue. Can we ignore that tag as well when using phobos to import the model?

from phobos.

hwiedPro avatar hwiedPro commented on July 28, 2024

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.

hwiedPro avatar hwiedPro commented on July 28, 2024

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)

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.