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

Updated aikido_rviz for the ShapeNode refactor #33

Merged
merged 5 commits into from
Apr 8, 2016
Merged

Conversation

mkoval
Copy link
Member

@mkoval mkoval commented Apr 4, 2016

No description provided.

@mklingen
Copy link

mklingen commented Apr 5, 2016

This pull request broke color in aikido_rviz btw. All of my meshes are white again :(

@mkoval
Copy link
Member Author

mkoval commented Apr 5, 2016

Which type of color are you talking about?

  • embedded textures
  • embedded vertex colors
  • color set on the ShapeNode's VisualAddon
  • color set on the aikido_rviz marker

@mklingen
Copy link

mklingen commented Apr 5, 2016

The color is an embedded material (not a texture or vertex color)

@mkoval
Copy link
Member Author

mkoval commented Apr 5, 2016

I'm not sure what that means. Can you post an example?

I can't imagine how these changes could break embedded materials. The only thing that has changed in this pull request is how I handle VisualAddon and ShapeFrameMarker color.

@mklingen
Copy link

mklingen commented Apr 5, 2016

its worth noting I updated dart as well, though I don't know how that could have caused this either.

@@ -63,6 +63,7 @@ add_library(${PROJECT_NAME} SHARED
src/BodyNodeMarker.cpp
src/FrameMarker.cpp
src/SkeletonMarker.cpp
src/ShapeFrameMarker.cpp
#src/ResourceServer.cpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR: what is the commented ResourceServer doing here?

@psigen
Copy link
Member

psigen commented Apr 6, 2016

@mkoval: This might take me a while to test 😓

image

@mklingen
Copy link

mklingen commented Apr 6, 2016

Hmm, still not entirely sure why my color is failing. I think I may have an old version of rviz with this bug present:

ros-visualization/rviz#752

Basically, if a marker color is published at all, it completely overrides the embedded material color. I think this PR possibly publishes a mesh color where none was published before. I will try deleting my rviz debs and updating to the latest version to see if it fixes my problem.

EDIT: Bah, nvm upgrading rviz didn't fix the problem.

@mklingen
Copy link

mklingen commented Apr 6, 2016

Woah, check out the documentation on the flag use_embedded_materials here:

http://wiki.ros.org/rviz/DisplayTypes/Marker

Apparently the mesh marker must have the flag use_embedded_materials set to true, and the color of the marker must be all 0s for it to work.

But apparently people haven't even been able to get that to work either!?

ros-visualization/rviz#933

Rviz is all kinds of messed up. Maybe I'll just switch the ADA model over to using textures instead.

@mkoval
Copy link
Member Author

mkoval commented Apr 6, 2016

The interplay between use_embedded_materials and color has changed a half dozen times over the past year. I saw it change three times over the course of the summer while using DART on Robonaut.

I believe the intended behavior is what's listed under the [1.8] block:

Since version [1.8], even when mesh_use_embedded_materials is true, if the marker color is set to anything other than r=0,g=0,b=0,a=0 the marker color and alpha will be used to tint the mesh with the embedded material.

That is the behavior I see on my desktop with the Fuze bottle mesh. Are you sure you're using the latest version of RViz?

@mklingen
Copy link

mklingen commented Apr 6, 2016

Yes. I will put together a test with some embedded materials (not textures)

On Wed, Apr 6, 2016 at 6:14 PM, Michael Koval [email protected]
wrote:

The interplay between use_embedded_materials and color has changed a half
dozen times over the past year. I saw it change three times over the course
of the summer while using DART on Robonaut.

I believe the intended behavior is what's listed under the [1.8] block:

Since version [1.8], even when mesh_use_embedded_materials is true, if
the marker color is set to anything other than r=0,g=0,b=0,a=0 the
marker color and alpha will be used to tint the mesh with the embedded
material
.

That is the behavior I see on my desktop with the Fuze bottle mesh. Are
you sure you're using the latest version of RViz?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#33 (comment)

@ClintLiddick
Copy link
Member

I tested this as-is with load_urdf from personalrobotics/dart_examples, and herb loads without issue.

@mkoval mkoval added bug and removed enhancement labels Apr 7, 2016
@mkoval
Copy link
Member Author

mkoval commented Apr 8, 2016

I think I addressed all of @psigen's immediate comments. I am merging this because it is causing all of our builds to fail. We can do any minor cleanup in another PR.

@mkoval mkoval merged commit 493dd4a into master Apr 8, 2016
@mkoval mkoval deleted the feature/ShapeNode branch April 8, 2016 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants