First time here? Check out the FAQ!


ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Multiple visual entries in urdf

asked Aug 16 '11

dornhege gravatar image

updated Aug 16 '11

AHornung gravatar image

Is it possible to have multiple visual entries in an urdf link?

If yes, how? For me, it seems to only take the first entry.

The same would go for collision models and maybe inertia.

Preview: (hide)

3 Answers

Sort by » oldest newest most voted
2

answered Aug 16 '11

AHornung gravatar image

updated Aug 16 '11

Eric Perko gravatar image

There was a discussion about this on the mailing list in the past, with a ticket submitted and newer more general ticket. It seems like it is implemented in robot_model trunk (and waiting for release in e-turtle?).

Preview: (hide)

Comments

I can't seem to post these links correctly - they show up OK in the preview but look messed up in the answer?
AHornung gravatar image AHornung  ( Aug 16 '11 )edit
I fixed the links for you. For some reason, the "add link" tool prepends an "http://" to things that start with "https://". You can see the error if you look at the actual markdown for the link. I usually just insert links as markdown and skip the GUI tool to avoid weirdness like that.
Eric Perko gravatar image Eric Perko  ( Aug 16 '11 )edit
Ah thanks! I just can't get used to the syntax of the markdown here - thus the need to fall back to the editor tool.
AHornung gravatar image AHornung  ( Aug 16 '11 )edit
The hacky/simple way is using the editor tool and then correcting the links in the source.
dornhege gravatar image dornhege  ( Aug 17 '11 )edit
2

answered Aug 16 '11

David Lu gravatar image

I think the short answer is no.

However, you can create a second link with the same origin that has additional properties.

Preview: (hide)

Comments

I will do this for now. Seems a bit hacky to me as it is actually one part.
dornhege gravatar image dornhege  ( Aug 17 '11 )edit
2

answered Aug 18 '11

hsu gravatar image

The released electric robot_model do parse multiple visuals. You can retrieve them using urdf::Link::getVisuals(const std::string &group_name). Please take a look at the code api.

Preview: (hide)

Question Tools

Stats

Asked: Aug 16 '11

Seen: 1,089 times

Last updated: Aug 17 '11