@@ -48,10 +48,10 @@ function InitializeFactorData(): FactorData {
4848export function PriorPose2Data ( xythetaPrior = [ 0.0 , 0.0 , 0.0 ] , xythetaCovars = [ 0.01 , 0.01 , 0.01 ] ) : FactorData {
4949 const fnc = {
5050 Z : {
51- _type : " IncrementalInference.PackedFullNormal" ,
51+ _type : ' IncrementalInference.PackedFullNormal' ,
5252 mu : xythetaPrior ,
53- cov : [ xythetaCovars [ 0 ] , 0.0 , 0.0 , 0.0 , xythetaCovars [ 1 ] , 0.0 , 0.0 , 0.0 , xythetaCovars [ 2 ] ]
54- }
53+ cov : [ xythetaCovars [ 0 ] , 0.0 , 0.0 , 0.0 , xythetaCovars [ 1 ] , 0.0 , 0.0 , 0.0 , xythetaCovars [ 2 ] ] ,
54+ } ,
5555 } ;
5656 const data = InitializeFactorData ( ) ;
5757 data . fnc = fnc ;
@@ -62,10 +62,10 @@ export function PriorPose2Data(xythetaPrior = [0.0, 0.0, 0.0], xythetaCovars = [
6262export function Pose2Pose2Data ( mus = [ 1 , 0 , 0.3333 * PI ] , sigmas = [ 0.01 , 0.01 , 0.01 ] ) : FactorData {
6363 const fnc = {
6464 Z : {
65- _type : " IncrementalInference.PackedFullNormal" ,
65+ _type : ' IncrementalInference.PackedFullNormal' ,
6666 mu : mus ,
67- cov : [ sigmas [ 0 ] , 0.0 , 0.0 , 0.0 , sigmas [ 1 ] , 0.0 , 0.0 , 0.0 , sigmas [ 2 ] ]
68- }
67+ cov : [ sigmas [ 0 ] , 0.0 , 0.0 , 0.0 , sigmas [ 1 ] , 0.0 , 0.0 , 0.0 , sigmas [ 2 ] ] ,
68+ } ,
6969 } ;
7070 const data = InitializeFactorData ( ) ;
7171 data . fnc = fnc ;
@@ -74,14 +74,14 @@ export function Pose2Pose2Data(mus = [1, 0, 0.3333 * PI], sigmas = [0.01, 0.01,
7474}
7575
7676export function Pose2AprilTag4CornersData (
77- id :number ,
77+ id : number ,
7878 corners : number [ ] ,
7979 homography : number [ ] ,
8080 K : number [ ] = [ 300.0 , 0.0 , 0.0 , 0.0 , 300.0 , 0.0 , 180.0 , 120.0 , 1.0 ] ,
8181 taglength : number = 0.25 ,
8282) : FactorData {
8383 const fnc = {
84- _type : " /application/JuliaLang/PackedPose2AprilTag4Corners" ,
84+ _type : ' /application/JuliaLang/PackedPose2AprilTag4Corners' ,
8585 corners,
8686 homography,
8787 K,
@@ -109,9 +109,9 @@ export function Factor(
109109 nstime : '0' ,
110110 fnctype : fncType ,
111111 _variableOrderSymbols : variableOrderSymbols ,
112- data : data ,
112+ data,
113113 solvable : 1 ,
114- tags : tags ,
114+ tags,
115115 timestamp,
116116 _version : DFG_VERSION ,
117117 } ;
0 commit comments