catkin_make:Command ‘catkin_make‘ not found, but can be installed with:sudo apt install catkin

在ubuntu18.04环境中开发ROS包,明明刚刚还在用着catkin_make的,突然就不能用了:
catkin_make:Command ‘catkin_make‘ not found, but can be installed with:sudo apt install catkin_第1张图片
解决办法如下:

source /opt/ros/melodic/setup.bash
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc

完成后再次catkin_make,可以成功编译:

catkin_make:Command ‘catkin_make‘ not found, but can be installed with:sudo apt install catkin_第2张图片

你可能感兴趣的:(bash)