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

Fix mesh colors for Andino #15

Closed
IDavGal opened this issue Aug 28, 2023 · 2 comments
Closed

Fix mesh colors for Andino #15

IDavGal opened this issue Aug 28, 2023 · 2 comments

Comments

@IDavGal
Copy link
Collaborator

IDavGal commented Aug 28, 2023

The generated proto does not translate the colors specified in the gazebo_description URDF. According to urdf2webots the material can be parsed from a list of gazebo materials defined in the package, but this does not seem to be working.

@IDavGal
Copy link
Collaborator Author

IDavGal commented Sep 15, 2023

Update on colors not working:

  • urdf2webots doesn't parse materials set by gazebo reference="link"
  • It doesn't seem to work on materials defined outside of the link, such as the RVIZ material definition in macros' urdf for andino description
  • urdf2webots' gazebo materials dictionary doesn't contain some of the colors andino uses (BlueGlow or Road for example)

Things that do work:

  • Defining a reference to a color by name in a link and then referencing that on other links (i.e. base link defines blue as rgba="0 0 1 1", then camera_link can use just and it works)
  • Setting a urdf2webots' compatible gazebo material for each frame (i.e. base_link material is Gazebo/Blue)

@IDavGal
Copy link
Collaborator Author

IDavGal commented Sep 22, 2023

A workaround for this issue was implemented, adding a replacement for color definition for each link that requires it.

Additionally, an issue was opened in the urdf2webots repository to keep track of the package's solution for the problem.

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

2 participants