pose_format.torch.representation.inner_angle_test module
Classes:
|
Unit test for the |
- class pose_format.torch.representation.inner_angle_test.TestInnerAngleRepresentation(methodName='runTest')[source]
Bases:
TestCaseUnit test for the
InnerAngleRepresentationclass.This test class verifies that the angle calculations for the InnerAngleRepresentation class are correct and handle edge cases appropriately.
- test_call_value_should_be_inner_angle():
Tests if the calculated angle matches the expected angle value.
- test_call_masked_value_should_be_zero():
Tests if a masked value in the input results in a zero output angle.
Methods:
Tests if masking an input value results in an output angle of zero.
Tests if the computed angle from the
InnerAngleRepresentationmatches the expected value.- test_call_masked_value_should_be_zero()[source]
Tests if masking an input value results in an output angle of zero.
This test masks one of the input points and expects the computed angle at the middle point to be zero.
- test_call_value_should_be_inner_angle()[source]
Tests if the computed angle from the
InnerAngleRepresentationmatches the expected value.This test sets up three points and expects the computed angle at the middle point to be approximately equal to the angle calculated via arccosine of a predefined value.