Robotics StackExchange | Archived questions

SDF include non static model inside a static model

Hello everybody,

As said in the title, I want to include a non static model inside a static model. I want to avoid collision between the two model's links. That's why I want to use the include tag in the model.

So I have my "main" model which is representing a building's floor and some models which are representing elevators.

I tried to use static tag inside the include but it kills performance (real time factor is 0.9 when static is not used and 0.08 when I set a static tag with a 0 value).

I also tried collide_bitmask tag but it also kills performance.

So I tried to unset static in the plugin I made to control the doors. (SetStatic(false)) But it doesn't work.

Is there another way to do that ?

Update : collide_bitmask seems to have no impact on performance. Performance problem seems to be due to the location where I make the include of the elevators models.

Include in world file :

Include in the main model :

Thanks in advance

Asked by Brosseau.F on 2016-05-19 08:26:52 UTC

Comments

Do you want the building to collide with other models? Otherwise you could just remove all of its collision shapes :)

Asked by chapulina on 2016-05-19 11:18:52 UTC

Yes I want the building to collide with other models.

But I can probably disable collision for walls in contact with the elevator models.

Asked by Brosseau.F on 2016-05-20 01:40:38 UTC

Answers