-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
123 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class RobotOptions: | ||
""" | ||
A class for storing the robot's options. | ||
Attributes | ||
---------- | ||
start_hardware (bool): Whether to start the robot's hardware. | ||
launch_mock (bool): Whether to launch the robot's mock interfaces if start_hardware=True. | ||
name (str): The robot's name. | ||
namespace (str): The robot's namespace. | ||
launch_controllers (bool): Whether to launch the robot's controllers. | ||
""" | ||
|
||
def __init__(self, name='rae_api', namespace='', launch_controllers=True, start_hardware=True, launch_mock=False): | ||
self._start_hardware = start_hardware | ||
self._launch_mock = launch_mock | ||
self._name = name | ||
self._namespace = namespace | ||
self._launch_controllers = launch_controllers | ||
|
||
@property | ||
def start_hardware(self): | ||
return self._start_hardware | ||
|
||
@property | ||
def launch_mock(self): | ||
return self._launch_mock | ||
|
||
@property | ||
def name(self): | ||
return self._name | ||
|
||
@property | ||
def namespace(self): | ||
return self._namespace | ||
|
||
@property | ||
def launch_controllers(self): | ||
return self._launch_controllers |