Main Content
setVelocity
Send linear and angular velocities to TurtleBot
Add-On Required: This feature requires the ROS Toolbox Support Package for TurtleBot-Based Robots add-on.
Syntax
Description
setVelocity(
sends
a linear and angular velocity command to the TurtleBot.tbot
,linearVel
,angularVel
)
setVelocity(___,'Time',
sends
a velocity command repeatedly during the specified timeperiod
)timeperiod
in
seconds. The publish frequency is 20 Hz. After the elapsed time, the
function sends a velocity of zero. You can specify input arguments
from any of the previous syntaxes.
Examples
Input Arguments
Version History
Introduced in R2016a