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

"ros2: command not found" after I source install/local_setup.bash #44

Open
ShienF opened this issue Feb 16, 2022 · 1 comment
Open

"ros2: command not found" after I source install/local_setup.bash #44

ShienF opened this issue Feb 16, 2022 · 1 comment

Comments

@ShienF
Copy link

ShienF commented Feb 16, 2022

Hi,

I'm ruuning the Nav2 + slam_toolbox Example, and I'm at "Start RViz in the Docker container" - "(Optional) Launching ROS2 components manually" stage.

After I $ source ros2_docker/colcon_ws/install/local_setup.bash(or $ source ros2_docker/colcon_ws/iinstall/local_setup.sh or $ source ros2_docker/colcon_ws/iinstall/setup.bash), and try $ ros2 launch unity_slam_example unity_slam_example.py, the terminal shows: "ros2: command not found".

Or after I $ colcon build in the directory: ros2_docker/colcon_ws, and try $ ros2 launch unity_slam_example unity_slam_example.py, the terminal also shows: "ros2: command not found".

My environment: Ubuntu 20.04, Ros2-foxy

Anyone could help me with this?

Thank you so much!

@ShienF
Copy link
Author

ShienF commented Mar 16, 2022

It succeeded after I tried $ source /opt/ros/foxy/setup.bash or $ source ~/ros2_foxy/ros2-linux/setup.bash first.

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

1 participant