Gazebo | Ignition | Community
Ask Your Question
0

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

asked 2017-01-17 18:11:49 -0600

aj.villa gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-01-18 11:06:49 -0600

chapulina gravatar image

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

edit flag offensive delete link more

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?

aj.villa gravatar imageaj.villa ( 2017-01-18 13:21:48 -0600 )edit

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

chapulina gravatar imagechapulina ( 2017-01-18 13:41:38 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-17 18:10:05 -0600

Seen: 402 times

Last updated: Jan 18 '17