JdeRobot / WebSim2D

Robot simulator using web technologies, just JavaScript
9 stars 3 forks source link

Support for cameras in robot HALAPI #83

Closed jmplaza closed 4 years ago

jmplaza commented 5 years ago

The new getImage() method should deliver a synthetic 2D color image. The desired frame resolution is 150x100.

Maybe the raycasters can be reused here to see the color of the object which each ray collides with. If there were 16 raycasters then we could build this way a 16x1 image. This source image may be expanded to the desired 150 columns (150x1 image) and then copied into 99 additional rows, obtaining the desired 150x100 image size.