Skip to content
This repository
tree: 0f72ec239f
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 76 lines (65 sloc) 1.401 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

define sicksensor sensor
(
  # factory settings for LMS200
  range [ 0.0 8.0 ]
  pose [ 0 0 0.1 0 ]
  fov 180
  samples 180
  #samples 90 # still useful but much faster to compute
  color_rgba [0 0 1 0.15]
)

define sickcommon ranger
(
  color "blue"
  size [ 0.156 0.155 0.19 ] # dimensions from LMS200 data sheet
 )

define sickbase sickcommon
(
block( points 4
       point[0] [0 0]
       point[1] [0 1]
       point[2] [1 1]
       point[3] [1 0]
       z [0 0.21]
      )
)

# extends sicklaser to add nice-looking but relatively expensive geometry
define fancysickbase sickcommon
(
  # bottom
  block(
    points 4
    point[0] [ -0.02 -0.077 ]
    point[1] [ 0.078 -0.077 ]
    point[2] [ 0.078 0.077 ]
    point[3] [ -0.02 0.077 ]
    z [0 0.02 ]
  )

  # back
  block(
    points 4
    point[0] [ -0.078 -0.077 ]
    point[1] [ -0.02 -0.077 ]
    point[2] [ -0.02 0.077 ]
    point[3] [ -0.078 0.077 ]
    z [0 0.21 ]
  )

  # top
  block( points 4
    point[0] [ -0.02 -0.077 ]
    point[1] [ 0.078 -0.077 ]
    point[2] [ 0.078 0.077 ]
    point[3] [ -0.02 0.077 ]
    z [0.12 0.21 ]
  )

  # laser bit
  block( points 4
    point[0] [ -0.02 -0.05 ]
     point[1] [ 0.06 -0.05 ]
     point[2] [ 0.06 0.05 ]
     point[3] [ -0.02 0.05 ]
     z [0.02 0.12 ]
  )
)

define sicklaser sickbase ( sicksensor() )

define fancysicklaser fancysickbase ( sicksensor() )

Something went wrong with that request. Please try again.