gmappping problem ( NO MAP RECEİVED )
Hello friends... I created required gmapping tree. But RVİZ dont display a map. I use RPLidar. I run this gmapping launch file . and ı get this error on console.
[ERROR] [1434099978.892736102]: Scan message must contain angles from -x to x, i.e. angle_min = -angle_max
And I run $roswtf , I get this error:
**WARNING The following node subscriptions are unconnected:
- /rviz_1434092335500490690:
- /tf_static
- /map_updates
- /slam_gmapping:
- /tf_static**
On my rviz: fixed frame : /map
this is my tree : http://i57.tinypic.com/50001f.png
this is my rviz display: http://i61.tinypic.com/2nvzf5w.png
this is my gmapping launch file:
<launch> <node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen">
<rosparam>
odom_frame: odom
map_frame: map
base_frame: base_link
map_update_interval: 0.5
maxUrange: 30.0
maxRange: 60.0
sigma: 0.05
kernelSize: 1
lstep: 0.05
astep: 0.05
iterations: 5
lsigma: 0.075
ogain: 3.0
lskip: 0
linearUpdate: 0.5
angularUpdate: 0.436
temporalUpdate: -1.0
resampleThreshold: 0.5
particles: 80
xmin: -1.0
ymin: -1.0
xmax: 1.0
ymax: 1.0
delta: 0.025
llsamplerange: 0.01
llsamplestep: 0.01
lasamplerange: 0.005
lasamplestep: 0.005
</rosparam>
</node> </launch>
$ rostopic echo /odom result :
**child_frame_id: base_link pose:
pose:
position:
x: 2.35970327619
y: 0.419065232983
z: 0.0
orientation:
x: 0.0
y: -0.0
z: -0.846968362724
w: -0.53164329446**
please ı need a hepl please help me friens.
Are you sure the output of rplidar is correct?
oh I am also not sure that . how can I correct that I dont know ? you think my static tf 's is correct ?
I am not sure, just feel not right with your error message. Since the scan message is incorrect, map may not be able to update. As a result, /map_updates cannot be published. I haven't met this problem before, so I'm just providing some opinion for you to debug.
there is a solved problem this link. ı cloned new node for rplidar but no result. ı think problem is on rplidar. http://geduino.blogspot.com.tr/2015/0...
Hi, I used rpliar+gmapping for mapping. I made rplidar as one part of the virtual robot and bring up the virtual robot in Gazebo for sending TF information out. Then call slam_gmapping node, it seem there is no error to pass the code. However, the generated map is too bad. Something wrong?
you need to change gmapping parameters. default parameters not good for every lidar. example : http://geduino.blogspot.com.tr/2015/0... and if you will work with real rplidar you must do that : https://github.com/robopeak/rplidar_r...
I use the parameters from http://geduino.blogspot.com.tr/2015/0... . But have no idea about how to set the rplidar reference frame. Can you tell me how? The map is received but it seems there is no space occupied. Something must be wrong. Thanks!
The RPLidar node with fixes it is available on https://github.com/afrancescon/rplida... (with rplidar referance frame) you dont need to change referance frame. And gmapping need to odometry for a good mapping. But hector_mapping not like this. But if you work on gazebo this not a problem.