@@ -118,7 +118,7 @@ def test_track_vector_orientation():
118118 # Check objective function value
119119 f = np .array (sol .cost )
120120 np .testing .assert_equal (f .shape , (1 , 1 ))
121- np .testing .assert_almost_equal (f [0 , 0 ], 1206.2849823554816 )
121+ np .testing .assert_almost_equal (f [0 , 0 ], 2.614556858357712e-08 )
122122
123123 # Check constraints
124124 g = np .array (sol .constraints )
@@ -129,17 +129,17 @@ def test_track_vector_orientation():
129129 q , qdot , tau = sol .states ["q" ], sol .states ["qdot" ], sol .controls ["tau" ]
130130
131131 # initial and final position
132- np .testing .assert_almost_equal (q [:, 0 ], np .array ([0.80000001 , - 0.68299837 , - 1.57 , - 1.56999931 ]))
133- np .testing .assert_almost_equal (q [:, - 1 ], np .array ([0.80000001 , - 0.68299837 , 1.57 , 1.56999966 ]))
132+ np .testing .assert_almost_equal (q [:, 0 ], np .array ([0.80000001 , - 0.68299837 , - 1.57 , - 1.56999089 ]))
133+ np .testing .assert_almost_equal (q [:, - 1 ], np .array ([0.80000001 , - 0.68299837 , 1.57 , 1.56999138 ]))
134134 # initial and final velocities
135- np .testing .assert_almost_equal (qdot [:, 0 ], np .array ((- 5.62939992e -16 , 4.90499998e00 , 3.14000113e00 , 3.13999784e00 )))
135+ np .testing .assert_almost_equal (qdot [:, 0 ], np .array ((3.37753150e -16 , 4.90499995e00 , 3.14001172e00 , 3.13997056e00 )))
136136 np .testing .assert_almost_equal (
137- qdot [:, - 1 ], np .array ((- 5.62940009e -16 , - 4.90499998e00 , 3.14000029e00 , 3.13999868e00 ))
137+ qdot [:, - 1 ], np .array ((3.37753131e -16 , - 4.90499995e00 , 3.14001059e00 , 3.13997170e00 ))
138138 )
139139 # initial and final controls
140140 np .testing .assert_almost_equal (
141- tau [:, 0 ], np .array ([1.05886391e-25 , 6.28215525e-09 , - 2.53398134e-06 , 2.52582173e-06 ])
141+ tau [:, 0 ], np .array ([- 1.27269674e-24 , 1.97261036e-08 , - 3.01420965e-05 , 3.01164220e-05 ])
142142 )
143143 np .testing .assert_almost_equal (
144- tau [:, - 2 ], np .array ([- 6.38733211e-24 , 6.28215525e-09 , 1.31751960e-06 , - 1.30936553e-06 ])
144+ tau [:, - 2 ], np .array ([- 2.10041085e-23 , 1.97261036e-08 , 2.86303889e-05 , - 2.86047182e-05 ])
145145 )
0 commit comments