Skip to content

Commit

Permalink
Generalize gazebo model discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
ruffsl committed Apr 4, 2023
1 parent f0eb23f commit 35e9f91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ RUN git clone --branch python3 https://github.com/ruffsl/gzweb.git $GZWEB_WS

# build gzweb
RUN cd $GZWEB_WS && . /usr/share/gazebo/setup.sh && \
GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/$ROS_DISTRO/share/turtlebot3_gazebo/models && \
GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/$ROS_DISTRO/share/aws_robomaker_small_warehouse_world/models && \
GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$(find /opt/ros/$ROS_DISTRO/share \
-mindepth 1 -maxdepth 2 -type d -name "models" \
| xargs | sed -e 's/ /:/g') && \
xvfb-run -s "-screen 0 1280x1024x24" ./deploy.sh -m local && \
ln -s http/client/assets http/client/assets/models

Expand Down

0 comments on commit 35e9f91

Please sign in to comment.