Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

THIS PROJECT WAS SOURCED FROM ILYA (KAIAAI) WATCH HIS VIDEOS FOR MORE UNDERSTANDING

https://youtube.com/playlist?list=PLOSXKDW70aR8uA1IFahSKVuk5ODDfjTZV&si=8KT599YrK9mBafSm

Meanwhile, you could follow these goto instructions.

  1. Enable wsl2 in your PC by going to your cmd terminal and paste this code: wsl --install --no-distribution

  2. Download docker desktop, this would allow you use the project in your pc https://share.google/Ru6QWVXtW4dRNeICo

  3. Download X server, this will allow you see Linux gui https://share.google/WsKHNSanIxvo4Ysbt

  4. Download Arduino (preferably version 1.8) and install the esp32 board. Also install the esp32 2.0.17 library. New versions don't work

  5. Download this zip file and extract the plugin to arduino plugin https://github.com/kaiaai/firmware/archive/refs/tags/v0.8.2.zip

  6. Upload firmware to board including spiff data

Board should have already been connected to the WiFi you want to use, don't use 5gz for your hostpot Next, check your WiFi you should see Kaiaai connect to it and copy the board's ipadress as shown in the serial monitor to chrome. In chrome, fill in details of your WiFi and also its ipadress which can be gotten by simply writing ipconfig in your cmd terminal.

Make sure docker and X sever are both running Then open power shell and run these codes:

Windows WSL2

docker pull kaiaai/kaiaai:iron docker run --name makerspet -it --rm -v c:\maps:/root/maps -p 8888:8888/udp -p 4430:4430/tcp -e DISPLAY=host.docker.internal:0.0 -e LIBGL_ALWAYS_INDIRECT=0 kaiaai/kaiaai:iron

NOTE: the code above would download the project image

Windows WSL2

docker exec -it makerspet bash

To operate the robot manually:

Launch the physical robot

ros2 launch kaiaai_bringup physical.launch.py

Drive robot manually

ros2 run kaiaai_teleop teleop_keyboard

Monitor robot sensors

ros2 launch kaiaai_bringup monitor_robot.launch.py

Create a map while driving manually

ros2 launch kaiaai_bringup cartographer.launch.py

Save the newly-created map

ros2 run nav2_map_server map_saver_cli -f ~/maps/map --ros-args -p save_map_timeout:=60.0

To operate automatically:

Launch the physical robot

ros2 launch kaiaai_bringup physical.launch.py

Specify target location;; robot self-drives using an existing map

ros2 launch kaiaai_bringup navigation.launch.py map:=$HOME/maps/map.yaml

Launch SLAM (simultaneous localization and mapping) - navigate and map simultaneously

ros2 launch kaiaai_bringup navigation.launch.py slam:=True

Robot automatically seeks out, self-drives to unknown locations

ros2 launch explore_lite explore.launch.py

Save the newly-created map

ros2 run nav2_map_server map_saver_cli -f ~/maps/map --ros-args -p save_map_timeout:=60.0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors