Robotics StackExchange | Archived questions

Can gazebo users use some model plugins at the same time?

I have a question.

I tried to use some model plugins at once, but the motion of robots in gazebo was obviously strange.

One of my plugins is subscribing topics of contacts, and the other is adding force, torque and so on.

When I use my plugins independently, the motion of robots wasn't strange.

Does anyone know the solution of this problem?

Asked by Viper on 2017-12-11 09:07:22 UTC

Comments

Plugins can be used together. If they're conflicting, then they must be trying to do the same thing at the same time. It's hard to tell without more context.

Asked by chapulina on 2017-12-11 12:58:19 UTC

Thank you very much. I show you my plugins(model_hop_use.cc, sensor_to_model.cc) on Github. The URL is https://github.com/VicViperT301/for-Jacob Would you tell more information?

Asked by Viper on 2017-12-13 08:37:09 UTC

Answers

Looking at your code, I can see both plugins are calling AddRelativeTorque, so that's probably where they're conflicting. Be sure to give each plugin a single responsibility.

Asked by chapulina on 2017-12-13 10:56:01 UTC

Comments