Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/various fixes #22

Merged
merged 6 commits into from
Jan 6, 2025
Merged
Prev Previous commit
Next Next commit
fix: Increase precision of keypoint location rounding
aelmiger committed Jan 6, 2025
commit 01e27a7964b86ff4860783e53e4305831ad3676b
2 changes: 1 addition & 1 deletion syclops/blender/sensor_outputs/keypoints.py
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ def generate_output(self, parent_class: object):
if class_id is not None:
if "keypoints" in object_instance.object:
location = object_instance.matrix_world.translation
location = [round(x, 4) for x in location]
location = [round(x, 6) for x in location]
instance_id = self._calculate_instance_id(location)
for keypoint, pos in object_instance.object["keypoints"].items():
vec = mathutils.Vector((pos['x'], pos['y'], pos['z']))