Gazebo | Ignition | Community
Ask Your Question

How to enable/disable plugin when you are executing a Python script ?

asked 2020-05-27 20:30:31 -0500

Jordan1203 gravatar image

Hello !

I'm actually working on a Gazebo project but i can't fine an answer at my question : Is it possible to enable/disable a plugin in Python when you are executing a script ?

I created a simple script to "pick and place" object in Gazebo but the object always slide out from the gripper. So, I used a plugin which fixed that problem by attaching the origin from gripper to the object when they are in collisions during few seconds. This is the link of the plugin : Now i want to add a push function to my script but when you are pushing, Gazebo will attach object to the gripper. I would like to know if it's possible to enable/disable this plugin (by a service or whatever) during execution to fix that issue.

I'm working with an UR5 and a gripper85 and I got melodic version of Ubuntu.

Any help will be appreciated and thank in advance. Jordan

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-02 05:53:01 -0500

tartaglia gravatar image

yes you can write a ros service in the plugin to set some flags or do stuff in a callback

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-05-27 20:30:31 -0500

Seen: 299 times

Last updated: Jun 02 '20