Skip to content

Commit

Permalink
update to run hitl in docker (PX4#44)
Browse files Browse the repository at this point in the history
HITL in Docker updates
  • Loading branch information
ZacharyLowell committed Oct 31, 2023
1 parent bd72c6d commit d21e971
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/modalai/voxl2/gazebo-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ WORKDIR /root/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/
RUN patch < iris_vision.patch
RUN rm -rf iris_vision.patch

WORKDIR /root/PX4-Autopilot
RUN ./Tools/setup/ubuntu.sh
RUN DONT_RUN=1 make px4_sitl_default gazebo
5 changes: 5 additions & 0 deletions boards/modalai/voxl2/gazebo-docker/run_hitl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

VOLUMES="-v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix:ro"

docker run -it --entrypoint "/bin/bash" --rm --privileged --net=host --ipc=host -e DISPLAY=$DISPLAY ${VOLUMES} ubuntu_docker -c "cd /root/PX4-Autopilot && source /root/PX4-Autopilot/Tools/simulation/gazebo-classic/setup_gazebo.bash /root/PX4-Autopilot /root/PX4-Autopilot/build/px4_sitl_default && gazebo Tools/simulation/gazebo-classic/sitl_gazebo-classic/worlds/hitl_iris.world"
File renamed without changes.
3 changes: 3 additions & 0 deletions boards/modalai/voxl2/target/voxl-px4-hitl-start
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ qshell flight_mode_manager start
dataman start
navigator start

# Start microdds_client for ros2 offboard messages from agent over localhost
microdds_client start -t udp -h 127.0.0.1 -p 8888

qshell pwm_out_sim start -m hil
qshell dsp_hitl start

Expand Down

0 comments on commit d21e971

Please sign in to comment.