Skip to content

Commit

Permalink
Merge pull request #1007 from tue-robotics/fix/eddesignator_default_r…
Browse files Browse the repository at this point in the history
…adius

changed default radius to inf
  • Loading branch information
MatthijsBurgh committed Mar 3, 2020
2 parents 8e39d4b + fc33921 commit 5af32c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class EdEntityCollectionDesignator(Designator):
>>> check_resolve_type(entities, [Entity]) #This is more a test for check_resolve_type to be honest :-/
"""

def __init__(self, robot, type="", center_point=None, radius=0, id="", parse=True, criteriafuncs=None,
def __init__(self, robot, type="", center_point=None, radius=float('inf'), id="", parse=True, criteriafuncs=None,
type_designator=None, center_point_designator=None, id_designator=None, debug=False, name=None):
"""Designates a collection of entities of some type, within a radius of some center_point, with some id,
that match some given criteria functions.
Expand Down Expand Up @@ -102,7 +102,7 @@ class EdEntityDesignator(Designator):
Resolves to an entity from an Ed query
"""

def __init__(self, robot, type="", center_point=None, radius=0, id="", parse=True, criteriafuncs=None,
def __init__(self, robot, type="", center_point=None, radius=float('inf'), id="", parse=True, criteriafuncs=None,
weight_function=None, type_designator=None, center_point_designator=None, id_designator=None,
debug=False, name=None):
"""Designates an entity of some type, within a radius of some center_point, with some id,
Expand Down

0 comments on commit 5af32c3

Please sign in to comment.