ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Navigation 2 unexpected keyword argument 'noninteractive

asked 2020-12-26 19:25:02 -0500

mjwhite gravatar image

I get the following error while following the Navigation2 tutorial and launching simulation

ros2 launch nav2_bringup tb3_simulation_launch.py

Traceback (most recent call last):
  File "/opt/ros/foxy/bin/ros2", line 33, in <module>
    sys.exit(load_entry_point('ros2cli==0.10.1', 'console_scripts', 'ros2')())
  File "/opt/ros/foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 67, in main
    rc = extension.main(parser=parser, args=args)
  File "/opt/ros/foxy/lib/python3.8/site-packages/ros2launch/command/launch.py", line 159, in main
    return launch_a_launch_file(
  File "/opt/ros/foxy/lib/python3.8/site-packages/ros2launch/api/api.py", line 151, in launch_a_launch_file
    launch_service = launch.LaunchService(
TypeError: __init__() got an unexpected keyword argument 'noninteractive,

I've installed all of the required packages, source the environment, and exported the variables.

Can anyone help with this?

edit retag flag offensive close merge delete

Comments

Additional info:

ros2 launch nav2_bringup tb3_simulation_launch.py --show-args

Arguments (pass arguments as '<name>:=<value>'):

    'namespace':
        Top-level namespace
        (default: '')

    'use_namespace':
        Whether to apply a namespace to the navigation stack
        (default: 'false')

    'slam':
        Whether run a SLAM
        (default: 'False')

    'map':
        Full path to map file to load
        (default: '/opt/ros/foxy/share/nav2_bringup/maps/turtlebot3_world.yaml')

    'use_sim_time':
        Use simulation (Gazebo) clock if true
        (default: 'true')

    'params_file':
        Full path to the ROS2 parameters file to use for all launched nodes
        (default: '/opt/ros/foxy/share/nav2_bringup/params/nav2_params.yaml')

    'default_bt_xml_filename':
    Full path to the behavior tree xml file to use
    (default: '/opt/ros/foxy/share/nav2_bt_navigator/behavior_trees/navigate_w_replanning_and_recovery.xml')

'autostart':
    Automatically startup the nav2 stack
    (default: 'true')

'rviz_config_file':
    Full path to the RVIZ config file to use
    (default: '/opt/ros/foxy/share/nav2_bringup/rviz/nav2_default_view.rviz')

'use_simulator':
    Whether to start the simulator
    (default: 'True')

'use_robot_state_pub':
    Whether to start the robot state publisher
    (default ...
(more)
mjwhite gravatar image mjwhite  ( 2020-12-26 19:35:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-22 02:24:30 -0500

saitoros gravatar image

I've met same situation. In my case it was solved with re-build target package.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-12-26 19:25:02 -0500

Seen: 396 times

Last updated: Feb 22 '22