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

Your catkin workspace "remembers" the things you previously sourced. Making it "forget" requires these steps, in this order:

  • in your catkin_ws, delete the top-level devel and build directories
  • source /opt/ros/noetic/setup.bash # only this one!
  • run your catkin_make command
  • if the catkin_make succeeded, source devel/setup.bash

People also call this "doing a clean build".

Note: in general it's unwise to modify your ROS_PACKAGE_PATH env variable in your ~/.bashrc file, but it is especially unwise when the path you are adding is already inside your catkin_ws directory.

Your catkin workspace "remembers" the things you previously sourced. Making it "forget" requires these steps, in this order:

  • in your catkin_ws, catkin_ws, delete the top-level devel and build directories
  • source /opt/ros/noetic/setup.bash # only this one!
  • run your catkin_make catkin_make or catkin build command
  • if the catkin_make build succeeded, source devel/setup.bash

People also call this "doing a clean build".

Note: in general it's unwise to modify your ROS_PACKAGE_PATH env variable in your ~/.bashrc file, but it is especially unwise when the path you are adding is already inside your catkin_ws directory.