concepts.dm.crowhat.manipulation_utils.contact_point_sampler.pairwise_sample#

pairwise_sample(sampler1, sampler2, product=False, max_returns=1000)[source]#

Pairwise sample from two samplers.

Parameters:
  • sampler1 – the first sampler.

  • sampler2 – the second sampler.

  • product (bool) – whether to return the product of the two samplers. If False, the two samplers will be zipped.

  • max_returns (int) – the maximum number of pairs to return.

Returns:

an iterator of samples from the two samplers.