Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The generated simmechanics doesn't contain MaterialProp elements #62

Open
diegoferigo opened this issue Jul 28, 2017 · 6 comments
Open

Comments

@diegoferigo
Copy link
Member

Moved from robotology/simmechanics-to-urdf#27.

For some reason, the steps that generate the XML simmechanics file don't export anymore the MaterialProp elements. Without this, the generated urdf has no color.

@traversaro @fiorisi Who can help me on this? I have 0 knowledge about how Simscape Multiboby Link works.

@traversaro
Copy link
Member

As Simscape Multibody Link is a closed source software, I think it is quite difficult to fix this. Consider also that we are currently using a legacy format in the converter, that is not considered the main output of the conversion tool anymore.

@diegoferigo
Copy link
Member Author

I never opened the software. Is it somehow configurable? Probably we changed a setting without noticing. If I recall well, the file from where the icub-gazebo model is generated contains those fields.

@traversaro
Copy link
Member

The amount of configuration is extremely limited:

smlink_settings

If it ever worked (and I am not sure about this, to be honest) it was probably broken by either an update in Creo or Matlab.

@traversaro
Copy link
Member

See http://wiki.icub.org/wiki/Creo_Mechanism_to_URDF for more info.

@diegoferigo
Copy link
Member Author

You can find a recap about the steps for coloring the model at #57.

Actually the random colors are read properly by RViz, obtaining a very colorful and ugly iCub. Probably the best way to go now is disabling the colors if they are not exported from Link as @traversaro suggested. If it is easy enough we can manually color the meshes (if they are split wisely) @fiorisi.

cc @lucaTagliapietra @claudia-lat

@fiorisi
Copy link
Member

fiorisi commented Mar 28, 2018

As far as I know from the CAD model is not possible to extract the colors using the SimMechanics Link.
Theoretically we could generate the meshes separately like it was done for R1. With iCub is a bit more complex though because we don't have the native cover surfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants