project-aslan / Aslan

Open source self-driving software for low speed environments
Apache License 2.0
273 stars 69 forks source link

Lidar is not launching in the Gazebo simulation[BUG] #24

Closed thiagodeborba closed 4 years ago

thiagodeborba commented 4 years ago

*Describe the bug I am trying to go through the tutorial. However, the Lidar is not launching with the simulation. I can neither see the points in RViz nor record a rosbag to generate the trajectory. How can I solve it?

EfimiaPanagiotaki-StreetDrone commented 4 years ago

The lidar driver is being launched automatically when clicking on the SD Twizy model button. The driver used is the integrated VLP-16 driver that can be found here. To only visualize the lidar points, on rviz go to Displays -> Global Options -> Fixed_Frame and change it to base_link or velodyne.

The default rviz file is pointing by default to map frame which on the step that you are at is not there.

thiagodeborba commented 4 years ago

Now I can see the vehicle in red, but no lines regarding the LIDAR reflections.

EfimiaPanagiotaki-StreetDrone commented 4 years ago

Please make sure you have completed the following steps when installing Project Aslan, as described here:

cd Aslan/
git submodule update --init --recursive
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO

If this didn't fix your issue, make sure that the velodyne_gazebo_plugin is installed. To install it, do sudo apt-get install ros-melodic-velodyne-gazebo-plugins for melodic or sudo apt-get install ros-kinetic-velodyne-gazebo-plugins for kinetic.

thiagodeborba commented 4 years ago

I still can't see the LIDAR reflections and now there are 2 errors, 1 regarding Point Map and the other is regarding Points Raw.

thiagodeborba commented 4 years ago

I used both commands again, catkin init and catkin_make, now I can see the reflections. Thank you so much!

EfimiaPanagiotaki-StreetDrone commented 4 years ago

Awesome :) :+1: