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

Revision history [back]

A simple python code which subscribes to the laser topic and reduces data value by 1 and publishes to a new topic solved my problem. I have 960 readings so seems like total number does not make a difference as OP mentioned 360 readings causing the same error.

def scan_cb(data):
data.ranges = data.ranges[1:]
pub_scan.publish(data)