From c6ba56d7e9bf09f74864e6a17b871645c8ac6261 Mon Sep 17 00:00:00 2001 From: "Alan G. Sanchez" Date: Mon, 29 Aug 2022 14:54:42 -0700 Subject: [PATCH] Fixed indentation issue in example 2 markdown file. --- example_2.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/example_2.md b/example_2.md index c762f96..7e93404 100644 --- a/example_2.md +++ b/example_2.md @@ -80,19 +80,19 @@ from math import sin from sensor_msgs.msg import LaserScan class ScanFilter: - """ - A class that implements a LaserScan filter that removes all of the points - that are not in front of the robot. - """ + """ + A class that implements a LaserScan filter that removes all of the points + that are not in front of the robot. + """ def __init__(self): self.width = 1.0 self.extent = self.width / 2.0 self.sub = rospy.Subscriber('/scan', LaserScan, self.callback) self.pub = rospy.Publisher('filtered_scan', LaserScan, queue_size=10) - rospy.loginfo("Publishing the filtered_scan topic. Use RViz to visualize.") + rospy.loginfo("Publishing the filtered_scan topic. Use RViz to visualize.") def callback(self,msg): - """ + """ Callback function to deal with incoming LaserScan messages. :param self: The self reference. :param msg: The subscribed LaserScan message.