MCPcopy Create free account
hub / github.com/dartsim/dart / randomize_transform

Function randomize_transform

tests/integration/test_Frames.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void randomize_transform(
52 Eigen::Isometry3d& tf,
53 double translation_limit = 100,
54 double rotation_limit = 100)
55{
56 Eigen::Vector3d r = random_vec<3>(translation_limit);
57 Eigen::Vector3d theta = random_vec<3>(rotation_limit);
58
59 tf.setIdentity();
60 tf.translate(r);
61
62 if (theta.norm() > 0)
63 tf.rotate(Eigen::AngleAxisd(theta.norm(), theta.normalized()));
64}
65
66void randomize_transforms(common::aligned_vector<Eigen::Isometry3d>& tfs)
67{

Callers 4

randomize_transformsFunction · 0.85
TESTFunction · 0.85
randomize_target_valuesFunction · 0.85
test_relative_valuesFunction · 0.85

Calls 2

translateMethod · 0.45
rotateMethod · 0.45

Tested by

no test coverage detected