I have been driving my rover around town using Andruav and a SIM racing steering wheel in acro mode to get some experience driving around in an urban environment.
The rover is based on 4 hoverboard motors and has 2 phones running andruv, a wifi camera that can pan and tilt and a 360 lidar for collision avoidance. The hoverboard controllers are hardcoded for a maximum speed of 100rpm, this gives it a top speed of 1.5mph (2.41 km/h). That way, if it goes out of control, it’s not going to go anywhere fast enough to hurt anyone.
So far I have done around 10 miles and I have narrowed it down to a few scenarios that cover most driving around. Almost all driving could be done with just a RTK fix if you drive the path first to get accurate waypoints, it could go around the park OK, but it will need something to nudge it around obstructions. I don’t have the coding abilities or the onboard computing power to do slam so I have been looking at other options using lidar and microcontrollers.
bendy ruler will get it around most obstructions but there will be a lot of edge cases that I want to make some custom modes for.
Centre track - if it detects objects at either side, I want it to stay in the centre of them, for example travelling along a path with a wall on one side and a car on the other. Or crossing a very narrow foot bridge.
Wall follow - if there is a wall at one side stay a set distance from it, what side to follow could be worked out by how consistent it is or object recognition to see what side has the cars. This should really help in areas with poor GPS like when it has to go under a bridge or trees.
Kerb follow - I am looking at being able to detect vertical deviations from the normal terrain height and mark it as obstruction using a multibeam lidar array like VL53l5CX. The sensor puts out a 8x8 array with a range up to 3.5m. So I was thinking of having one at each side of the vehicle and measuring the terrain height around it and marking anything significantly above or below the average value by more than a few cm as an obstruction.
Path following is the hardest part, this is when there is a path with very little vertical difference at either side so no walls or kerbs. Like a path with grass at either side. Some kind of vision system is the only way I can think of doing it, but that gets expensive and complicated.
I really like how this works:
when you think about it, its basically just looking for colours, so I went looking for something that could track colours and found this. It uses an ESP32 to select an RGB value and a range, then it will mask it and track the largest group of that colour. so by making a running average of the colour of the centre of the path I think i can turn it into a path follower.
I am currently upgrading my rover to the LD06 lidar, I have a mavlink adapter for it that im adding some extra navigation functions to like wall follow and centre track.
This was hilarious



