getColorImage
Get color image from TurtleBot camera
Add-On Required: This feature requires the ROS Toolbox Support Package for TurtleBot-Based Robots add-on.
Syntax
Description
[
also returns
the received ROS image message.colorImg
,colorImgMsg
]
= 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 colorImg
and an empty message for colorImgMsg
,
if specified.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2016a