forked from Liquid-ai/Plankton
-
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.
Fixing errors in keyboard teleop. Trying python keyboard launch
- Loading branch information
1 parent
6a64390
commit ba5c396
Showing
3 changed files
with
36 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
|
||
from ament_index_python.packages import get_package_share_directory | ||
from launch import LaunchDescription | ||
from launch.actions import DeclareLaunchArgument | ||
from launch.substitutions import LaunchConfiguration | ||
from launch_ros.actions import Node | ||
|
||
def generate_launch_description(): | ||
|
||
uuv_name_action = DeclareLaunchArgument('uuv_name', description="Name for the UUV to use for namespace") | ||
uuv_name = LaunchConfiguration('uuv_name') | ||
|
||
return LaunchDescription([uuv_name_action, | ||
Node( | ||
package='uuv_teleop', | ||
node_executable='vehicle_keyboard_teleop.py', | ||
node_name='keyboard_teleop', | ||
node_namespace=[uuv_name], | ||
output='screen', | ||
emulate_tty=True, | ||
remappings=[('output', ['/', uuv_name, '/cmd_vel'])] | ||
) | ||
]) |
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