Skip to content
Merged
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
22 changes: 21 additions & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,27 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" \
&& colcon build

# Setup the simulation environment variables
RUN echo "source ${USER_WORKSPACE}/src/blue/.docker/entrypoints/sim.sh" >> /home/$USERNAME/.bashrc
RUN <<EOT cat >> /home/$USERNAME/.bashrc

# Add results of ArduSub build
export PATH=\$HOME/ardupilot/build/sitl/bin:\$PATH

# Optional: add autotest to the PATH, helpful for running sim_vehicle.py
export PATH=\$HOME/ardupilot/Tools/autotest:\$PATH

# Add ardupilot_gazebo plugin
export GZ_SIM_SYSTEM_PLUGIN_PATH=\$HOME/ardupilot_gazebo/build:\$GZ_SIM_SYSTEM_PLUGIN_PATH

# Add ardupilot_gazebo models and worlds
export GZ_SIM_RESOURCE_PATH=\$HOME/ardupilot_gazebo/models:\$HOME/ardupilot_gazebo/worlds:\$GZ_SIM_RESOURCE_PATH

# Add blue models and worlds
BLUE_DESCRIPTION=\$USER_WORKSPACE/src/blue/blue_description
export GZ_SIM_RESOURCE_PATH=\$BLUE_DESCRIPTION/gazebo/models:\$BLUE_DESCRIPTION/gazebo/worlds:\$GZ_SIM_RESOURCE_PATH

# Add blue meshes
export GZ_SIM_RESOURCE_PATH=\$BLUE_DESCRIPTION/meshes:\$GZ_SIM_RESOURCE_PATH
EOT

FROM desktop AS desktop-nvidia

Expand Down
22 changes: 0 additions & 22 deletions .docker/entrypoints/sim.sh

This file was deleted.