#! /usr/bin/env python

import rospy
from sensor_msgs.msg import LaserScan

def callback(msg):
    print("Ranges:")
    print(msg.ranges)
    print("Intensities:")
    print(msg.intensities)

rospy.init_node('topic_subscriber')
sub = rospy.Subscriber('scan', LaserScan, callback)
rospy.spin()


dd70a857be25f2d26f8a1a53c71a820e5b8438dd
<mask token>


def callback(msg):
    print('Ranges:')
    print(msg.ranges)
    print('Intensities:')
    print(msg.intensities)


<mask token>

<mask token>


def callback(msg):
    print('Ranges:')
    print(msg.ranges)
    print('Intensities:')
    print(msg.intensities)


rospy.init_node('topic_subscriber')
<mask token>
rospy.spin()

<mask token>


def callback(msg):
    print('Ranges:')
    print(msg.ranges)
    print('Intensities:')
    print(msg.intensities)


rospy.init_node('topic_subscriber')
sub = rospy.Subscriber('scan', LaserScan, callback)
rospy.spin()

import rospy
from sensor_msgs.msg import LaserScan


def callback(msg):
    print('Ranges:')
    print(msg.ranges)
    print('Intensities:')
    print(msg.intensities)


rospy.init_node('topic_subscriber')
sub = rospy.Subscriber('scan', LaserScan, callback)
rospy.spin()

#! /usr/bin/env python

import rospy
from sensor_msgs.msg import LaserScan

def callback(msg):
    print("Ranges:")
    print(msg.ranges)
    print("Intensities:")
    print(msg.intensities)

rospy.init_node('topic_subscriber')
sub = rospy.Subscriber('scan', LaserScan, callback)
rospy.spin()

