|
@@ -26,23 +26,23 @@ echo -e "${green}>>> 2: 开始编译代码${normal}"
|
|
|
rm -rf ~/.ros/log/
|
|
|
catkin_make
|
|
|
|
|
|
-cd src/oled_screen/build/
|
|
|
-rm -rf *
|
|
|
-cmake ..
|
|
|
-make
|
|
|
-cd ../
|
|
|
-sudo cp *.service /usr/lib/systemd/system/
|
|
|
-cd ../../
|
|
|
-
|
|
|
if [ $? -eq 0 ];then
|
|
|
- echo -e "${green}编译代码完成,现在可以启动代码...${normal}"
|
|
|
+ source ~/ros_minibot_ws/devel/setup.bash
|
|
|
+ echo -e "${green}编译ROS代码完成,现在编译oled屏幕代码...${normal}"
|
|
|
else
|
|
|
echo -e "${red}编译代码发生错误,请检查代码${normal}"
|
|
|
exit -2
|
|
|
fi
|
|
|
echo -e "\n"
|
|
|
|
|
|
-source devel/setup.bash
|
|
|
+cd src/oled_screen/build/
|
|
|
+rm -rf *
|
|
|
+cmake ..
|
|
|
+make
|
|
|
+cd ../
|
|
|
+echo -e "${green}>>> 需要输入密码配置oled启动服务...${normal}"
|
|
|
+sudo cp *.service /usr/lib/systemd/system/
|
|
|
+echo -e "${green}>>> 全部代码都已编译配置完成,下面开始使用小车...${normal}"
|
|
|
|
|
|
echo -e "${green}>>> 输入以下命令启动小车${normal}"
|
|
|
echo -e "\n"
|