YuqiHuai / SORA-SVL

Local SVL Cloud
132 stars 33 forks source link

Adding Custom Map and ROS2 Autopilot #39

Closed abustaoglu closed 1 year ago

abustaoglu commented 1 year ago

Hi, i was working with the custom private map and ros2 autopilot on lgsvl online mode, not autoware or apollo. I have two question about this.

  1. My map folder look like this and i don't now how can import.

ss

  1. How can i create connection between localhost and ros? Do i need to write api or modifying lgsvl_bridge[link] will be enough?
YuqiHuai commented 1 year ago

Hi @abustaoglu thanks for posting the issue. I am most familiar with running SVL with Baidu Apollo, therefore I might not be able to give you the most accurate information. I am also currently away therefore I might not be able to respond as soon as I could.

  1. To add a map, you need to modify mongo/setup/maps.json: add an entry that includes cid, id, and data.assetGuid. The server uses cid/id (they are the same) to identify the asset mapped to this file, and sends the asset to SVL client.

  2. Creation between localhost and ROS should be handled by the bridge you mentioned, and I believe it is a plugin that I have downloaded and saved. As long as you have a vehicle configured to use that bridge it should all just work out.

abustaoglu commented 1 year ago

Hi @YuqiHuai. Thanks for advices.. With manually adding entrys to [maps.json, hd_maps.json, global.json], i have successfully added my map to local cloud but i dont see my map here [(http://localhost/maps)]. I can call the map using python api, but I cannot view it on the server. what would be the reason?

YuqiHuai commented 1 year ago

@abustaoglu

the maps webpage looks at the global collection to display all maps, and the download endpoint looks at the maps collection to provide the download url. To make it show up on the maps webpage, you also need to insert the object to global collection.

abustaoglu commented 1 year ago

you mean geojson.json file?

YuqiHuai commented 1 year ago

This one https://github.com/YuqiHuai/SORA-SVL/blob/6192e6dc32fca2e162310ba4e5e7e259f23c5a3b/mongo/setup/global.json

you should be able to see this collection named global in the database.

abustaoglu commented 1 year ago

i have modified global.json file but webpage appearance doesn't change. maybe i need to find a way to use map_generator.py script.

YuqiHuai commented 1 year ago

After modification you may need to rebuild the mongo container.

abustaoglu commented 1 year ago

Hello @YuqiHuai, i have connected local host and ros2 lgsvl bridge. here is the steps:

  1. Build ros2 bridge according to this link.
  2. Run this after changing bridge and sim port(3000/8181).
  3. Run lgsvl_bridge from terminal.
YuqiHuai commented 1 year ago

@abustaoglu Sounds good! and by the looks, SVL hasn't sunsetted their documentation, just the cloud https://www.svlsimulator.com/docs/

rensixu commented 1 year ago

Hello @YuqiHuai Where is the simulator's exe. I could not found that in the project?

YuqiHuai commented 1 year ago

Hello @YuqiHuai Where is the simulator's exe. I could not found that in the project?

@rensixu simulator.exe is not part of this project. It is just where you installed the SVL simulator, did you mean to post this comment in #41?

rensixu commented 1 year ago

@rensixu simulator.exe is not part of this project. It is just where you installed the SVL simulator, did you mean to post this comment in #41? Hi @YuqiHuai Thankyou very much for your reply. I reference that ticket, and try to change the config.yaml file in my SVL installed folder. It try to link "http://localhost/", but then have error like this. Screenshot 2023-03-05 21:37:51 This is my output when I run "docker compose up --build -d", it seems ok ,right? Should this cmd be executed every time when use the lgsvl simlutor? Screenshot from 2023-03-05 21-39-47

YuqiHuai commented 1 year ago

@rensixu

  1. I haven't seen any error like this. Please show a screenshot of the root directory of the simulator and a screenshot of the content of config.yml
  2. The output of docker compose looks good. You just have to start the server then it serves as the original WISE cloud, so you do not need to rerun this everytime you run the simulator. You only run the dock compose command if the containers have exited.
rensixu commented 1 year ago

a b @YuqiHuai pls reference

YuqiHuai commented 1 year ago

@rensixu These all look correct. Are you able to see all the contents from http://localhost?

rensixu commented 1 year ago

image @YuqiHuai yes, like this, but only the contents

YuqiHuai commented 1 year ago

@rensixu this indeed looks like a new problem. Can you open a new issue so I can properly track and try to resolve the issue?

abustaoglu commented 1 year ago

see #43

ABCRepository commented 10 months ago

@abustaoglu, Hello, Can you re-share the first connection (the connection is invalid, i.e., https://race.ossdc.org/docs/system-under-test/ros2-bridge/)? I also want to use ros to connect to LGSVL to get states from LG and control corresponding vehicle in LG.

Hello @YuqiHuai, i have connected local host and ros2 lgsvl bridge. here is the steps:

  1. Build ros2 bridge according to this link.
  2. Run this after changing bridge and sim port(3000/8181).
  3. Run lgsvl_bridge from terminal.
abustaoglu commented 10 months ago

Hello @ABCRepository, you can the related link here