point-cloud-visualization/build.sh

29 lines
406 B
Bash
Executable File

#!/bin/bash
# 创建工作目录
mkdir ~/PointVisual
cd ..
#将当前src移动到PointVisual
cp -r src ~/PointVisual
# 切换到工作目录
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