3 from pathlib
import Path
6 import pinocchio
as pin
7 from test_case
import PinocchioTestCase
as TestCase
15 vec = pin.StdVec_Vector3()
17 vec.append(np.random.rand(3))
19 pickle.dump(vec, Path(
"save_std_vec.p").
open(
"wb"))
21 vec_loaded = pickle.load(Path(
"save_std_vec.p").
open(
"rb"))
22 for k
in range(len(vec)):
23 self.assertApprox(vec[k], vec_loaded[k])
26 if __name__ ==
"__main__":