You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To add a camera to your vehicle, add the following json to the "Cameras" map in your `settings.json`:
4
+
5
+
```
6
+
"Camera1": {
7
+
"CaptureSettings": [{
8
+
"ImageType": 0,
9
+
"Width": 785,
10
+
"Height": 785,
11
+
"FOV_Degrees": 90
12
+
}],
13
+
"X": 1.0,
14
+
"Y": 0.06,
15
+
"Z": -2.20,
16
+
"Pitch": 0.0,
17
+
"Roll": 0.0,
18
+
"Yaw": 180
19
+
}
20
+
```
21
+
22
+
`Camera1` is the name of the camera. This name will be used in ros topics and in coordinate frame.
23
+
24
+
`X`, `Y` and `Z` are the position of the lidar relative the [vehicle pawn center](vehicle_model.md) of the car in NED frame.
25
+
26
+
`Roll`,`Pitch` and `Yaw` are rotations in degrees.
27
+
28
+
`ImageType` describes the type of camera.
29
+
At this moment only rgb and depth cameras are supported.
30
+
For rgb camera, set this value to 0 and for depth camera set the value to 2.
31
+
32
+
* 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`
33
+
* RGB images are just your normal video camera. Images published in ros are encoded using `bgr8`
34
+
35
+
`FOV_Degrees` describes [how much the camera sees](https://en.wikipedia.org/wiki/Field_of_view).
36
+
The vertical FoV will be automatically calculated using the following formula: `vertical FoV = image height / image width * horizontal FoV`.
0 commit comments