Skip to content

Integrating custom PX4 vehicle with gimbal, gz_ws, and world #58

@ph3rro

Description

@ph3rro

Hi, I've been working on a drone + wave sim with the goal of using RL to land drones on boats.
I have a custom PX4-Autopilot folder, and in that folder I also have a gz_ws folder for the wave simulation, which contains models and physics for the waves and boat (courtesy of Rhys Mainwaring).

I usually run the following:

Terminal 1:

cd ~/PX4-Autopilot/gz_ws
source ./install/setup.bash
export GZ_VERSION=harmonic
export GZ_IP=127.0.0.1
export GZ_SIM_RESOURCE_PATH=
$GZ_SIM_RESOURCE_PATH:
$(pwd)/src/rs750/rs750_gazebo/models:
$(pwd)/src/rs750/rs750_gazebo/worlds:
$HOME/PX4-Autopilot/gz_ws/src/asv_wave_sim/gz-waves-models/models:
$HOME/PX4-Autopilot/gz_ws/src/asv_wave_sim/gz-waves-models/world_models:
$HOME/PX4-Autopilot/gz_ws/src/asv_wave_sim/gz-waves-models/worlds
export GZ_SIM_SYSTEM_PLUGIN_PATH=
$GZ_SIM_SYSTEM_PLUGIN_PATH:
$HOME/PX4-Autopilot/gz_ws/install/lib:
export GZ_GUI_PLUGIN_PATH=
$GZ_GUI_PLUGIN_PATH:
$HOME/PX4-Autopilot/gz_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/build
cd ..
PX4_GZ_WORLD=waves PX4_GZ_MODEL_POSE="0.3,-0.3,1.15" make px4_sitl gz_x500_gimbal

Terminal 2:
MicroXRCEAgent udp4 -p 8888

Terminal 3:
cd tracktor-beam
source install/setup.bash
ros2 launch precision_land precision_landing_system.launch.py

Terminal 4:
ros2 run rqt_image_view rqt_image_view

Terminal 5:
./Downloads/qgroundcontrol

Is there a way I can integrate all this into AAS? I'm not really familiar with Docker. Any help would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions