-
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.
Merge pull request #59 from cwruRobotics/tether-namespace
tether namespace
- Loading branch information
Showing
20 changed files
with
73 additions
and
44 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
from launch.launch_description import LaunchDescription | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions import Node | ||
from launch_ros.actions import Node, PushRosNamespace | ||
from launch.actions import GroupAction | ||
|
||
|
||
def generate_launch_description() -> LaunchDescription: | ||
"""Asynchronously launches operator's gui node.""" | ||
gui_node: Node = Node( | ||
package='gui', | ||
executable='run_operator', | ||
namespace='gui', | ||
parameters=[ | ||
{'theme': LaunchConfiguration('theme', default='dark')}], | ||
parameters=[{'theme': LaunchConfiguration('theme', default='dark')}], | ||
remappings=[("/surface/gui/bottom_cam/image_raw", "/tether/bottom_cam/image_raw"), | ||
("/surface/gui/task_request", "/surface/task_request"), | ||
("/surface/gui/task_feedback", "/surface/task_feedback") | ||
], | ||
emulate_tty=True, | ||
output='screen' | ||
) | ||
|
||
return LaunchDescription([gui_node]) | ||
namespace_launch = GroupAction( | ||
actions=[ | ||
PushRosNamespace('gui'), | ||
gui_node | ||
] | ||
) | ||
|
||
return LaunchDescription([namespace_launch]) |
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 |
---|---|---|
@@ -1,20 +1,28 @@ | ||
from launch.actions import GroupAction | ||
from launch.launch_description import LaunchDescription | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions import Node | ||
from launch_ros.actions import Node, PushRosNamespace | ||
|
||
|
||
def generate_launch_description() -> LaunchDescription: | ||
"""Asynchronously launches pilot's gui node.""" | ||
gui_node: Node = Node( | ||
package='gui', | ||
executable='run_pilot', | ||
namespace='gui', | ||
parameters=[ | ||
{'theme': LaunchConfiguration('theme', default='dark')}], | ||
remappings=[("/surface/gui/mavros/cmd/arming", "/mavros/cmd/arming"), | ||
("/surface/gui/camera_switch", "/surface/camera_switch")], | ||
parameters=[{'theme': LaunchConfiguration('theme', default='dark')}], | ||
remappings=[("/surface/gui/mavros/cmd/arming", "/tether/mavros/cmd/arming"), | ||
("/surface/gui/camera_switch", "/surface/camera_switch"), | ||
("/surface/gui/bottom_cam/image_raw", "/tether/bottom_cam/image_raw"), | ||
("/surface/gui/front_cam/image_raw", "/tether/front_cam/image_raw")], | ||
emulate_tty=True, | ||
output='screen' | ||
) | ||
|
||
return LaunchDescription([gui_node]) | ||
namespace_launch = GroupAction( | ||
actions=[ | ||
PushRosNamespace('gui'), | ||
gui_node | ||
] | ||
) | ||
|
||
return LaunchDescription([namespace_launch]) |
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