Try Viam (borrow a rover): Remotely control a Viam Rover in their NYC robotics lab for 10 minutes. Drive it around, explore its configuration, or write code to control it—all from wherever you are.
Follow along with step-by-step instructions: Drive a rover using TypeScript.
- From the command line of your terminal window, create a new robot app.
$ npm create robot-app
- At the command-line prompt, input your project name (or leave as default).
- Select a template for your project, such as
controlRover, and hit Enter. - Navigate into the new project directory, where
my-viam-projectis the name of your new project.$ cd my-viam-project - Update the file
.envwith your own machine credentials from the CONNECT page of the Viam app.
- Start the server. Your web app should be running at
http://localhost:5173/.$ npm start
In the example shown below, when the connection to the rover is established, the Click me button will become enabled.
