Skip to content

Use unique material names for robot links.#1102

Merged
wjwwood merged 1 commit intoros-visualization:kinetic-develfrom
fizyr-forks:unique-material-names
May 8, 2017
Merged

Use unique material names for robot links.#1102
wjwwood merged 1 commit intoros-visualization:kinetic-develfrom
fizyr-forks:unique-material-names

Conversation

@de-vri-es
Copy link
Copy Markdown
Contributor

@de-vri-es de-vri-es commented May 7, 2017

Two places in robot_link.cpp forgot to increment the static counter for creating unique material names. Since Ogre 1.10 this is not just a possible visual glitch but also an error resulting in an Ogre::ItemIdentityException:

terminate called after throwing an instance of 'Ogre::ItemIdentityException'
  what():  ItemIdentityException: Resource with the name robot link color material 1 already exists. in ResourceManager::add at /build/ogre/src/ogre/OgreMain/src/OgreResourceManager.cpp (line 150)

This PR increments the counter, and RViz no longer crashes when attempting to visualize a robot.

@wjwwood
Copy link
Copy Markdown
Member

wjwwood commented May 8, 2017

Thanks for the fix, sorry about missing this in the review.

This is the second regression of #1079 so far. Hopefully it is the last...

@wjwwood wjwwood merged commit d1ced4e into ros-visualization:kinetic-devel May 8, 2017
@de-vri-es
Copy link
Copy Markdown
Contributor Author

Thanks for the quick merge :)

@wjwwood
Copy link
Copy Markdown
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
DLu pushed a commit to DLu/rviz that referenced this pull request Dec 11, 2025
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