This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Sensor Data

Collect data from TurtleBot® sensors

TurtleBot robots publish all their sensor data on a ROS network. These functions are used to get data from different sensors off the ROS network. You can also send velocity commands to move robots using setVelocity.


expand all

getColorImageGet color image from TurtleBot camera
getGrayImageGet grayscale image from TurtleBot camera
getDepthImageGet depth image from TurtleBot camera
getPointCloudGet point cloud image from TurtleBot camera
getLaserScanGet laser scan sensor readings from TurtleBot
getIMUGet IMU data from TurtleBot
getOdometryGet odometry reading from TurtleBot
getTransformGet transformation between two frames on the TurtleBot robot
resetOdometryReset odometry for TurtleBot
setVelocitySend linear and angular velocities to TurtleBot


turtlebotConnect to TurtleBot


Get Started with the TurtleBot Support Package

This example demonstrates how to interface with the TurtleBot® robot.

Get Image Data from TurtleBot at a Fixed Rate

This example shows how to get image data from the TurtleBot and display it at a fixed rate.

Plot TurtleBot Odometry

Get and store odometry data to display in a figure