Browse Source

Updated file.

pull/1/head
hello-sanchez 3 years ago
parent
commit
e0c957d3e2
2 changed files with 0 additions and 28 deletions
  1. +0
    -1
      getting_started.md
  2. +0
    -27
      src/scan.py

+ 0
- 1
getting_started.md View File

@ -4,7 +4,6 @@
Hello Robot utilizes Ubuntu, an open source Linux operating system, for the Stretch RE1 platform. If you are unfamiliar with the operating system, we encourage you to review a [tutorial](https://ubuntu.com/tutorials/command-line-for-beginners#1-overview) provided by Ubuntu. Additionally, the Linux command line, BASH, is used to execute commands and is needed to run ROS on the Stretch robot. Here is a [tutorial](https://ryanstutorials.net/linuxtutorial/) on getting started with BASH.
## Installing Noetic on Stretch
Instructions on installing Noetic can be found in our open source [installation guide](https://github.com/hello-robot/stretch_ros/blob/dev/noetic/install_noetic.md).

+ 0
- 27
src/scan.py View File

@ -1,27 +0,0 @@
#!/usr/bin/env python
# Every python controller needs these lines
import rospy
# We're going to subscribe to a LaserScan message.
from sensor_msgs.msg import LaserScan
class Scan:
def __init__(self):
# Set up a subscriber. We're going to subscribe to the topic "counter",
# looking for Int64 messages. When a message comes in, ROS is going to pass
# it to the function "callback" automatically.
self.sub = rospy.Subscriber('/scan', LaserScan, self.callback)
def callback(self,msg):
print('Minimum scan value = ' + str(len(msg.ranges)))
rospy.sleep(1)
if __name__ == '__main__':
# Initialize the node, and call it "move".
rospy.init_node('scan')
# Setup Move class to base_motion
Scan()
rospy.spin()

Loading…
Cancel
Save