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

Revision history [back]

click to hide/show revision 1
initial version

I just had this exact same error and the issue was that I needed to run:

source /opt/ros/noetic/setup.bash

(or .zsh as your case may be)

This should be put into your .bashrc (or .zshrc), but if you forgot or didn't, it will cause the above error.