Skip to content

Commit

Permalink
Better description for depth cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
SijmenHuizenga authored Jul 25, 2020
1 parent 573724a commit d697da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ To add a camera to your vehicle, add the following json to the "Cameras" map in
`ImageType` describes the type of camera.
At this moment only rgb and depth cameras are supported.
For rgb camera, set this value to 0 and for depth camera set the value to 2.
Using depth camera (DepthPerspective) you get depth using a projection ray that hits that pixel.

RGB images published in ros are encoded using `bgr8`, depth images published in ROS are encoded in `32FC1`.
* Depth Cameras (aka DepthPerspective) act as follows: each pixel is given a float value in meters corresponding to the smallest distance from the camera to that point. Images published in ros are encoded in `32FC1`
* RGB images are just your normal video camera. Images published in ros are encoded using `bgr8`

`FOV_Degrees` describes [how much the camera sees](https://en.wikipedia.org/wiki/Field_of_view).
The vertical FoV will be automatically calculated using the following formula: `vertical FoV = image height / image width * horizontal FoV`.
The vertical FoV will be automatically calculated using the following formula: `vertical FoV = image height / image width * horizontal FoV`.

0 comments on commit d697da6

Please sign in to comment.