JointTrajectoryPoint.close_to

JointTrajectoryPoint.close_to(other, tol=0.001)

Returns True if the other Configuration’s values are within a certain range.

Parameters
  • other (Configuration) – The configuration to compare to.

  • tol (float) – The tolerance under which we consider 2 floats the same. Defaults to 1e-3.

Returns

boolTrue if the other Configuration’s 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