robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
176 stars 67 forks source link

[Visualizer] Cannot visualize models in two separate Visualizer objects #654

Open prashanthr05 opened 4 years ago

prashanthr05 commented 4 years ago

Here, I tried to add the same model to two instantiated objects of the iDynTree visualizer. I set camera targets and positions. And when I call draw() on both the objects, only one of the object gets updated.

multiviz

Am I missing something here? Or is it not possible to have multiple instances of the Visualizer due to some underlying shared SceneManager ?

DanielePucci commented 4 years ago

CC @traversaro @gabrielenava @S-Dafarra

traversaro commented 4 years ago

As discussed on Teams, in theory the two Visualizers should be completely independent, but it is possible there are some bugs in iDynTree or in Irrlicht, I personally do not remember if I have tried to do something like that.