lgsvl / simulator

A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles
Other
2.28k stars 781 forks source link

Module malfunction in modular testing with apollo #1170

Closed Yimags closed 3 years ago

Yimags commented 3 years ago

Hello all,

I ran the modular test with apollo and came with the problem that all module except for localization and chasis did not work at all (no perception, prediction, planning, control etc.). I followed the instructions and built apollo again and again step by step. But it still shows the same result. So I was wondering if you could help to localize the problem. Thanks in advance! shutdown shutdown2

Yimags commented 3 years ago

And here is the log recorded. log

luqiang21 commented 3 years ago

@Yimags It looks like you didn't add modular testing sensors. You need to add them in your sensor configuration.

Yimags commented 3 years ago

@Yimags It looks like you didn't add modular testing sensors. You need to add them in your sensor configuration.

Ahh exactly, I have changed it to my personal settings. Thx!

I am also wondering to what extent I could customize the sensor settings without causeing the malfunction of Apollo? Or how could I modify Apollo if I want to change sensors in lgsvl?

luqiang21 commented 3 years ago

@Yimags You just need to list which sensors are needed by those apollo modules, make sure those sensors are added in your sensor configuration. If an Apollo module is not working, you can first check the existence of the corresponding sensor. Then check apollo module's log file.

What do you mean?

Or how could I modify Apollo if I want to change sensors in lgsvl?

Yimags commented 3 years ago

@Yimags You just need to list which sensors are needed by those apollo modules, make sure those sensors are added in your sensor configuration. If an Apollo module is not working, you can first check the existence of the corresponding sensor. Then check apollo module's log file.

What do you mean?

Or how could I modify Apollo if I want to change sensors in lgsvl?

I meant whether newly added senors (apart from those of modular test) will influence influence the functionality or not. If it does, how could I modify apollo code to make new sensor work well with apollo?

luqiang21 commented 3 years ago

@Yimags It should depend on the topic name of the sensor you add. If they are different from what Apollo is using, then it won't influence.

Yimags commented 3 years ago

@Yimags It should depend on the topic name of the sensor you add. If they are different from what Apollo is using, then it won't influence.

Got it. Thank you for your help!

roshambo919 commented 3 years ago

@luqiang21

@Yimags It looks like you didn't add modular testing sensors. You need to add them in your sensor configuration.

Where does one add the modular testing sensors? I'm hitting the same issue using the python api but do not know what you mean by sensor configuration.

image

image

I'm trying to run modular testing and would not expect sensor data to be active.

roshambo919 commented 3 years ago

nvm. user error. for future users, configuration is located in the vehicle library on wise.svlsimulator.com