先source 一下
1.|source /opt/ros/melodic/setup.bash
其中melodic为版本号,其他版本可修改成对应的
2.|echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
3.|source ~/.bashrc
完成以上指令后编译成功
先source 一下
1.|source /opt/ros/melodic/setup.bash
其中melodic为版本号,其他版本可修改成对应的
2.|echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
3.|source ~/.bashrc
完成以上指令后编译成功