lgsvl / simulator

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

Issue in loading map for autoware.ai with lgsvl #1002

Open User-712 opened 4 years ago

User-712 commented 4 years ago

Hi,

I am running latest LGSVL simulator and autoware 1.12.0, facing issue in loading map. I have followed the instructions given here https://www.lgsvlsimulator.com/docs/autoware-instructions/ https://github.com/Autoware-AI/autoware.ai/wiki/Generic-x86-Docker#run-an-autoware-docker-container

  1. ./run.sh -t 1.12.0 in docker/generic directory
  2. sudo apt update && sudo apt install ros-$ROS_DISTRO-image-transport-plugins -y
  3. roslaunch runtime_manager runtime_manager.launch in Autoware directory in container. 4
  4. As soon as I upload my_map.launch file in quick start, dialog box provides an error as in the image below. 1 And not getting any map in Rviz
  5. If I select fixed frame as velodyne, am getting below output in Rviz 3 2

Creating a Simulation choosing BorregasAve map and Jaguar2015XE (Autoware). Running the created Simulation.

I also tried with 93d92d6becc8dbced0a588aadcf0cee18e2c2429 commit, for this I was able to get map but not able to get pointcloud, vehicle and other data on the map.

System specification: OS:Linux 16.04 (memory: 31.3 GiB, processor: core i7, Graphics: GeForce GTX) Simulator: LGSVL 2020.01 (released version)

EricBoiseLGSVL commented 4 years ago

@User-712 Autoware 1.12 is not supported. Please use 1.14. Right @hadiTab ?

hadiTab commented 4 years ago

1.12 is partially supported, but we encourage using 1.14 instead. You should be able to load the maps in 1.12 though. @cyberphysicalrobotics do you know what this is about? Thanks.

jiameixie commented 4 years ago

@hadiTab I used 1.14 and followed the steps in https://www.lgsvlsimulator.com/docs/autoware-instructions/.When I load map and detect, below errors occurred. Need I set the default.rviz?

[ERROR] [1601360598.734482481]: [createSignalMarkerArray] failed createPoleMarker: 4,4,6.75,0.4 RLException: while processing

/home/autoware/Autoware/install/vision_ssd_detect/share/vision_ssd_detect/launch/vision_ssd_detect.launch: Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'/home/autoware/Autoware/install/vision_ssd_detect/share/vision_ssd_detect/launch/vision_ssd_detect.launch' The traceback for the exception was written to the log file

hadiTab commented 4 years ago

@jiameixie both of those errors can be safely ignored.

Have you gone through the rest of the steps and had any issues?

jiameixie commented 4 years ago

@hadiTab The screenshot of my rivz. It doesn't have a car on it, which is different from the demo. image image

hadiTab commented 4 years ago

@jiameixie can you show the list of topics being published? You can get that with rostopic list. Also, in rviz, there is a warning on TF and an error on Vehicle model. What do those say?

jiameixie commented 4 years ago

@hadiTab It's unstable to run lgsvl with autoware. It was a different situation every time I run it. So I can't get the list of topics now which lead the above errors.
I got help from someone. He told me that some parameters in launch files are wrong and need manual setting. The autoware version he used is 1.13.0. My autoware version is 1.14.0. Following the steps he provided , the vehicle in lgsvl can move along with the vehicle in autoware. But sometime it went wrong. The vehicle just moved forward straight without stop or twist. Sometimes it can run normally. It made me confused. what we did is to specify its pose location by command lines.

Do you think the above steps necessary to run lgsvl with autoware.ai? @hadiTab

hadiTab commented 4 years ago

@jiameixie the above steps are similar to what is in the default launch files. Except for adding the clock sensor, which helps avoid delays when the performance is not good. Manually publishing the pose, should be the same as just marking the initial pose in rviz as well. The only reason I can think of that this is working for you but the launch files aren't would be that one of those nodes is crashing when the launch files is used, but doesn't crash when enabled manually. I've seen that happen before with some nodes in Autoware.