Browse Source

Fixed typos.

pull/14/head
Alan G. Sanchez 2 years ago
parent
commit
26ce2f70f1
6 changed files with 13 additions and 13 deletions
  1. +3
    -3
      example_1.md
  2. +1
    -1
      example_2.md
  3. +1
    -1
      example_3.md
  4. +4
    -4
      example_4.md
  5. +3
    -3
      example_5.md
  6. +1
    -1
      example_6.md

+ 3
- 3
example_1.md View File

@ -38,7 +38,7 @@ class Move:
def __init__(self):
"""
Function that initializes the subscriber.
:param self: The self reference
:param self: The self reference.
"""
self.pub = rospy.Publisher('/stretch/cmd_vel', Twist, queue_size=1) #/stretch_diff_drive_controller/cmd_vel for gazebo
@ -47,7 +47,7 @@ class Move:
Function that publishes Twist messages
:param self: The self reference.
:publishes command: Twist message
:publishes command: Twist message.
"""
command = Twist()
command.linear.x = 0.1
@ -152,7 +152,7 @@ After saving the edited node, bringup [Stretch in the empty world simulation](ga
```bash
cd catkin_ws/src/stretch_ros_tutorials/src/
python3 move.py
python move.py
```
To stop the node from sending twist messages, type **Ctrl** + **c**.

+ 1
- 1
example_2.md View File

@ -82,7 +82,7 @@ from sensor_msgs.msg import LaserScan
class ScanFilter:
"""
A class that implements a LaserScan filter that removes all of the points
that are not infront of the robot
that are not infront of the robot.
"""
def __init__(self):
self.width = 1.0

+ 1
- 1
example_3.md View File

@ -47,7 +47,7 @@ class Avoider:
def __init__(self):
"""
Function that initializes the subscriber, publisher, and marker features.
:param self: The self reference
:param self: The self reference.
"""
self.pub = rospy.Publisher('/stretch/cmd_vel', Twist, queue_size=1) #/stretch_diff_drive_controller/cmd_vel for gazebo
self.sub = rospy.Subscriber('/scan', LaserScan, self.set_speed)

+ 4
- 4
example_4.md View File

@ -34,7 +34,7 @@ class Balloon():
def __init__(self):
"""
Function that initializes the markers features.
:param self: The self reference
:param self: The self reference.
"""
self.publisher = rospy.Publisher('balloon', Marker, queue_size=10)
self.marker = Marker()
@ -57,10 +57,10 @@ class Balloon():
def publish_marker(self):
"""
Function that publishes the sphere marker
:param self: The self reference
Function that publishes the sphere marker.
:param self: The self reference.
:publishes self.marker: Marker message
:publishes self.marker: Marker message.
"""
self.publisher.publish(self.marker)

+ 3
- 3
example_5.md View File

@ -44,14 +44,14 @@ class JointStatePublisher():
def __init__(self):
"""
Function that initializes the subsriber.
:param self: The self reference
:param self: The self reference.
"""
self.sub = rospy.Subscriber('joint_states', JointState, self.callback)
def callback(self, msg):
"""
Callback function to deal with the incoming JointState messages.
:param self: The self reference
:param self: The self reference.
:param msg: The JointState message.
"""
self.joint_states = msg
@ -60,7 +60,7 @@ class JointStatePublisher():
"""
print_states function to deal with the incoming JointState messages.
:param self: The self reference.
:param joints: A list of joint names
:param joints: A list of joint names.
"""
joint_positions = []
for joint in joints:

+ 1
- 1
example_6.md View File

@ -66,7 +66,7 @@ class JointActuatorEffortSensor(hm.HelloNode):
def issue_command(self):
"""
Function that makes an action call and sends joint trajectory goals
to a single joint
to a single joint.
:param self: The self reference.
"""
trajectory_goal = FollowJointTrajectoryGoal()

Loading…
Cancel
Save