lgsvl / simulator

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

Random Traffic and shadow problem #1873

Open DestinyFrank opened 3 years ago

DestinyFrank commented 3 years ago

I created a map for SVL to run tests for our robot vehicle. We are trying to make a simulation with random traffic, but I cannot see the traffic on the map. Is there a step that I need to add when I build the map? I am also getting this circle shadow that isn't affected by the daylight changes. Does this need to be fixed when building the map, or do you have any suggestions of what could be causing this problem?

Capture_light_1 Capture_light_2

EricBoiseLGSVL commented 3 years ago
DestinyFrank commented 3 years ago

I was able to fix the shadow problem by deleting an extra directional light. I did annotate part of the road to create a test map. Also, when I run the simulation, I am getting this error.

SocketException: The requested address is not valid in its context.

Would this be part of the reason it is not able to work?

@EricBoiseLGSVL

Capture_postion_3

EricBoiseLGSVL commented 3 years ago
DestinyFrank commented 3 years ago

@EricBoiseLGSVL

Capture_postion_4 Capture_postion_5 Capture_postion_6

EricBoiseLGSVL commented 3 years ago

ok the annotation looks good, What is the address and port you are trying to use? seems it is not valid or being used by something else.

DestinyFrank commented 3 years ago

Here is the IP address of the cluster. I am running the simulator in the Unity Editor.

Capture_postion_7

EricBoiseLGSVL commented 3 years ago

No, in the config.yml file or the bridge settings in the webui

DestinyFrank commented 3 years ago

I am using Google Chrome on a Windows computer. I am not sure if that is the correct information or how to find that information.

EricBoiseLGSVL commented 3 years ago

Let me back up.

image

I am having trouble understanding what you are trying to do to help resolve this issue.

DestinyFrank commented 3 years ago

I noticed the issue when I was trying to use Random Traffic in the scene and I was not able to see generated cars. I ran the simulation in the Unity editor. Capture_postion_11

Capture_postion_8 Capture_postion_9 Capture_postion_10

EricBoiseLGSVL commented 3 years ago

api_hostname/cloud_url, please remove the "". It's yml.

DestinyFrank commented 3 years ago

I was not aware I was using the preview. Is there a way to fix that, or do I need to download the simulator again? The bridge is ROS2 with Autoware.Auto

EricBoiseLGSVL commented 3 years ago

You should be on the release2021.3 branch in simulator and copy the config.yml from the latest release binary and the npc bundles from the binary as well. I recommend running the binary and using existing assets to get an autoware auto simulation running first before trying to run custom assets. Look at the latest docs and once you have those running, then you can run from the editor. Since you need to switch to the release, I also recommend deleting the appdata folder for simulator so you don't mix versioning for assets. Look here on windows: image