move_base_node not subscribed to laserscan [closed]
Hello,
In my costmap_common_params.yaml i have the following sources:
observation_sources: scan bump
scan: {data_type: LaserScan, topic: base_scan, marking: true, clearing: true, min_obstacle_height: 0.0, max_obstacle_height: 1.0}
bump: {data_type: PointCloud2, topic: pointcloud, marking: true, clearing: false, min_obstacle_height: 0.0, max_obstacle_height: 0.1}
But for some reason when using rostopic echo /base_scan it only shows the subscribers:
rostopic info /base_scan
Type: sensor_msgs/LaserScan
Publishers:
* /depthimage_to_laserscan (http://gijs-Latitude-E7470:41504/)
Subscribers:
* /amcl (http://gijs-Latitude-E7470:43920/)
* /rviz (http://gijs-Latitude-E7470:46177/)
* /rtabmap/rtabmapviz (http://gijs-Latitude-E7470:37322/)
* /rtabmap/rtabmap (http://gijs-Latitude-E7470:46750/)
While it should also say /move_base_node for the local costmap. Which can be seen at rostopic echo /pointcloud
rostopic info /base_scan
Type: sensor_msgs/LaserScan
Publishers:
* /depthimage_to_laserscan (http://gijs-Latitude-E7470:41504/)
Subscribers:
* /amcl (http://gijs-Latitude-E7470:43920/)
* /rviz (http://gijs-Latitude-E7470:46177/)
* /rtabmap/rtabmapviz (http://gijs-Latitude-E7470:37322/)
* /rtabmap/rtabmap (http://gijs-Latitude-E7470:46750/)
What is wrong with my setup?
EDIT: Another weird thing I found out is that even when removing this line
bump: {data_type: PointCloud2, topic: pointcloud, marking: true, clearing: false, min_obstacle_height: 0.0, max_obstacle_height: 0.1}
It will still work with the bumper sensor but not with the laserscan for some reason.
Could you provide the complete output of
rostopic list
? Also, maybe try enclosing the observation sources value in quotes:"scan bumb"
what was the solution to this question? It has been closed. I'm having the same problem and this could benefit me. Please help