apollo icon indicating copy to clipboard operation
apollo copied to clipboard

How can I see lane detection from a camera in SVL

Open rzr900ipl opened this issue 5 years ago • 25 comments

Hi, I'm trying to see lane detection from a camera in SVL simulator, and I trying to do as is specified in this document.

First I create a record file from de SVL. Next I do point 1,2,3,4,5,6,7. In the point 8, I chose "If you want to test lane detection alone use" using the command mainboard -d ./modules/perception/production/dag/dag_streaming_perception_lane.dag. To see the lane results, I mark enable_visualization: true in modules/perception/production/conf/perception/camera/lane_detection_component.config before executing the point 1 form the document. I play de recorded file it the file of the perception camera turns off

How can I fix that? Thank you

rzr900ipl avatar Jul 26 '21 15:07 rzr900ipl

@rzr900ipl In the top-left window, the static transform component cannot find yaml files. You can try to choose the vehicle model in dreamviewer, and Apollo should copy the yaml files of that vehicle to the directory needed.

tandf avatar Aug 24 '21 01:08 tandf

@tandf Thank you for you answer. I did what you said, but the results were the same.

I'm using Apollo 6.0

rzr900ipl avatar Aug 24 '21 10:08 rzr900ipl

I found that in the folder /apollo/modules/drivers/lidar/velodyne/params/ don't exist the folders that static transform said. Is this normal?

rzr900ipl avatar Aug 24 '21 10:08 rzr900ipl

@rzr900ipl Sorry I can't help. I tried lgsvl's apollo 5 and it worked fine. There are some yaml example files in that folder. Maybe you can compose the files needed according to the examples.

tandf avatar Aug 24 '21 13:08 tandf

@tandf I will instal LGSVL's Apollo 5. So can you tell me set by set, since the record until the visualization, for I try to do it and see if it works? I appreciate if you are specific for I don't miss nothing or do any mistake Thank you

rzr900ipl avatar Aug 24 '21 17:08 rzr900ipl

@rzr900ipl You can follow lgsvl's document to run Apollo, and try this doc for the perception module. It has been some months and I can't remember every detailed step.

tandf avatar Aug 26 '21 03:08 tandf

@tandf But you run perception module of this doc when you are in real time on LGSVL ou with a cyber record? If you used cyber record, can you tell me what you did for I compare with what I am doing? Thank you again

rzr900ipl avatar Aug 26 '21 09:08 rzr900ipl

@rzr900ipl

But you run perception module of this doc when you are in real time on LGSVL ou with a cyber record?

Yes I run this in real time on LGSVL. The experiment contains two parts, one reading data and the other writing data. Apollo is the reader, and you can use lgsvl or use a cyber script to send the data as you need. I did both. You can first try Apollo with lgsvl, and see the result as a "Hello World" experiment.

tandf avatar Aug 26 '21 11:08 tandf

@tandf Do you think the problem could be in my GPU, because LGSVL and perception module need's lot GPU memorie? Screenshot_2021-08-26_20-33-03

Can you help me?

rzr900ipl avatar Aug 26 '21 19:08 rzr900ipl

@rzr900ipl Check this one #5706 I think your GPU is enough for running such a simple task. I ran it with my poor GTX950m (though I suffer a lot)

tandf avatar Aug 27 '21 15:08 tandf

@tandf But you used a cyber record, or with LGSVl in real time? if you used LGSVL in real time is LGSVL ran in the same computer as Apollo? Iam asking that because de LGSVL need a lot of GPU memorie, and the perception module need it as well.

rzr900ipl avatar Aug 28 '21 10:08 rzr900ipl

I did both. I have two laptops both with lousy GPU, and I ran LGSVL and Apollo on each one. It's also viable to record the LGSVL output first and play it later with Apollo running. Or craft and send cyber messages while running Apollo. You can try and choose one that suits you the best.

tandf avatar Aug 28 '21 11:08 tandf

@tandf When you say "craft and send cyber messages while running Apollo", is to use cyber_recorder record -a?

rzr900ipl avatar Aug 28 '21 12:08 rzr900ipl

When you say "craft and send cyber messages while running Apollo", is to use cyber_recorder record -a?

I mean using a python script to craft messages based on the lane images.

Sorry, I'm not familiar with the cudnn error...

tandf avatar Aug 29 '21 05:08 tandf

Quando você diz "criar e enviar mensagens cibernéticas enquanto executa o Apollo", é usar cyber_recorder record -a?

Quero dizer, usar um script Python para criar mensagens com base nas imagens da pista.

@tandf Sorry for the question, but who I do it? I had think I only need to run lgsvl, run the bridge and run this doc

rzr900ipl avatar Aug 29 '21 14:08 rzr900ipl

@daohu527

rzr900ipl avatar Aug 29 '21 15:08 rzr900ipl

@rzr900ipl I mean you can either generate data from lgsvl, or craft your own data. You won't need a python script if you're using lgsvl.

tandf avatar Aug 30 '21 14:08 tandf

@tandf Right, but how do i record the cyber messages? I do it with cyber_recorded, is it right? You can't remember anything that is needed to do for it work, because I see that perception module of Apollo 5.0 only works with a GTX-1080 GPU, but you did it with a GTX950m.

rzr900ipl avatar Aug 30 '21 14:08 rzr900ipl

Yes you can use cyber_recorder. I do know that it's suggested to run Apollo 5.0 with at least 1080, but I just don't have one, so I did it with my 950m. Yes it's painful, but it worked.

tandf avatar Aug 30 '21 14:08 tandf

@tandf But how did you do that, and I can't with a 1650ti? You know what dependencies I need for it works?

rzr900ipl avatar Aug 30 '21 14:08 rzr900ipl