2019-11-10 17:55:28 -05:00
|
|
|
package com.chameleonvision.classabstraction.config;
|
2019-11-10 11:47:56 -05:00
|
|
|
|
2019-11-21 05:32:19 -05:00
|
|
|
import com.chameleonvision.classabstraction.camera.CameraProperties;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
2019-11-10 11:47:56 -05:00
|
|
|
public class CameraConfig {
|
2019-11-20 17:06:18 -05:00
|
|
|
public final double fov;
|
|
|
|
|
public final String path;
|
|
|
|
|
public final String name;
|
|
|
|
|
public final String nickname;
|
2019-11-19 12:06:37 -08:00
|
|
|
|
2019-11-21 05:32:19 -05:00
|
|
|
@JsonCreator
|
|
|
|
|
public CameraConfig(
|
|
|
|
|
@JsonProperty("fov") double fov,
|
|
|
|
|
@JsonProperty("path") String path,
|
|
|
|
|
@JsonProperty("name") String name,
|
|
|
|
|
@JsonProperty("nickname") String nickname) {
|
|
|
|
|
this.fov = fov;
|
2019-11-19 12:06:37 -08:00
|
|
|
this.path = path;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.nickname = nickname;
|
|
|
|
|
}
|
2019-11-21 05:32:19 -05:00
|
|
|
|
|
|
|
|
public CameraConfig(String path, String name) {
|
|
|
|
|
this.fov = CameraProperties.DEFAULT_FOV;
|
|
|
|
|
this.path = path;
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.nickname = name;
|
|
|
|
|
}
|
2019-11-10 11:47:56 -05:00
|
|
|
}
|