forked from bdaiinstitute/spot_ros2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[N/A] Add a mock launch argument (bdaiinstitute#199)
This PR uses node / launch arguments to specify whether the driver should operate in "mock" mode, instead of using the sentinel name `Mock_spot`. With an explicit parameter, we can have multiple mocks, with different names, and also affect whether there is an arm. For example, with this modification you can do ``` cd spot_driver colcon build --symlink # (`symlink` [does not apply to launch files](colcon/colcon-core#407)) source install/setup.bash ros2 launch spot_driver spot_driver.launch.py spot_name:=AnyNameHere mock_enable:=True mock_has_arm:=True ``` and then, for example (`spot_utilities`, specifically in `bdai` repo) ``` # source so that `spot_driver` can be found cd spot_utilities # /workspaces/bdai/ws/src/spot_utilities colcon build source install/setup.bash ros2 run spot_utilities spot_teleop.py AnyNameHere ```
- Loading branch information
1 parent
3513dbf
commit 8498270
Showing
3 changed files
with
64 additions
and
23 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