Open PierrickKoch opened 10 years ago
You want to have a look the the ROS node depthimage_to_laserscan and re-implement it in Python within MORSE.
I'm note really sure we want do that. I'm afraid that it will be more computing expensive and not really precise (due to the way how is encoded z-buffer in OpenGL).
To "fix" the current issue, we "just" need to set proper bounding box to table and other stuff. But it may imply some extra physics cost (through generally it is not our bottleneck).
I would prefer to keep this issue open, since its a very real issue. Either:
c/p mail to Johannes Horvath on morse-users (15 June 2016 at 14:04):
laser = DepthCamera()
laser.properties(cam_width=720, cam_height=1, cam_far=80, cam_near=1, cam_focal=25.0)
laser.frequency(50)
laser.translate(x=2.1, z=1.91)
laser.rotate(y=-12*math.pi/180)
laser.profile()
robot.append(laser)
You might need to arrange the
cam_focal
property to get the desired resolution.
Following Johannes Horvath email on morse-users, we might want to implement a LaserScanner from a DepthCamera
legend blue: DepthCamera, white: LaserScanner