Drive the robot & read its sensors¶
Everything here happens in the app.physicar tab. Open it from the file explorer.
Drive it¶
- In the CONTROL panel the DRIVE pad sets speed and steering (the Max slider caps the speed at 0.5–3.0 m/s), the LOOK pad pans and tilts the camera, and the arrow keys drive from the keyboard — the robot moves immediately, in the simulator and on the real robot alike.
- Speed and steering are the robot's two basic outputs — the same values your code
will publish later on
/speedand/steering.
Read the sensors¶
| Panel | What it shows | Why it matters |
|---|---|---|
| Camera | live frames — 360p / 240p / 120p, click to enlarge | vision models, line following |
| LiDAR | 360° distance scan on a 2 / 4 / 8 / 16 m range, click to enlarge | obstacle detection, SLAM |
| Velocity | linear (m/s) and angular (rad/s) speed | seeing what your commands actually do |
| Battery | charge and voltage | knowing when to stop |
- Each header folds its panel; a folded Camera or LiDAR stops streaming.
- Restart (bottom of the sensor column) restarts PhysiCar ROS — every node is rebuilt and relaunched. Use it when the robot stops responding. To move the car itself in the simulator, drag it in the 3D view (it lands upright).
VNC and MYAPP¶
- VNC shows the robot's own desktop — the ROS 2 course happens there. The RViz button on the desktop panel (bottom left) opens RViz.
- MYAPP shows your own robot web app once one is running (build one). While a Racing course runs, its live view borrows this panel.
- Both have an open-in-new-tab button in their header. In the simulator a third column, SIMULATOR, holds the 3D view; the … button next to its name picks the world.
Check: drive forward, watch the camera and lidar react, look around with LOOK → you've covered the whole loop.
What each sensor is → Learn: Sensors