Comments (1)
Hi, definitely - if you just want to get them from the robot's perspective as you run simulation using the Environment APIs, you can simply get the observation returned by env.step(), pick out the camera image, and save that as an image using PIL.Image APIs.
If you want to dive deeper and be able to manipulate the camera outside the typical robotics environment context (e.g. no robot, no physics, just photos with a particular purpose) you can take a look at this example:
iGibson/igibson/utils/derivative_dataset/pipeline.py
Lines 157 to 189 in 1f52c34
Essentially the simulator.renderer.render() function gives you the image as a numpy array. You can use PIL or cv2 to save that in your desired format.
For videos, you can either just save all your frames in a directory and run ffmpeg offline later to combine them into a video, or you can use cv2's VideoWriter to write a video on the fly. I'd recommend ffmpeg.
I'm closing this now but feel free to reopen if you have more questions.
from igibson.
Related Issues (20)
- Can we add visualization for lidar in the GUI?
- Turtlebot lidar scan_link might need to be raised up a bit
- Render semantics (Matterport3D)
- Define roaming and coverage task
- Quickstart Example fails to load assets HOT 1
- ROS Docker numpy error
- Colorized mesh's in gui_interactive HOT 6
- States do not change when replaying BEHAVIOR demonstrations
- VR not working in Linux HOT 6
- About 'optical_flow' and 'scene_flow'
- Error running mesh_renderer_example
- Installation issue "Could not build wheels for igibson" HOT 1
- Feature Request: migrate from gym to gymnasium HOT 1
- python -m igibson.examples.environments.env_nonint_example HOT 3
- Qt plugin issue HOT 2
- Issues downloading datasets HOT 1
- Incorrect orientation format in examples/objects/load_objects.py
- Error to load the Qt platform plugin "xcb" HOT 4
- Cabinet Example Not Working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from igibson.