Robotics StackExchange | Archived questions

Rviz stops slam_gmapping + weird laser scan

Hello,

Every time that I launch Rviz, my map builder slam_gmapping is killed and I get the following error:

[slam_gmapping-1] process has died [pid 3157, exit code -7, cmd /opt/ros/melodic/lib/gmapping/slam_gmapping /scan:=/robot/laser_scan/scan __name:=slam_gmapping __log:=/home/benjamin/.ros/log/e41c5046-5af8-11eb-9a5c-0433c2273ac6/slam_gmapping-1.log].
log file: /home/benjamin/.ros/log/e41c5046-5af8-11eb-9a5c-0433c2273ac6/slam_gmapping-1*.log

Here is my rviz launch file, I'm also launching joinstatepublisher and robotstatepublisher within it:

<?xml version="1.0"?>
<launch>
  <param name="robot_description" command="$(find xacro)xacro.py '$(find eurobot_description)/urdf/robot.xacro'"/>
  <!-- send fake joint values -->
  <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
    <param name="use_gui" value="False"/>
  </node>
  <!-- Combine joint values -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher">
    <param name="robot_description" value="$(find eurobot_description)/urdf/robot.xacro'"/>
  </node
  <!-- Show in Rviz   -->
  <node name="rviz" pkg="rviz" type="rviz" required="true" args="-d $(find eurobot_description)/rviz/xacro_viewer.rviz"/>
</launch>

Slam_gmapping is properly set to receive laser scan so as my base frame. Could it be related to my problem with my lidar (see picture below) where at the back of the robot it makes a straight line.

image description

Thank you for your time and happy new year !

Asked by Benjamin C on 2021-01-20 02:51:09 UTC

Comments

  1. Please remove the Google Drive link and insert the picture here itself.
  2. Please attach the log file.

Asked by skpro19 on 2021-01-20 19:27:33 UTC

Done. Sorry I can't find the log file

Asked by Benjamin C on 2021-01-22 10:51:35 UTC

log file: /home/benjamin/.ros/log/e41c5046-5af8-11eb-9a5c-0433c2273ac6/slam_gmapping-1*.log

Asked by skpro19 on 2021-01-22 17:45:54 UTC

I've got slam_gmapping-1-stdout.logbut it's an empty file

Asked by Benjamin C on 2021-01-23 10:14:42 UTC

Answers