Skip to content

Commit

Permalink
Added a one-beam sonar device for pioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Jan 10, 2018
1 parent 94b5a49 commit 53e72a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jyro/simulator/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,13 @@ def __init__(self, maxRange=8.0, noise=0.0):
'back' : [],
'back-all' : []}

class PioneerFrontSonar(RangeSensor):
def __init__(self, maxRange=8.0, noise=0.0):
RangeSensor.__init__(self,
"sonar", geometry = (( 0.0, 0.0, 0),),
arc = 5 * PIOVER180, maxRange=maxRange, noise=noise)
self.groups = {'all': [0]}

class PioneerBackSonars(RangeSensor):
def __init__(self, maxRange=8.0, noise=0.0):
RangeSensor.__init__(self,
Expand Down

0 comments on commit 53e72a5

Please sign in to comment.