Robotics StackExchange | Archived questions

Is it possible to screenshot a simulation using python? Like can I access the taskbar using my python script?

I'm trying to screenshot my gazebo simulation every so many time steps. Also, I'm trying to get an orthographic 2D view of the simulation when I screenshot. However, I want to achieve all of this programmatically using python. Thanks!

Asked by aj.villa on 2017-01-17 19:10:05 UTC

Comments

Answers

As far as I know, there isn't a python interface which can access these features.

Asked by chapulina on 2017-01-18 12:06:49 UTC

Comments

Do you have any suggestions for what I can do if I'm trying to get an overview snapshot of the bots? Maybe add a camera and subscribe to the frames?

Asked by aj.villa on 2017-01-18 14:21:48 UTC

If you're willing to use javascript instead of python, you could try gazebojs: http://gazebosim.org/tutorials?tut=gazebojs_camera_topics&cat=gazebojs

Asked by chapulina on 2017-01-18 14:41:38 UTC