2017-12-10 21:19:03 -04:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
|
|
PX4_SRC_DIR=${DIR}/..
|
|
|
|
|
2019-03-09 08:24:40 -04:00
|
|
|
source /opt/ros/${ROS_DISTRO:-kinetic}/setup.bash
|
2023-01-15 12:36:12 -04:00
|
|
|
source ${PX4_SRC_DIR}/Tools/simulation/gazebo-classic/setup_gazebo.bash ${PX4_SRC_DIR} ${PX4_SRC_DIR}/build/px4_sitl_default
|
2017-12-10 21:19:03 -04:00
|
|
|
|
2023-01-15 12:36:12 -04:00
|
|
|
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:${PX4_SRC_DIR}:${PX4_SRC_DIR}/Tools/simulation/gazebo-classic/sitl_gazebo-classic
|
2017-12-10 21:19:03 -04:00
|
|
|
|
2018-08-06 09:13:00 -03:00
|
|
|
export ROS_LOG_DIR="$HOME/.ros/ros_logs"
|
|
|
|
mkdir -p "$ROS_LOG_DIR"
|
|
|
|
|
2017-12-10 21:19:03 -04:00
|
|
|
rostest px4 "$@"
|