Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch command not found #19

Open
AndrewJSchoen opened this issue Jun 4, 2021 · 1 comment
Open

Launch command not found #19

AndrewJSchoen opened this issue Jun 4, 2021 · 1 comment

Comments

@AndrewJSchoen
Copy link

On activating the ros-foxy environment, the launch command is not available by default. As a result,

ros2 launch ... ... results in the following error:

Failed to load entry point 'launch': Environment variable 'AMENT_PREFIX_PATH' is not set or empty
Traceback (most recent call last):
  File "/Users/me/miniconda3/envs/ros-foxy/bin/ros2", line 8, in <module>
    sys.exit(main())
  File "/Users/me/miniconda3/envs/ros-foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 39, in main
    add_subparsers_on_demand(
  File "/Users/me/miniconda3/envs/ros-foxy/lib/python3.8/site-packages/ros2cli/command/__init__.py", line 236, in add_subparsers_on_demand
    extension = command_extensions[name]
KeyError: 'launch'

The full list of commands (on running ros2) are:

Commands:
  action     Various action related sub-commands
  bag        Various rosbag related sub-commands
  component  Various component related sub-commands
  daemon     Various daemon related sub-commands
  doctor     Check ROS setup and other potential issues
  interface  Show information about ROS interfaces
  lifecycle  Various lifecycle related sub-commands
  multicast  Various multicast related sub-commands
  node       Various node related sub-commands
  param      Various param related sub-commands
  pkg        Various package related sub-commands
  run        Run a package specific executable
  service    Various service related sub-commands
  topic      Various topic related sub-commands
  wtf        Use `wtf` as alias to `doctor`
@Tobias-Fischer
Copy link
Collaborator

This should be fixed in Galactic / Humble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants