Files
clover/docs/camera_frame.md
Oleg Kalachev 6efeae5bca Updates docs/camera_frame.md
Auto commit by GitBook Editor
2018-01-09 22:25:00 +03:00

29 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Настройка расположения основной камеры
Расположение и ориентация основной камеры задается в файле `~/catkin_ws/src/clever/clever/launch/main_camera.launch`:
```xml
<node pkg="tf2_ros" type="static_transform_publisher" name="main_camera_frame" args="0 0 -0.07 -1.5707963 0 3.1415926 fcu bottom_camera_optical"/>
```
Эта строка задает статическую трансформацию между фреймом `fcu` ([соответствует корпусу полетного контроллера](/docs/frames.md)) и камерой в формате:
```
сдвиг_x сдвиг_y сдвиг_z угол_рысканье угол_тангаж угол_крен
```
Сдвиги задаются в метрах, углы задаются в радианах.
## Настройки для Клевера
### Клевер 3, камера вниз
```xml
<node pkg="tf2_ros" type="static_transform_publisher" name="main_camera_frame" args="0.05 0 -0.07 1.5707963 0 3.1415926 fcu bottom_camera_optical"/>
```
### Клевер 3, камера вверх
```xml
<node pkg="tf2_ros" type="static_transform_publisher" name="main_camera_frame" args="0.05 0 0.07 -1.5707963 0 0 fcu bottom_camera_optical"/>
```