【A12、A13 Camera ITS】
输入命令前需要配置环境:
conda activate python37(同时拥有python37和python27环境,需要安装conda进行切换)
CameraITS>config.yml 更新配置测试手机的设备号(配置方法会在最后列出)
输入命令:
source build/envsetup.sh(切换环境之后需要进行刷新)
python tools/run_all_tests.py camera=0 scenes=0,1,2,3,4,6
python tools/run_all_tests.py camera=0 scenes=5(需要毛玻璃进行测试)
python tools/run_all_tests.py camera=0 scenes=scene_change
python tools/run_all_tests.py camera=0 scenes=sensor_fusion
#new scenes:
scene0, scene1_1, scene1_2, scene2_a, scene2_b, scene2_c,scene2_d, scene2_e, scene3, scene4,scene6
备注:
1. A12增加config.yml属性,可以在该文件中配置设备序列号和场景
2. 在config.yml文件中配置设备序列号的时候,需要对纯数字的序列号加双引号,否则不能识别序列号出现报错
3. 如果不想在config.yml配置文件中配置场景信息,仍然可以在命令行指定测试场景
4. 场景5测试光线比较暗时,需要进行打光
【A11 Camera ITS】
输入命令前需要配置环境:
conda activate python27(A11需要python27的环境)
输入命令:
source build/envsetup.sh
python tools/run_all_tests.py device=$device_id camera=0 chart=NNFDU18904001426 scenes=0,1,2,3,4
python tools/run_all_tests.py device=$device_id camera=0 scenes=5
python tools/run_all_tests.py device=7f573e76 camera=0 scenes=sensor_fusion rot_rig=default
【A10 Camera ITS】
输入命令前需要配置环境:
conda activate python27(A10需要python27的环境)
输入命令:
source build/envsetup.sh
python tools/run_all_tests.py device=$device_id camera=0 chart=5RXBB21429206264 scenes=0,1,2,3,4
python tools/run_all_tests.py device=$device_id camera=0 scenes=5
python tools/run_all_tests.py device=7f573e76 camera=0 scenes=sensor_fusion rot_rig=default
【A12、A13的config.yml属性配置】
TestBeds:
- Name: TEST_BED_TABLET_SCENES # Need 'tablet' in name for tablet scenes
# Use TEST_BED_MANUAL for manual testing and remove below lines:
# - serial <tablet_id>
# label: tablet
# Test configuration for scenes[0:4, 6, _change]
Controllers:
AndroidDevice:
- serial: "22563kj8h8g6f5"
label: dut
- serial: 5RXBB21429206264
label: tablet
TestParams:
brightness: 96
chart_distance: 31.0
debug_mode: "False" # quotes are needed here
chart_loc_arg: ""
camera: 1
scene: scene_6 # if <scene-1> left as-is runs all scenes
- Name: TEST_BED_SENSOR_FUSION # Need 'sensor_fusion' in name for SF tests
# Test configuration for sensor_fusion/test_sensor_fusion.py
Controllers:
AndroidDevice:
- serial: "22563kj8h8g6f5"
label: dut
TestParams:
fps: 30
img_size: 640,480
test_length: 7
debug_mode: "False" # quotes are needed here
chart_distance: 25
rotator_cntl: sensor_fusion # arduino, canakit, or as-is for manual
rotator_ch: <controller-channel>
camera: 0