from controller import Robot
from controller import RangeFinder
robot = Robot()
timeStep = getBasicTimeStep()
RangeFinder = robot.getRangeFinder("RangeFinder_name")
RangeFinder.enable(timeStep)
RangeFinder.disable()
RangeFinder.getWidth()
RangeFinder.getHeight()
imageData = getRangeImage()
imageArray = getRangeImageArray()
RangeFinder.rangeImageGetDepth(imageData,RangeFinder.getWidth(),5,10)
Webots关于深度相机的命令
最新推荐文章于 2024-09-05 10:39:00 发布