ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

leorobot's profile - activity

2020-12-22 00:25:49 -0500 received badge  Famous Question (source)
2020-10-30 06:25:25 -0500 received badge  Notable Question (source)
2020-10-30 05:55:55 -0500 edited question [SOLVED] gmapping fails to build map

gmapping fails to build map Hello everyone, I've been struggling on this one for a week now. I am using the husarion ro

2020-10-30 05:55:37 -0500 marked best answer [SOLVED] gmapping fails to build map

Hello everyone, I've been struggling on this one for a week now. I am using the husarion rosbot 2.0 on ros melodic and I'm trying to build a map while driving the robot around. I don't record a bag because I need to look at the map building itself in real time in rviz. In the launch file I've set the following parameters, base_frame, map_frame, odom_frame, maxRange, maxUrange, minUrange, map_update_interval, xmax, xmin, ymax, ymin and delta.

When I launch the system the first mapping is correct, but as soon as i start driving the robot around, it looks like the the scans are not on the same world frame. I started to look the frames of tf, map frame is static, the base frame is moving like the robot, and odom frame is moving weirdly. I can't understand why this odom frame is moving and i feel like this is where the problem come from but i can't find what is really the problem and how i can fix it. I drive the robot very slowly so there's no drifting.

I would like to add captures of my code and of rviz but I'm new here so I've less than 5 points and I can't paste some code here, don't know why.

I have no errors while running but a warning "Transform from imu_link to base_link was unavailable for the time requested. Using latest instead." but I don't think it is the problem, is it?

Here is the TF tree (if the tabs aren't displayed : odom is child of map, base_link is child of odom, imu_link and laser are chlidren of base_link) :

└── map
└── odom [/slam_gmapping]
└── base_link [/rosbot_ekf]
├── imu_link [/imu_publisher]
└── laser [/link1_broadcaster]

The /pose topic (suscribed by msg_conversion) and the /odom topic are coherent to the robot moves but the tf transformation beetween mad to odom are not.

Please tell me if I can add anything to the question that would help you to help me, I'm quite new to ROS. If anyone could help me here it would be very appreciated I'm starting to loose my mind over this thing.

2020-10-30 05:55:37 -0500 received badge  Scholar (source)
2020-10-30 05:55:36 -0500 commented answer [SOLVED] gmapping fails to build map

You were right but it was about changing the orientation of the sensor but by modifying the original node. Adding a new

2020-10-30 05:47:42 -0500 answered a question [SOLVED] gmapping fails to build map

I found the solution, as Miura said it was about changing the lidar scanner orientation but by modifying it in the initi

2020-10-27 08:04:39 -0500 commented question [SOLVED] gmapping fails to build map

There is a robot_localization package in /opt/ros/melodic/share/ that is launched by rosbot_ekf but I can't find the fil

2020-10-27 07:55:45 -0500 commented question [SOLVED] gmapping fails to build map

There is a robot_localization package in /opt/ros/melodic/share/ that is launched by rosbot_ekf but I can't find the fil

2020-10-26 04:48:53 -0500 edited question [SOLVED] gmapping fails to build map

gmapping fails to build map Hello everyone, I've been struggling on this one for a week now. I am using the husarion ro

2020-10-26 04:44:44 -0500 received badge  Popular Question (source)
2020-10-26 04:38:27 -0500 commented question [SOLVED] gmapping fails to build map

It looks like a TF problem because thanks to ros-blessed I can see that the transformation between map and odom moves ov

2020-10-26 04:26:36 -0500 commented answer [SOLVED] gmapping fails to build map

I tried to do so with a static_transform_publisher in the launch file. It does not resolves the problem.

2020-10-26 03:50:14 -0500 edited question [SOLVED] gmapping fails to build map

gmapping fails to build map Hello everyone, I've been struggling on this one for a week now. I am using the husarion ro

2020-10-26 03:50:14 -0500 received badge  Editor (source)
2020-10-26 03:47:37 -0500 edited question [SOLVED] gmapping fails to build map

gmapping fails to build map Hello everyone, I've been struggling on this one for a week now. I am using the husarion ro

2020-10-23 08:21:55 -0500 asked a question [SOLVED] gmapping fails to build map

gmapping fails to build map Hello everyone, I've been struggling on this one for a week now. I am using the husarion ro

2020-10-23 06:37:35 -0500 received badge  Supporter (source)