autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.17k stars 1.3k forks source link

project: sidewalk navigation #1056

Open Ezward opened 2 years ago

Ezward commented 2 years ago

The idea here is to create an autopilot that can flexibly drive on a network of sidewalks, making decisions at each intersection. The goal would be an autopilot that could be reprogrammed to drive a specific path or circuit within a sidewalk network simply by giving it a list of turns.

Create an autopilot that can

The first version of the autopilot would do this without GPS. So if a outdoor sidewalk network is not available, but an indoor network of hallways is available, then the same kind of autopilot could be created for the hallway navigation.

The 'make a decision' piece would be configurable

Elaborations (these can all be done as separate projects)

TCIII commented 2 years ago

@Ezward,

Might this be accomplished by the use of an inexpensive Lidar Scanner, such as the Slamtech A1-A3 family of Lidar scanners, along with a non-RTK GPS as the accuracy of non-RTK GPSs is at best 2.5 meters and GPS positional knowledge (drift) can deteriorate over time of use?

Regards, TCIII

Ezward commented 2 years ago

@Ezward,

Might this be accomplished by the use of an inexpensive Lidar Scanner, such as the Slamtech A1-A3 family of Lidar scanners, along with a non-RTK GPS as the accuracy of non-RTK GPSs is at best 2.5 meters and GPS positional knowledge (drift) can deteriorate over time of use?

Regards, TCIII

A Lidar would help with the slow/stopping if a person or other obstacle was detected. I think it would not help with mapping the sidewalk outside (assuming there are no permanent obstacles on the sidewalk as the would void the 'walk' promise). But inside a network of hallways it could be very useful because 1) it could be used to know the precise width as the car drives 2) assuming the walls are perpendicular to each other you could also probably use it to figure out the car's heading relative to the walls 3) hallways probably have more semi-permanent obstacles I think, so they could be mapped.

Ezward commented 2 years ago

What if we could correct the gps position based on recognizing a milestone on the path that has been well localized?

We know from using non-RTK GPS with the path follow template that non-RTK can be useful if it can be 'zeroed' out to subtract gps drift at the start of a race; then the drift during a race may be small enough to not be a problem. So if we can correct the gps position periodically as we drive, then even a cheap GPS could be used to navigate the path.

Now thinking about this in the sidewalk navigation scenario, what if you could correct your position when you come to a known milestone on the course. For instance what if each intersection was well localized ahead of time; perhaps by using satellite data/images or simply by using an RTK gps to measure each intersection's position. Of if not an intersection then a sign along the way; the sign itself might indicate it's position using a QR-Code; the vehicle, if it recognizes the QR code, will estimate it's position relative to the sign and then use that and the value contained in the QR code to reset it's gps position. That could be fun.

TCIII commented 2 years ago

@Ezward,

An excellent suggestion.

This project is beginning to sound like the Hobby version of the Lunar Rover Challenge.

TCIII

Ezward commented 1 year ago

Another simpler project might be to create a turn-by-turn navigation; like google navigate. A gps map of the sidewalk network would be given.

  1. Given a set of turns (in the turn file) provide the human driving with turn by turn instructions; this could be done with LEDs for left and right turns and maybe a green led for straight. The first version would stop the car if the user makes a wrong turn. The instructions will indicate when the car has reached the destination.
  2. Add a path finding algorithm; given the map and a list of points of interest within the sidewalk network; when given a destination point of interest calculate an optimal path to the point of interest and start turn by turn navigation.
TCIII commented 1 year ago

@Ezward,

As an alternative to using GPS for location, we could use extremely high resolution wheel encoders.

I have a 6WD robot chassis where the middle set of wheels is driven by motors with a high resolution wheel encoder on the back of the drive motor. Due to the high resolution of the motor encoders, I can achieve an output of 0.3142 mm/ encoder tick of travel. Additionally, since the encoders are on motors in the middle of the chassis, left and right turns as well as pivot turns are accurately recorded. The Rpi 4B mounted on this 6WD chassis is running the 921-path-follow-in-simulator branch and does so quite well given the high resolution knowledge of wheel travel.

Without the use of GPS-RTK, the accuracy of a Ublox NEO-M9N GPS, without dead reckoning, is at best 2.5 meters and can drift with time.

Comments?

Ezward commented 1 year ago
Ezward commented 1 year ago

@Ezward,

As an alternative to using GPS for location, we could use extremely high resolution wheel encoders.

I have a 6WD robot chassis where the middle set of wheels is driven by motors with a high resolution wheel encoder on the back of the drive motor. Due to the high resolution of the motor encoders, I can achieve an output of 0.3142 mm/ encoder tick of travel. Additionally, since the encoders are on motors in the middle of the chassis, left and right turns as well as pivot turns are accurately recorded. The Rpi 4B mounted on this 6WD chassis is running the 921-path-follow-in-simulator branch and does so quite well given the high resolution knowledge of wheel travel.

Without the use of GPS-RTK, the accuracy of a Ublox NEO-M9N GPS, without dead reckoning, is at best 2.5 meters and can drift with time.

Comments?

@TCIII I think encoders are really great to maintain a path between GPS updates, which might be slow (7 per second) and as a backup for short periods of time if GPS fails. However because they accumulate error we need some external way to localize to effectively reset the accumulated error. So we need GPS or visual odometry or something.

Ezward commented 1 year ago

Potential data sets for a sidewalk segmentation model

Ezward commented 1 year ago

Free space segmentation for navigating sidewalks: https://docs.nvidia.com/isaac/archive/2020.1nx/packages/freespace_dnn/doc/freespace_segmentation.html

Ezward commented 1 year ago
Ezward commented 1 year ago

If we were to do this indoors using corridors, where is a paper on corridor navigation; https://www.semanticscholar.org/paper/Vision-based-assistance-for-wheelchair-navigation-Pasteau-Krupa/3306150d768c833864c0fbd243ab06fd6a6af70e

Ezward commented 1 year ago

Visual odometry and depth camera for wheel chair navigation; https://www.cs.ubc.ca/~mack/Publications/ViswanathanIROSWorkshop2011.pdf

Ezward commented 1 year ago

Good article on image segmentation techniques; https://www.v7labs.com/blog/image-segmentation-guide

Alex-Beh commented 1 year ago

Interesting discussion. May I know how is the plan on going now?

TCIII commented 1 year ago

@Alex-Beh,

Due to all the prior programming commitments, probably on a back burner at the moment.

TCIII