asphalter / xiaomi_vacuum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

manipulate maps on robot

marcianito opened this issue · comments

Hi @asphalter,

having read your long post on HA and live maps, it seems you have quite an idea about this stuff. I am writing because I couldn't figure out my problem crawling the web neither by myself. Maybe you have an idea..

I am having this problem that when new maps are created and the robot stops (interrups), the latest map does not include all room. Hence my HA scripts for cleaning only specific rooms won't work as these areas are "unknown" to the robot. I know this is an issue discussed in some boards.

My idea was to manipulate the map on the robot in a way to always "restore a map" (prior to cleaning), where he mapped the complete appartment. So I though he'd get this information from the robot.db file. Overwriting with the "correct" .db file did not solve this issue though. Then I found your post and thought this /run/shm/navmap*.ppm could solve this issue but as I understood this is only temporarily created during cleaning!? (I have gen2 and no such file in this directory)

I dough a little deeper and found a file called "last_map" in /mnt/data/rockrobo. So i guess, the last map is not only getting written to the robot.db but also here (where he probably gets this coordinates for next cleaning procedure). Nevertheless, this is a binary file and I have no clue how to manipulate this one, in order to restore a map where all rooms where included.

Do you have any idea? Did you maybe solve this issue for yourself? Do you know where the robot retrieves its data about "which places are known" when spot cleaning?

Any advice would be helpful!

Thanks and cheers :)