Skip to content

Commit

Permalink
laser yaml add
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowerst-0416 authored Dec 1, 2022
1 parent 129f54e commit 10c1e89
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 14 deletions.
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,7 @@ source devel/setup.bash
roslaunch multi_calibration auto_calibration.launch directory:="[file position]" laser_cam:=1
```
Run **rqt** in different terminal
```shell
rqt
```
Go to Plugins -> Topics -> Message Publisher
![Message Publisher](images/rqt2.png)
In the Message Publisher panel switch to the `/execution_status` topic
![Message Publisher Panel](images/rqt3.png)
Publish at a rate you want and the image will be captured automatically at that rate.
cd ~/Calibration_ws/laser_calib
rosrun multi_calibration laser_calib -i ./ -c ./laser_calib.yaml
```
38 changes: 38 additions & 0 deletions multi_calibration/cfg/laser_calib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
%YAML:1.0
---
model_type: MEI
camera_name: camera
image_width: 2448
image_height: 1840
mirror_parameters:
xi: 2.2233477162
distortion_parameters:
k1: -0.8088886525
k2: -0.8067357586
p1: 0.0079433344
p2: -0.0037897510
projection_parameters:
gamma1: 3811.1549321366
gamma2: 3805.6811535143
u0: 1221.7500158745
v0: 892.4705799546
width: 2448
height: 1840

# checkerboard parameters
target_rows: 7
target_cols: 10
square_size: 0.01 # meters

# laser detection parameters for HSV thresholding
# For red laser that
hue_min: 0
hue_max: 30
sat_min: 0
val_min: 100 # brightness
val_ratio: 0.05 # val_thresh = max(val_min, image_max_val * val_ratio)


segment_length_min: 15
vis_laser_detection: 0
laser_horizontal: 1

0 comments on commit 10c1e89

Please sign in to comment.