point-cloud-visualization/build.sh

29 lines
466 B
Bash
Executable File

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