-
Notifications
You must be signed in to change notification settings - Fork 98
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
Allow to convert URDF color to SDF material tag #526
Conversation
Signed-off-by: ahcorde <[email protected]>
Is it possible to add a test? |
Will this be compatible with Gazebo Classic in case only the URDF color is defined? |
Gazebo11 (classic) is using What do you think @nkoenig ? should I retarget this to |
I don't see a problem leaving this PR targeted toward sdformat11. No reason to potentially upset Gazebo classic. |
Signed-off-by: ahcorde <[email protected]>
@nkoenig Test added |
Signed-off-by: ahcorde <[email protected]>
I'm going to close this PR because there is a way to include the color without adding new code, for example:
|
That's only part-wise solution. This way, you can only set a single material to all |
Signed-off-by: ahcorde <[email protected]>
friendly ping @nkoenig |
Signed-off-by: ahcorde <[email protected]>
c58aa5f
to
9f489cd
Compare
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
friendly ping @azeey |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to using an example to compare the colors between Rviz and ign-gazebo (with examples/world/empty.sdf
). It still doesn't match quite right. ign-gazebo is much brighter.
. I don't know if this an issue with ign-gazebo or not. I'll go ahead and approve since the values used for the conversion seem reasonable to me.
Merging I ticketed an issue |
Are there plans for backporting to sdf10? |
Signed-off-by: ahcorde [email protected]
🦟 Bug fix
This PR tries to fix this issue #513 where the URDF gazebo material tags are incorrectly translated
As a general overview:
rgba
but in ignition the color is defined as ambient, specular and diffuse. URDF definitionThis solution will not break the
old
behaviour, if there is any<material>
tag under a<gazebo>
tag, then the tag will be replaced.Summary
Checklist
sh tools/code_check.sh
)test coverage)
another open pull request
to support the maintainers
Note to maintainers: Remember to use Squash-Merge