turtlebot
Connect to TurtleBot
Add-On Required: This feature requires the ROS Toolbox Support Package for TurtleBot-Based Robots add-on.
Description
The turtlebot
object connects to TurtleBot® robots via a ROS network at a specific address. It contains properties for
activating subscribers and accessing topic names relevant to the TurtleBot. Use the turtlebot
object functions to get different
sensor data off the ROS network and to send commands to control the
robot.
Creation
Syntax
Description
creates a
TurtleBot interface object. MATLAB® connects to the TurtleBot ROS master running on the same
machine, unless you specify a different location in the
tbot
= turtlebotROS_MASTER_URI
environment variable.
connects to the TurtleBot ROS master at IP or host name,
tbot
= turtlebot(hostname
)hostname
. This syntax assumes the ROS default port
number of 11311
.
connects to the TurtleBot ROS master at the specified port
number, tbot
= turtlebot(hostname
,port
)port
.
connects to the TurtleBot at the given uniform resource identifier,
tbot
= turtlebot(URI
)URI
.
specifies the IP or host name under which the node advertises itself to the
ROS network.tbot
= turtlebot(___,'NodeHost',hostname
)
Properties
Object Functions
getColorImage | Get color image from TurtleBot camera |
getDepthImage | Get depth image from TurtleBot camera |
getGrayImage | Get grayscale image from TurtleBot camera |
getLaserScan | Get laser scan sensor readings from TurtleBot |
setVelocity | Send linear and angular velocities to TurtleBot |
getIMU | Get IMU data from TurtleBot |
getTransform | Get transformation between two frames on the TurtleBot robot |
getOdometry | Get odometry reading from TurtleBot |
resetOdometry | Reset odometry for TurtleBot |
setVelocity | Send linear and angular velocities to TurtleBot |
Examples
Version History
Introduced in R2016a