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

support multiple material for one link #1079

Merged
merged 1 commit into from
Apr 29, 2017

Conversation

k-okada
Copy link
Contributor

@k-okada k-okada commented Feb 12, 2017

this is rewrited version of #812

we'll get
screenshot from 2017-02-12 23 43 04
with this urdf

<?xml version="1.0"?>
<robot name="hoge">
  <link name="base_link">
    <visual>
      <geometry>
        <cylinder length="4" radius="1"/>
      </geometry>
      <material name="black_metal">
        <color rgba="0.1 0.1 0.1 1"/>
      </material>
    </visual>
    <visual>
      <geometry>
        <cylinder length="2" radius="5"/>
      </geometry>
      <material name="gold">
        <color rgba="1 0.549 0 1"/>
      </material>
    </visual>
  </link>
</robot>

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm

@wjwwood
Copy link
Member

wjwwood commented Apr 29, 2017

I'll back port this for jade (or forward port it from the indigo pr).

@wjwwood wjwwood merged commit 3f1b388 into ros-visualization:kinetic-devel Apr 29, 2017
wjwwood pushed a commit that referenced this pull request Jun 5, 2017
@wjwwood
Copy link
Member

wjwwood commented Jun 5, 2017

Backported in #1110

wjwwood added a commit that referenced this pull request Jun 5, 2017
* Add fullscreen option. (#1017)

* urdfdom compatibility (#1064)

* Use urdf::*ShredPtr instead of boost::shared_ptr (#1044)

urdfdom_headers uses C++ std::shared_ptr. As it exports it as custom
*SharedPtr type, we can use the to sty compatible.

This also adds a proper dependency for urdfdom-headers

* adaptions to build against both urdfdom 0.3 and 0.4

... relying on the compatibility layer of urdf package

* Update display if empty pointcloud2 is published (#1073)

Do not show last point cloud any more, if published point cloud message does not contain any points

* Correctly scale the render panel on high resolution displays (#1078)

* support multiple material for one link (#1079)

* Fixed duplicate property name for Path colors (#1089)

See issue #1087.

* fix type error in newer versions of urdf (#1098)

* Use unique material names for robot links. (#1102)

* avoid C++11 feature for back port to indigo
@k-okada k-okada deleted the kinetic-devel branch March 13, 2018 04:14
@rhaschke rhaschke mentioned this pull request Oct 4, 2018
rhaschke added a commit to rhaschke/rviz that referenced this pull request Oct 29, 2018
In urdf::Link, only the first visual's material comprises actual color values, all others only have the name.
Thus to correctly show the color of all visuals, we need to search for the first visual with given material name,
much like ros-visualization#1079 has done. If urdf parser is fixed, this work-around can be removed.
rhaschke added a commit to rhaschke/rviz that referenced this pull request Feb 10, 2019
In urdf::Link, only the first visual's material comprises actual color values, all others only have the name.
Thus to correctly show the color of all visuals, we need to search for the first visual with given material name,
much like ros-visualization#1079 has done. If the urdfdom fix (ros/urdfdom#114) is released,
this work-around can be reverted.
rhaschke added a commit to rhaschke/rviz that referenced this pull request Feb 17, 2019
rhaschke added a commit to rhaschke/rviz that referenced this pull request Feb 17, 2019
rhaschke added a commit to rhaschke/rviz that referenced this pull request Feb 17, 2019
In urdf::Link, only the first visual's material comprises actual color values, all others only have the name.
Thus to correctly show the color of all visuals, we need to search for the first visual with given material name,
much like ros-visualization#1079 has done. If the urdfdom fix (ros/urdfdom#114) is released,
this work-around can be reverted.
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

Successfully merging this pull request may close these issues.

2 participants