In this tutorial, we write a program that commands Misty to drive in a straight line for a designated period of time and stop if she encounters an object in her path. We do this by combining Misty’s
DriveTime locomotion command with information received from the
LocomotionCommand WebSocket connections. In this tutorial, you’ll learn:
- How to subscribe to data from Misty’s WebSocket connections
- How to use the
- How to write callbacks that use data from WebSocket connections to allow Misty to make decisions about what to do in different situations
Grab the code from GitHub!