Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Find link among multiple includes in a plugin

$
0
0
Hi I have an sdf where I include the same model multiple times:arm_1model://some_component0 0 0 0 0 0arm_2model://some_component1 0 0 0 0 0 Now each of these includes loads a modelplugin. The plugin then needs to find a certain link inside the include it is part of itself. However, I have no way of knowing what the name of the include is. All I can get is a list of all links in the model, but can't figure out which one belongs to the plugin. And trying to access _model->GetName() yields the name of the parent model ("big_as_robot"). So I'm looking for a way to make the plugin in "arm_2" say that it's part of "arm_2". Any help appreciated!

Viewing all articles
Browse latest Browse all 7017

Trending Articles