getGrayImage
Get grayscale 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.grayImg,grayImgMsg]
= getGrayImage(tbot)
[___] = getGrayImage( 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 grayImg and empty message for grayImgMsg,
if specified.
Examples
Input Arguments
Output Arguments
Tips
The TurtleBot simulated in Gazebo that is provided in Get Started with Gazebo and Simulated TurtleBot does not support
getGrayImage.
Version History
Introduced in R2016a