Skip to content

Commit

Permalink
Update launch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knmcguire authored Jul 23, 2024
1 parent ae8fb49 commit 3cecb76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crazyflie/launch/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def generate_launch_description():
DeclareLaunchArgument('debug', default_value='False'),
DeclareLaunchArgument('rviz', default_value='False'),
DeclareLaunchArgument('gui', default_value='True'),
DeclareLaunchArgument('teleop', default_value='False'),
DeclareLaunchArgument('mocap', default_value='True'),
DeclareLaunchArgument('teleop_yaml_file', default_value=''),
OpaqueFunction(function=parse_yaml),
Expand All @@ -135,6 +136,7 @@ def generate_launch_description():
parameters= [PythonExpression(["'" + telop_yaml_path +"' if '", LaunchConfiguration('teleop_yaml_file'), "' == '' else '", LaunchConfiguration('teleop_yaml_file'), "'"])],
),
Node(
condition=LaunchConfigurationEquals('teleop', 'True'),
package='joy',
executable='joy_node',
name='joy_node' # by default id=0
Expand Down

0 comments on commit 3cecb76

Please sign in to comment.