getDepthImage
Get depth image from TurtleBot camera
Syntax
Description
waits
for the next published depth image message from the TurtleBot® connected
through the interface object,depthImg
= getDepthImage(tbot
)tbot
, and returns
the image. If no message is received in five seconds, the function
displays an error. Depth images measure the distance to an object
for each area in the camera field of view.
[
also returns
the received ROS depth image message.depthImg
,depthImgMsg
]
= getColorImage(tbot
)
[___] = getColorImage(
waits
for the next image for tbot
,timeout
)timeout
seconds. If no new
message is received in that time, the function displays an error.
A timeout of zero returns the latest received message without waiting.
If no message has been received, the function returns an empty matrix
for depthImg
and an empty message for depthImgMsg
,
if specified.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2016a