How to create a spinning marker in Rviz

asked 2018-07-23 18:01:35 -0600

Peter Wofford gravatar image

updated 2018-07-24 10:28:15 -0600

Hi all, I've been looking into the visualization tutorials: http://wiki.ros.org/rviz/Tutorials/In... because I need to create virtual spinning rings with objects attached to them and was hoping the marker tutorials would have an example of an object spinning, rotating, or orbiting. It seems the closest thing is the basic_controls cube that is attached to a moving frame and oscillates up and down, but instead I'm looking for a moving frame which an object could spin around / orbit. Any pointers would be appreciated, I plan to look at the moving frame stuff and trying to do some stuff with polar coordinates to try to get the rotation going.

Some system info:: Ros Kinetic 4.13.0-45-generic #50~16.04.1-Ubuntu SMP Wed May 30 11:18:27 UTC 2018 x86_64

Thanks all!

Edit:: In response to fvd's comment, I suppose what I am trying to make is an animated marker. Wasn't aware animated markers were a thing, but I read something about editing the update method to create an animation. https://answers.ros.org/question/1497... Is this the best way to go about creating animated objects in RViz? The animations should be there for the viewers sake, they are not meant to be "visible" to the robot.

edit retag flag offensive close merge delete

Comments

2

Could you clarify if you want to move an object with an interactive marker, or if you want to have an animated marker?

fvd gravatar imagefvd ( 2018-07-24 04:42:21 -0600 )edit