Monash-Connected-Autonomous-Vehicle / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
1 stars 0 forks source link

Set up & configure Autoware mapping component #6

Open dylan-gonzalez opened 7 months ago

dylan-gonzalez commented 7 months ago

Understand Autoware Mapping and Creating Maps

If you need to test Autoware with a simulator, read here.

zcdai commented 7 months ago

OSM is not suitable for our pointcloud requirements, the data they provide is low-fidelity. This highlights how they have elevation data and vector points to form the surface of an area, which aren't suitable for our 3D use-case.

This tool helps us make lanelet2 files (vector maps), provided with a PCD map as a baseline. More details will have to be looked into via the documentation here

Also the mapping documentation needs LiDAR as a baseline for making PCD files, this should be possible with our current resources.

AnthonyZhOon commented 7 months ago

11-12-23

So, right now our mapping isn't very detailed so it's hard to create a vector map. We need to consider how to record more detailed pointcloud maps

ZileiChen commented 6 months ago

A few screenshots of our pcd map

Image

This one is okay, there might be a few misalignment issues where you can see faint outlines of trees inside the parking lot. Its possible to make a vector map out of this since I am able to see the where the curbs are meant to be.

Image

This one is a lot better, and was the last record we did, similar problems as the one above but the image quality is a lot higher compared to before.

From the 5 rosbags, 1 of them was a recording of the drive to the car park, I noticed that driving once on a road created a pretty decent pcd map. Thus, another way of trying to scan we could try is to just drive back and forth in a straight line (slowly) to minimize misalignments.

Attempting to create vector map now.

ZileiChen commented 6 months ago

woodside_lanelet.zip

Had issues saving the pcd files. Used the Woodside car park scans from last semester to create a lanelet2 vector map instead for now. The left side is hard to map since I cannot tell where exactly the parking spots end + there are people scanned.

Image

zcdai commented 6 months ago

Looking at this tells us that if we want to make lots of parking spots, we need to break the long road into multiple small components.

Image

Image

After fiddling with it I got this:

Image

Despite it looking very innocent, making a parking block involves:

This tedious process makes scalability look very unlikely unless we learn of some shortcuts in the future.

Some other points: Area subtypes may allow us to customise software logic when handling these zones in the future, for now they have been marked with 'parking'.

Creating many linestrings on top of each other may not be a visible problem to a map designer, but the software may treat it very differently and run into logic errors.

Currently planning to cease work on woodside pcd. Instead, reduce the problem down into a simple 1-way road with only 1 parking spot. Once the single parking spot problem has been solved we can expand back into real-world usage.

Image

Also how did tierIV make such clean curves...

Image

Here's the file if you want to see how it was done:

woodside_lanelet_parking.zip

dylan-gonzalez commented 6 months ago

@zcdai to test parking with Autoware

zcdai commented 5 months ago

Things looked at this week:

Their implementation of parking is very novel, and I'm not entirely sure how it works

This is what it looks like in rviz:

Image

This is what it looks like in the map builder:

Image

This makes scaling up much simpler, we simply have to cover the entire area with a polygon with a parking_lot subtype and insert linestrings with parking_space subtypes. It's unnecessary to create the arduous bends using this method.

Will look into why these implementation returns clean blocks in rviz and transfer this info into woodside parking

dylan-gonzalez commented 5 months ago

How does autoware handle these zones ? Specify parking x-y coords with pose

This week: parking into designated zones (might have to write our own custom node)

ZileiChen commented 4 months ago

https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/-/issues/678

A previous project was similar to what we had, in terms of mapping we designate each parking spot as an area.

Image

Image

ZileiChen commented 4 months ago

Another strategy used here is to 'narrow' the driving area such that instead of dividing the road up into segments to create parking areas, a second line is used to divide parking spots. This could also just be how the car was designed. There wasn't any turning arcs in these maps for each spot which means we can use autoware to somehow create a way to park into these spots without following the map

Image