Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Aug 30, 2024
1 parent e3c08b3 commit 236909b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pyrobosim/pyrobosim/core/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ def open_location(self, location):
"""
Opens a storage location or hallway between two rooms..
:param location: Location or Hallway object to open.
:type location: :class:`pyrobosim.core.locations.Location` or :class:`pyrobosim.core.hallway.Hallway`
:param location: Location or Hallway object to open, or its name.
:type location: :class:`pyrobosim.core.locations.Location`, :class:`pyrobosim.core.hallway.Hallway`, or str
:return: An object describing the execution result.
:rtype: :class:`pyrobosim.planning.actions.ExecutionResult`
"""
Expand Down Expand Up @@ -520,8 +520,8 @@ def close_location(self, location, ignore_robots=[]):
"""
Close a storage location or hallway.
:param location: Location or Hallway object to close.
:type location: :class:`pyrobosim.core.locations.Location` or :class:`pyrobosim.core.hallway.Hallway`
:param location: Location or Hallway object to close, or its name.
:type location: :class:`pyrobosim.core.locations.Location`, :class:`pyrobosim.core.hallway.Hallway`, or str
:param ignore_robots: List of robots to ignore, for example the robot closing the hallway.
:type ignore_robots: list[:class:`pyrobosim.core.robot.Robot`]
:return: An object describing the execution result.
Expand Down Expand Up @@ -584,8 +584,8 @@ def lock_location(self, location):
"""
Locks a storage location or hallway.
:param location: Location object to lock.
:type location: :class:`pyrobosim.core.locations.Location` or :class:`pyrobosim.core.hallway.Hallway`
:param location: Location or Hallway object to lock, or its name.
:type location: :class:`pyrobosim.core.locations.Location`, :class:`pyrobosim.core.hallway.Hallway`, or str
:return: An object describing the execution result.
:rtype: :class:`pyrobosim.planning.actions.ExecutionResult`
"""
Expand Down Expand Up @@ -622,8 +622,8 @@ def unlock_location(self, location):
"""
Unlocks a storage location or hallway.
:param location: Location object to unlock.
:type location: :class:`pyrobosim.core.locations.Location` or :class:`pyrobosim.core.hallway.Hallway`
:param location: Location or Hallway object to unlock, or its name.
:type location: :class:`pyrobosim.core.locations.Location`, :class:`pyrobosim.core.hallway.Hallway`, or str
:return: An object describing the execution result.
:rtype: :class:`pyrobosim.planning.actions.ExecutionResult`
"""
Expand Down

0 comments on commit 236909b

Please sign in to comment.