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

Add Urdf features: multiple visuals and material linking #161

Merged
merged 4 commits into from
Mar 9, 2015

Conversation

jakobs
Copy link
Contributor

@jakobs jakobs commented Feb 21, 2015

These commits will add missing Urdf features. Note that this will break api compatibility, since the UrdfLink.visual param is missing. I am adding a PR to ros3djs as well.

add a visuals property to UrdfLink, which contains all the visual
elements found in the link element. This breaks api compatibility,
since the visual property is not available anymore.
Urdf has the feature to link to a material, instead of specifying it in full.
this is done by providing just a name for a material. This commit will
fill the material object with content that is specified in an material
element of the same name in the body.

UrdfMaterial.prototype.assign = function(obj) {
for( var key in obj ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can just be

var assign = require("object-assign");

UrdfMaterial.prototype.assign = function(obj) {
  return assign(this, obj);
}

@jakobs
Copy link
Contributor Author

jakobs commented Feb 21, 2015

Thanks. Updated it.

rctoris added a commit that referenced this pull request Mar 9, 2015
Add Urdf features: multiple visuals and material linking
@rctoris rctoris merged commit 731f1b6 into RobotWebTools:develop Mar 9, 2015
k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
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.

3 participants