Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added init session for the kopter with manipulator #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions startup/kopterworx_manipulator_one_flying/.tmuxinator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: single_kopter
root: ./
startup_window: roscore
pre_window: export UAV_NAMESPACE=red
windows:
- roscore:
layout: tiled
panes:
- roscore
- export SITL_RITW_TERMINAL="tmux new-window -d -n:ardupilot1"; waitForRos;
roslaunch ardupilot_gazebo sim_vehicle.launch
enable_console:=false
additional_arguments:="--no-rebuild"
- waitForRos; rosparam set use_sim_time true; roslaunch ardupilot_gazebo mavros.launch
- gazebo:
layout: tiled
panes:
- waitForRos; bash -c "source /root/uam_ws/devel/setup.bash; roslaunch ardupilot_gazebo kopterworx.launch use_sim_time:=true enable_manipulator:=true"
- arm&takeof:
layout: tiled
panes:
- waitForRos; roslaunch uav_ros_control pid_carrot.launch
- rosrun ardupilot_gazebo automatic_takeoff.sh 2
- trajectory:
layout: tiled
panes:
- waitForRos; roslaunch uav_ros_tracker topp_tracker.launch
27 changes: 27 additions & 0 deletions startup/kopterworx_manipulator_one_flying/session.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: single_kopter
root: ./
startup_window: roscore
pre_window: export UAV_NAMESPACE=red
windows:
- roscore:
layout: tiled
panes:
- roscore
- export SITL_RITW_TERMINAL="tmux new-window -d -n:ardupilot1"; waitForRos;
roslaunch ardupilot_gazebo sim_vehicle.launch
enable_console:=false
additional_arguments:="--no-rebuild"
- waitForRos; rosparam set use_sim_time true; roslaunch ardupilot_gazebo mavros.launch
- gazebo:
layout: tiled
panes:
- waitForRos; bash -c "source /root/uam_ws/devel/setup.bash; roslaunch ardupilot_gazebo kopterworx.launch use_sim_time:=true enable_manipulator:=true"
- arm&takeof:
layout: tiled
panes:
- waitForRos; roslaunch uav_ros_control pid_carrot.launch
- rosrun ardupilot_gazebo automatic_takeoff.sh 2
- trajectory:
layout: tiled
panes:
- waitForRos; roslaunch uav_ros_tracker topp_tracker.launch
16 changes: 16 additions & 0 deletions startup/kopterworx_manipulator_one_flying/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Absolute path to this script. /home/user/bin/foo.sh
SCRIPT=$(readlink -f $0)
# Absolute path this script is in. /home/user/bin
SCRIPTPATH=`dirname $SCRIPT`
cd "$SCRIPTPATH"

# remove the old link
rm .tmuxinator.yml

# link the session file to .tmuxinator.yml
ln session.yml .tmuxinator.yml

# start tmuxinator
tmuxinator
Loading