2023-10-16 21:07:33 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# 创建工作目录
|
|
|
|
mkdir ~/PointVisual
|
2023-11-04 20:13:00 +08:00
|
|
|
mkdir ~/PointVisual/src
|
|
|
|
# cd ..
|
|
|
|
#将当前point_visual移动到PointVisual
|
|
|
|
cp -r point_visual ~/PointVisual/src/point_visual
|
2023-10-16 21:07:33 +08:00
|
|
|
|
|
|
|
# 切换到工作目录
|
|
|
|
cd ~/PointVisual
|
|
|
|
|
|
|
|
# 在工作目录make
|
|
|
|
catkin_make
|
|
|
|
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
|
|
|
|
# 执行source命令
|
|
|
|
source ./devel/setup.bash
|
|
|
|
|
|
|
|
# 运行其他命令
|
|
|
|
# roslaunch point_visual laser.launch
|
|
|
|
roscore &
|
|
|
|
sleep 2
|
|
|
|
rosrun point_visual myviz
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|