Configuration.close_to
- Configuration.close_to(other, tol=0.001)[source]
Returns
True
if the other Configuration’s joint_values are within a certain range.- Parameters:
- other
Configuration
The configuration to compare to.
- tolfloat
The tolerance under which we consider 2 floats the same. Defaults to 1e-3.
- other
- Returns:
bool
True
if the other Configuration’s joint_values are within a certain tolerance, False otherwise.
Examples
>>> c1 = Configuration.from_revolute_values([1, 0, 3]) >>> c2 = Configuration.from_revolute_values([1, 2 * pi, 3]) >>> c1.close_to(c2) True