|Download Help (Windows Only)|
To drive a wheeled robot at a certain velocity and direction, you first must design a representation of the robot steering frame that defines properties of the frame and its wheels. After you design the steering frame representation on the block diagram, use that representation to implement motor control by calculating and converting between robot velocity and wheel velocities and connecting to motors that drive wheels.
The following sections describe how to manually and programmatically design a steering frame.
You can use the Configure Steering Frame Express VI to design a steering frame in an interactive dialog box. This Express VI returns the steering frame object, which you interact with on the block diagram using Steering VIs that allow you to control wheel and frame velocity.
Refer to the Configurable Steering.lvproj in the labview\examples\robotics\Steering\Configurable Steering directory for an example of manually designing and then steering a wheeled robot.
When you programmatically design a steering frame, you typically write code similar to the following block diagram.
The previous block diagram performs the following tasks to generate a steering frame object when the VI runs:
Refer to the Mecanum Steering.lvproj in the labview\examples\robotics\Steering\Mecanum Steering directory for an example of programmatically designing and steering a wheeled robot.