Gazebo | Ignition | Community
Ask Your Question

Keep door closed until handle is turned

asked 2016-12-12 08:31:11 -0600

snakeplisk gravatar image

I am looking for a door model that will not open until the handle is turned.

At present I have tried the hinged_door and heavy_door models from the database and they can just be pushed open regardless of the state of the handle.

Can someone please direct me to a model/ world file that achieves this? Or can it be done with the existing models and am I doing something wrong?

edit retag flag offensive close merge delete



You could modify the existing models with a model plugin which implements the behaviour you want. I imagine someone might have done this before...

chapulina gravatar imagechapulina ( 2016-12-12 10:28:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-13 15:22:17 -0600

Chapulina has suggested a model plugin, which is definitely a good choice. Or, just make the latch mechanically! Unless you'd rather write code to do it, I a simple mechanical latch would be easy. Take advantage of the fact that you have real physics

edit flag offensive delete link more


Thanks Peter, I will try both of those options.

snakeplisk gravatar imagesnakeplisk ( 2016-12-14 02:36:52 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-12-12 08:31:11 -0600

Seen: 157 times

Last updated: Dec 13 '16