Creating an RViz Plugin with animations
Hi all,
First of all, Ubuntu 64 bit 12.04 Hydro.
I'm trying to make an RViz plugin with animations. To get started, I modified the code from the tutorial:
http://docs.ros.org/hydro/api/rviz_pl...
If I try to do some sort of "animation" though, by creating a marker, sleeping, updating the marker, sleeping, etc., this doesn't cause anything to render. I'm guessing that this is because I'm making the entire RViz system sleep, so it can't update.
In order to get around this, for each incoming message, I fire off a thread tahtthen is in charge of painting for this thread. Unfortunately, this has led to numerous graphical glitches - and after the first one, it fails to paint for subsequent loops.
So much is abstracted away from the user in these plugins (it's actually extremely frustrating!) that I really do not have a good grasp on how the painting occurs. And there is little to no documentation on these things.
I'm looking for an explanation as to how the painting actually occurs, and possibly a suggestion on how to do animations correctly?
Hi, this question is old, but can I check what is the solution to this? I want to create animation in RViz plugin as well, and bumped into similar problem if I used the update-sleep-update-sleep-... approach. RViz would only show the last published markers. Thank you very much.