-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depth cameras ros bridge, documentatio
- Loading branch information
1 parent
00fa002
commit 573724a
Showing
7 changed files
with
92 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Cameras | ||
|
||
To add a camera to your vehicle, add the following json to the "Cameras" map in your `settings.json`: | ||
|
||
``` | ||
"Camera1": { | ||
"CaptureSettings": [{ | ||
"ImageType": 0, | ||
"Width": 785, | ||
"Height": 785, | ||
"FOV_Degrees": 90 | ||
}], | ||
"X": 1.0, | ||
"Y": 0.06, | ||
"Z": -2.20, | ||
"Pitch": 0.0, | ||
"Roll": 0.0, | ||
"Yaw": 180 | ||
} | ||
``` | ||
|
||
`Camera1` is the name of the camera. This name will be used in ros topics and in coordinate frame. | ||
|
||
`X`, `Y` and `Z` are the position of the lidar relative the [vehicle pawn center](vehicle_model.md) of the car in NED frame. | ||
|
||
`Roll`,`Pitch` and `Yaw` are rotations in degrees. | ||
|
||
`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`. | ||
|
||
`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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters