rob102-staff / mbot-omni-app

Web app for the MBot Omni robot.
0 stars 0 forks source link

Lidar + Mapping Features #24

Closed imadhav21 closed 2 years ago

imadhav21 commented 2 years ago

The lasers now appear on the screen, and you can see the lasers interact with the environment, and how they move as the robot moves along. In addition, mapping is now available, so the robot can create a map of its environment.

To make the lasers and mapping appear, you can run ./slam, ./rplidar_driver, and ./timesync (all in the botlab-bin/bin folder), which will turn on mapping and the lasers.

One thing to note is that the laser display is dependent on mapping mode. So after running the above commands, you need to turn on mapping mode to see the lasers (Mapping mode can be turned on by pressing "n" on the keyboard, or by going into the menu and switching on the toggle)

Another thing to note is that when mapping and the lasers are active, there is a small time delay in the motor command inputs.

I hope everything works well!