10 parsed_translation = np.identity(p_cloud_dim + 1)
12 p_translation = p_translation.replace(
',',
' ')
14 translation_values = np.fromiter(p_translation.split(
' '), np.float)
16 for i, v
in enumerate(translation_values):
17 parsed_translation[i, p_cloud_dim] = v
19 return parsed_translation
23 parsed_rotation = np.identity(p_cloud_dim + 1)
25 p_rotation = p_rotation.replace(
',',
' ')
26 p_rotation = p_rotation.replace(
';',
' ')
28 rotation_matrix = np.fromiter(p_rotation.split(
' '), np.float)
30 for i, v
in enumerate(rotation_matrix):
31 parsed_rotation[i // p_cloud_dim, i % p_cloud_dim] = v
33 return parsed_rotation