mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 02:03:34 +08:00
restructured things a little bit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Create workspace at current location and fetch source repositories
|
||||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
WORKSPACE=$WDIR/catkin_ws
|
||||
|
||||
# Setup workspace
|
||||
mkdir -p $WORKSPACE/src
|
||||
cd $WORKSPACE/src
|
||||
catkin_init_workspace
|
||||
cd $WORKSPACE
|
||||
catkin_make
|
||||
echo "source $WORKSPACE/devel/setup.bash" >> ~/.bashrc
|
||||
|
||||
# PX4 Firmware
|
||||
cd $WORKSPACE/src
|
||||
git clone https://github.com/PX4/Firmware.git \
|
||||
&& cd Firmware \
|
||||
&& git checkout ros
|
||||
|
||||
# euroc simulator
|
||||
cd $WORKSPACE/src
|
||||
git clone https://github.com/PX4/euroc_simulator.git \
|
||||
&& cd euroc_simulator \
|
||||
&& git checkout px4_nodes
|
||||
|
||||
# mav comm
|
||||
cd $WORKSPACE/src
|
||||
git clone https://github.com/PX4/mav_comm.git
|
||||
|
||||
# glog catkin
|
||||
cd $WORKSPACE/src
|
||||
git clone https://github.com/ethz-asl/glog_catkin.git
|
||||
|
||||
# catkin simple
|
||||
cd $WORKSPACE/src
|
||||
git clone https://github.com/catkin/catkin_simple.git
|
||||
|
||||
cd $WORKSPACE
|
||||
echo "Execute catkin_make to compile all the sources."
|
||||
|
||||
Reference in New Issue
Block a user