Multiple model plugins for a model
Hi
Can I have multiple model plugins for a single model?
Thanks in advance!
Hi
Can I have multiple model plugins for a single model?
Thanks in advance!
Yes, you can have multiple model plugins attached to the same model. See for example the submarine model, which has 5 model plugins.
Just make sure all the plugins are not overriding each other. Depending on what the plugins do, the order in which they're loaded might mix up their behaviours (for example, if they all connect to world update event).
How can I get output of 'printf' of each plugin in separate terminal?
I'd go so far as to say impossible. What you really want is the ability to distinguish between your different plugins. I'd recommend looking at other techniques for that. Prefix all prints with the plugin name, print them all, pipe the output of gazebo to a file, and use `tail -f logfile.txt | grep plugin1name`. That has the effect of separating out the output of one plugin. Do that for all your plugins, and voila..
I'd go so far as to say impossible. What you really want is the ability to distinguish between your different plugins. I'd recommend looking at other techniques for that. Prefix all prints with the plugin name, print them all, redirect the output of gazebo to a file, and use `tail -f logfile.txt | grep plugin1name`. That has the effect of separating out the output of one plugin. Do that for all your plugins, and voila..
Asked: 2016-06-27 07:50:45 -0500
Seen: 2,061 times
Last updated: Jun 27 '16
Four ray sensors from different sources in a single robot
Change a collision's perceptibility during runtime
How to locate another model from within a model plugin (find water from boat)
Subscribing to a contact topic from a model plugin
Changes to model behavior when converting between Gazebo 1.0 and Gazebo 1.8
Changing color of Model in Gazebo via ModelPlugin
How to find model dimensions through ROS?
Error [Plugin.hh:127] undefined symbol
Benefit of creating a model plugin when a world plugin exists
Did you try it? My guess is yes, but I haven't tested it. If you tried it, tell us what you tried.
I tried it. Added one more plugin in the sdf. It worked!